Using at Selection Screen output in SAP ABAP

At Selection Screen output is a selection-screen event, which is used to manipulate dynamic changes on selection-screen.

Loop At Screen. Screen is structure with Name, Group1, Group2, Group3, Group4, invisible, active, intensified etc fields, this holds the screen information at run time, Loop at Screen...Endloop. is used to loop through screen elements, and based on the values in above structure (SCREEN) we can manipulate changes.

MODIF ID : MODIF ID is a three character id (without quotes), we can process a screen elements group using this MODIF ID, this will be stored in SCREEN-GROUP1.

All Screen modifications should be done under AT SELECTION-SCREEN OUTPUT event only.

MODIFY SCREEN is keyword which is used to apply screen modification.

The below is the sample code for dynamic screen modification .

When ever we check enable input field check box, one input field will be enabled.