Selection Screen Processing
Selection screen processing includes the dynpro flow logic and the sending of the
selection screen. No dialog modules of the program are called. Instead, various
selection screen events are triggered for which event blocks can be programmed. In
PBO processing, the event
AT SELECTION-SCREEN OUTPUT is triggered. During
PAI processing, a variety of different
AT SELECTION-SCREEN ...
are triggered, depending on the user action. Selection screen processing of a displayed selection screen is ended only by selection of the following functions of the
- Execute or Execute + Print
The selection screen events of PAI processing are triggered. Thereafter, the event
START-OF-SELECTIONis triggered at standard selection screens called via
SUBMIT. The program is ended at selection screens called via dialog transactions. A call in the program resumes the program after the statement
- Return, End, or Cancel
Only the event
AT SELECTION-SCREEN ON EXIT-COMMANDis triggered. Thereafter, the program is ended at standard selection screens called via
SUBMITand dialog transactions. Otherwise,
sy-subrcis set to 4 and the program resumes after the statement
For all other user actions, the selection screen is called again automatically after ending the selection screen processing.
- Continuation of a program depends on the function code contained in the UCOMM component of the
interface work area
SSCRFIELDS at the end of PAI processing. If this is declared with
TABLESand, for example, during processing of the standard selection screen of a program called using SUBMIT, this component is set to the value "ONLI", which is assigned to the function Execute, the event
START-OF-SELECTIONis triggered after selection screen processing.
To avoid ending the program following the processing of a selection screen called with a dialog transaction, you must during the selection screen processing call either the
next screen with
LEAVE TO SCREEN, or a new
screen sequence with
CALL SCREEN. The
SET SCREEN statement is not sufficient.