SELECTION-SCREEN – Complex Selection screen example

When you have to enter a text greater than 50 characters to describe a field in the selection screen, or need to have more control over the position of the items in the selection screen, use technique below. This can also be used when you need to insert for example two radio buttons in the same line.

REPORT ZSELECTION_SCREEN.
 *Text-symbols
 *001  Lorem ipsum ei mei affert eruditi necessitatibus, id nec tota ullum
 *002  Nibh maluisset scripserit et
 
 Selection Screen 
 
 SELECTION-SCREEN BEGIN OF LINE.
 PARAMETERS: p_radio1 type SPRPS RADIOBUTTON GROUP a1.
 SELECTION-SCREEN: COMMENT 4(67) text-001.
 SELECTION-SCREEN END OF LINE.
 SELECTION-SCREEN BEGIN OF LINE.
 PARAMETERS: p_radio2 type SPRPS RADIOBUTTON GROUP a1.
 SELECTION-SCREEN: COMMENT 4(28) text-002.
 SELECTION-SCREEN END OF LINE.

Leave a Reply