‎2008 Dec 04 5:39 PM
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
‎2008 Dec 04 5:47 PM
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
‎2008 Dec 04 5:47 PM
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
‎2008 Dec 04 6:01 PM
How do you add text next to the radiobutton, for instance "import text file"?
‎2008 Dec 04 6:06 PM
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
‎2008 Dec 04 6:07 PM
Can we add more than 8 characters next to the right of the Radio Button?
‎2008 Dec 04 6:08 PM
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
‎2008 Dec 04 6:09 PM
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.
‎2008 Dec 04 6:15 PM
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 ......
‎2008 Dec 04 6:19 PM
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
‎2008 Dec 04 6:19 PM
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.
‎2008 Dec 04 6:21 PM
‎2008 Dec 04 6:21 PM
‎2008 Dec 04 6:23 PM
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.
‎2008 Dec 04 6:24 PM
Hi
Strange!
It's working fine for me: have u activated the text elements?
Max
‎2008 Dec 04 6:52 PM
I don't know what I did but now it works. Thanks for all the help.