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 events
ATSELECTION-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:
- Execute or Execute + Print
The selection screen events of PAI processing are triggered. There- after, the event
START-OF-SELECTION is 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 CALL SELECTION-SCREEN.
- Return, End, or Cancel
Only the event AT SELECTION-SCREEN ON EXIT-COMMAND is
triggered. Thereafter, the program is ended at standard selection screens called via
SUBMIT and dialog transactions. Otherwise, sy-subrc
is set to 4 and the program resumes after the statement CALL SELECTION-SCREEN.
For all other user actions, the selection screen is called again automatically after ending the selection screen processing.
Notes
- 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 TABLES
and, 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-SELECTION is 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.