Dynpro Flow and Dynpro Sequences
Dynpros are called either using
codes or using the statement
CALL SCREEN. The call triggers the event
PBO and its event block is processed in the
dynpro flow logic. Afterwards, the
screen of the dynpro (dynamic program) is displayed in the current
popup level or in a new level (in the case of modal dialog boxes). After a user action in the user interface of this GUI window, the event
POV) is triggered and its event
block is processed in the dynpro flow logic. In the event blocks of the dynpro flow logic, dialog modules of the associated ABAP program are called. When PAI processing is complete, the
next dynpro of the current dynpro is called.
Each dynpro has a next dynpro. In particular, a dynpro can also have its own special next dynpro. The
next dynpro is either statically predefined or it is set in the ABAP program using the statements
SET SCREEN or LEAVE
TO SCREEN. In this way, a dynpro is automatically part of a dynpro sequence. Each next dynpro
always belongs to a single popup level and is executed in a single GUI window. The number of the current dynpro can be taken from the system field
The flow of a dynpro sequence is determined by the respective next dynpro of the dynpro in question. During processing, a dynpro always has a next dynpro. At the start of processing, this is statically predefined, but it can be overwritten in the program. The first dynpro of a dynpro sequence is the initial dynpro. A dynpro sequence is ended by calling the next dynpro with the dynpro number 0.
If a dynpro sequence is embedded in another sequence, the calling dynpro sequence is continued after completion of a dynpro sequence. If the dynpro sequence is not embedded, the current program is ended.