Pages

ABAP Events - AT SELECTION-SCREEN ON field - Introduction With Sample Program.

AT SELECTION-SCREEN ON <field> Event With A Sample Program

This event can be used if the user wants checks or validations to be carried out for a particular field on the selection screen.

At Selection-Screen On <field> and At Selection-Screen events, both do the same job i.e. validating the input fields present on the selection screen. The only difference is At Selection-screen event is used to validate all the fields on the selection screen where as At Selection-Screen On <field> event is used to validate a particular field in the selection screen.

Suppose there are 4 input fields in the selection screen, we want validation for input field FIELD1 only.

The difference between AT SELECTION-SCREEN ON <field> & AT SELECTION-SCREEN events can be clearly seen:

- When we use At Selection-screen on <field> event, and while performing the check or validation of that particular field if an error message is displayed, then that particular is only open and rest all the fields are grayed out.
Whereas when we use At Selection-Screen event all the inputs fields are open and editable.

- At selection-screen on <field> is triggered first and then At selection-screen event follows it.

Please mail all your contributions to administrator@abapmadeeasy.com We request you to mention your Name, Designation, Experience & Organization you are working for. Your posts will be verified and posted in this site with your name.