AT SELECTION-SCREEN OUTPUT
Purpose:
This event is triggered before the selection screen is displayed to the user.
Use Case:
To modify the selection screen dynamically — for example, to hide/show fields, enable/disable them, or set default values based on conditions.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_radio1 = 'X'.
IF screen-name = 'P_FIELD2'.
screen-active = '0'. "Disable the field
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN
Purpose:
This event is triggered after the user has entered data and pressed Enter or Execute.
Use Case:
Used for input validation and custom checks on user input before the report proceeds.
Example: