‎2008 Dec 19 4:13 PM
Hi All,
I need to format the selection-screen in a particular way according to the user's requirement.
There are 2 radio buttons "for selecting the run mode" and 2 parameters options "for entering the file names". Users are asking to place each of the filename parameter options beside the radio buttons.
Right now I have grouped 2 radiobuttons together (one under the other) and 2 parameters for filenames together l(one under the other) ike this:
*-- Run Modes.
parameters: p_opt1 radiobutton group optn,
p_opt2 radiobutton group optn.
*-- File names.
parameters: p_file1 like rlgrap-filename,
p_file2 like rlgrap-filename.Please advise if this can be done. Thanks.
‎2008 Dec 19 4:18 PM
yes it can be done using selection- screen begin of line and end of line.
check this code snippet:
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_opt1 RADIOBUTTON GROUP optn.
SELECTION-SCREEN COMMENT 4(5) text-001 FOR FIELD p_opt1.
PARAMETERS: p_file1 LIKE rlgrap-filename.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_opt2 RADIOBUTTON GROUP optn.
SELECTION-SCREEN COMMENT 4(5) text-002 FOR FIELD p_opt1.
PARAMETERS: p_file2 LIKE rlgrap-filename.
SELECTION-SCREEN END OF LINE.
‎2008 Dec 19 4:18 PM
yes it can be done using selection- screen begin of line and end of line.
check this code snippet:
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_opt1 RADIOBUTTON GROUP optn.
SELECTION-SCREEN COMMENT 4(5) text-001 FOR FIELD p_opt1.
PARAMETERS: p_file1 LIKE rlgrap-filename.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_opt2 RADIOBUTTON GROUP optn.
SELECTION-SCREEN COMMENT 4(5) text-002 FOR FIELD p_opt1.
PARAMETERS: p_file2 LIKE rlgrap-filename.
SELECTION-SCREEN END OF LINE.
‎2008 Dec 19 4:20 PM
Try some thing like this
report zaRs .
DATA wa_spfli TYPE spfli.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION pos_high.
parameters : v_radio radiobutton group optn.
PARAMETERS field(5) TYPE c.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION pos_high.
parameters : v_radio1 radiobutton group optn.
PARAMETERS field1(5) TYPE c.
SELECTION-SCREEN END OF LINE.
a®
‎2008 Dec 19 4:25 PM
Hi Ravi,
You can use the following code to put the filenames immediately after the radio button.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_opt1 RADIOBUTTON GROUP optn.
SELECTION-SCREEN COMMENT 2(20) text-s01 FOR FIELD p_opt1.
PARAMETERS: p_file1 LIKE rlgrap-filename.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p_opt2 RADIOBUTTON GROUP optn.
SELECTION-SCREEN COMMENT 2(20) text-s02 FOR FIELD p_opt2.
PARAMETERS: p_file2 LIKE rlgrap-filename.
SELECTION-SCREEN END OF LINE.You can experiment with the length of the comment if you need it to be shorter or longer.
Best Regards,
Guy.
‎2008 Dec 19 4:42 PM