ABAP Selection screen events are called when selection screen is processed, you can use standard selection screen event AT SELECTION-SCREEN. In this article we will try to explain the different variantions of the AT SELECTION-SCREEN, perhaps this article is for beginner.

AT SELECTION-SCREEN OUTPUT

This event is triggered by the PBO event at the selection screen, you can use this event to set default values for the selection screen fields or change field attributes ( disable, read-only etc ) .

This ABAP Code sample use AT SELECTION-SCREEN OUTPUT event to assign a current year  to parameter PA_YEAR .

AT SELECTION-SCREEN ON <field/parameter>

This ABAP Selection screen event is triggered in the PAI , when data from PARAMETERS or SELECT-OPTIONS is transferred to ABAP. You can use this event to validate user input. ABAP Code below use to validate user input.

AT SELECTION-SCREEN ON END OF <select-option>

This ABAP Selection screen is triggered when the selection table multiple selection SELECT-OPTIONS is transferred to ABAP Program. This event you can use to validate all the entries of the selection table.

AT SELECTION-SCREEN ON BLOCK <block>

In ABAP Selection screen you can organize the selection screen field into multiple blocks, this event is triggered when data of all the fields of the block is transferred to ABAP Program. You can validate user input in this event.

AT SELECTION-SCREEN ON RADIO BUTTON GROUP

This ABAP selection screen event is triggered when all the fields of radio button group are passed to the ABAP Program. You can validate radio button using this event.

AT SELECTION-SCREEN

This standard selection screen event is triggered after all the selection screen event are executed. this event can be used to validate user inputs.

AT SELECTION-SCREEN ON HELP-REQUEST FOR <field>

This POH event of the selection screen event is triggered when user press F1 for specify field.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>

This is POV event of the ABAP selection screen events is triggered when user press F4 for specify fields.

AT SELECTION-SCREEN ON EXIT-COMMAND

This event is triggered when the user press BACK, EXIT or CANCEL button, you can put cleanup or free code in this event.

Incoming search terms: