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

Selection screen design

VenuAnumayam
Participant
0 Likes
1,048

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.

1 ACCEPTED SOLUTION
Read only

former_member156446
Active Contributor
0 Likes
745

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.

4 REPLIES 4
Read only

former_member156446
Active Contributor
0 Likes
746

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.

Read only

former_member194669
Active Contributor
0 Likes
745

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®

Read only

GuyF
Active Participant
0 Likes
745

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.

Read only

0 Likes
745

Thanks All.