This event can be used to change the properties of the selection screen
fields dynamically. Hence this event allows us to modify the selection
screen and its fields directly before it is displayed.
REPORT ztest.
PARAMETERS: field_1(10) TYPE c MODIF ID sc1,
field_2(10) TYPE c MODIF ID sc2,
field_3(10) TYPE c MODIF ID sc1,
field_4(10) TYPE c MODIF ID sc2,
field_5(10) TYPE c OBLIGATORY.
INITIALIZATION.
field_5 = '5000'.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-intensified = '1'. “ Intensify the Field.
MODIFY SCREEN.
CONTINUE.
ENDIF.
IF screen-group1 = 'SC2'.
screen-intensified = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN.
field_1 = '10'.
REPORT ztest.
PARAMETERS: field_1(10) TYPE c MODIF ID sc1,
field_2(10) TYPE c MODIF ID sc2,
field_3(10) TYPE c MODIF ID sc1,
field_4(10) TYPE c MODIF ID sc2,
field_5(10) TYPE c OBLIGATORY.
INITIALIZATION.
field_5 = '5000'.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'SC1'.
screen-intensified = '1'. “ Intensify the Field.
MODIFY SCREEN.
CONTINUE.
ENDIF.
IF screen-group1 = 'SC2'.
screen-intensified = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN.
field_1 = '10'.
OUTPUT:
Here the order of execution of events is:- Initialization.
- At Selection-Screen Output.
- At selection-Screen.