Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Adding Radio button & regular button to selection-screen without new gui

Former Member
0 Likes
1,733

Hi,

Is there a way to add a radio button & regular button to a selection-screen without having to create a new gui, status and etc?

Thanks,

John

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,498

Hi

See the help for the stataments:

SELECTION-SCREEN FUNCTION KEY n: here u can add a new button in the std status of selection-screen,

SELECTION-SCREEN PUSHBUTTON fmt name USER-COMMAND ucom.: here u can add a new button in the selection-screen.

But for the radiobutton u need to use the statament:

PARAMETERS: P_1 RADIOBUTTON GROUP R1.

PARAMETERS: P_2 RADIOBUTTON GROUP R1.

............................

Max

14 REPLIES 14
Read only

Former Member
0 Likes
1,499

Hi

See the help for the stataments:

SELECTION-SCREEN FUNCTION KEY n: here u can add a new button in the std status of selection-screen,

SELECTION-SCREEN PUSHBUTTON fmt name USER-COMMAND ucom.: here u can add a new button in the selection-screen.

But for the radiobutton u need to use the statament:

PARAMETERS: P_1 RADIOBUTTON GROUP R1.

PARAMETERS: P_2 RADIOBUTTON GROUP R1.

............................

Max

Read only

0 Likes
1,498

How do you add text next to the radiobutton, for instance "import text file"?

Read only

0 Likes
1,498

If u mean besides the standard text on the right of the radio button u can use, to add a text.

SELECTION-SCREEN COMMENT

See the HELP of that statement

Read only

0 Likes
1,498

Can we add more than 8 characters next to the right of the Radio Button?

Read only

0 Likes
1,498

Hi

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 4(30) TEXT-001 FOR FIELD P_1.
SELECTION-SCREEN POSITION 1.
PARAMETERS: P_1 RADIOBUTTON GROUP R1 DEFAULT 'X'.
SELECTION-SCREEN END   OF LINE.

SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 4(30) TEXT-002 FOR FIELD P_2.
SELECTION-SCREEN POSITION 1.
PARAMETERS: P_2 RADIOBUTTON GROUP R1.
SELECTION-SCREEN END   OF LINE.

Where the symbols text TEXT-001 and TEXT-002 have the label for the radiobuttons

Max

Read only

0 Likes
1,498

Either you maintan selection texts with Go to->Text Elemnts->Selection texts-> here for your radiobutton i.e. pa_rad provide your text

or


SELECTION-SCREEN COMMENT 1(15) 'import text file' FOR FIELD pa_rad.

Read only

0 Likes
1,498

I wrote the following, but am having the program crash on generation:

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(20) TEXT-003 FOR FIELD R_1.

SELECTION-SCREEN POSITION 1.

PARAMETERS: R_1 RADIOBUTTON GROUP R1 DEFAULT 'X'.

SELECTION-SCREEN END OF LINE.

Message: Error when generating the selection screen "1000" of report ......

Read only

0 Likes
1,498

Hi

The comment and the radiobutton are placed in the same position.

SELECTION-SCREEN BEGIN OF LINE.
*SELECTION-SCREEN COMMENT 1(20) TEXT-003 FOR FIELD R_1. <------------ERROR
SELECTION-SCREEN COMMENT 4(20) TEXT-003 FOR FIELD R_1.
SELECTION-SCREEN POSITION 1.
PARAMETERS: R_1 RADIOBUTTON GROUP R1 DEFAULT 'X'.
SELECTION-SCREEN END OF LINE.

Max

Read only

0 Likes
1,498

Sorry - got it to generate but text isn't appearing next to the radiobutton:

SELECTION-SCREEN BEGIN OF BLOCK BOX1 WITH FRAME TITLE TEXT-001.

  • IMPORT FROM MEMORY ID - RADIO BUTTON

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 3(20) TEXT-003 FOR FIELD R_1.

SELECTION-SCREEN POSITION 1.

PARAMETERS: R_1 RADIOBUTTON GROUP R1 DEFAULT 'X'.

SELECTION-SCREEN END OF LINE.

Read only

0 Likes
1,498

Hi

Have u created the symbol text TEXT-003?

Max

Read only

0 Likes
1,498

Yes, and it contains text.

Read only

0 Likes
1,498

You have to provide text for your text symbol text-003. Double click it so text symbol will be created and you can assing your text there. Don't forget to activate it first.

Read only

0 Likes
1,498

Hi

Strange!

It's working fine for me: have u activated the text elements?

Max

Read only

0 Likes
1,498

I don't know what I did but now it works. Thanks for all the help.