Entering content frameBasic Form Locate the document in its SAP Library structure

The AT SELECTION-SCREEN event is triggered in the PAI of the selection screen once the ABAP runtime environment has passed all of the input data from the selection screen to the ABAP program. If an error message occurs in this processing block, the selection screen is redisplayed with all of its fields ready for input. This allows you to check input values for consistency.

Example

The program below is connected to the logical database F1S:

REPORT EVENT_DEMO.

NODES SPFLI.

AT SELECTION-SCREEN.
  IF CARRID-LOW IS INITIAL
    OR CITY_FR IS INITIAL
    OR CITY_TO IS INITIAL.
    MESSAGE E000(HB).
  ENDIF.

If the user does not enter values in all of the fields on the selection screen, an error message appears in the status line. This makes all of the input fields mandatory, even though they are not defined as such in the logical database.

This graphic is explained in the accompanying text

 

 

Leaving content frame