In the PAI event of the selection screen, the
AT SELECTION-SCREEN ON field
event is triggered. The input field field can be checked in the corresponding event block. If an error message occurs within this event block, the corresponding field is made ready for input again on the selection screen.
The following executable program is connected to the logical database F1S.
REPORT event_demo. NODES spfli. AT SELECTION-SCREEN ON city_fr. IF carrid-low EQ 'AA' AND city_fr NE 'NEW YORK'. MESSAGE e010(hb). ENDIF.
If the user enters AA in the first input field, but not NEW YORK for the departure city, an error message is displayed in the status line until the user enters the correct city.