Entering content frame

Dynamic Next Screen Locate the document in its SAP Library structure

Every screen has a static next screen that specifies the next screen to be called after the current one,  as long as it is not overwritten dynamically. In the processing logic, that is, a dialog module called by the screen, you can use the SET SCREENstatement to overwrite the statically-defined next screen dynamically:

SET SCREEN Folgedynpro.

This statement defines a new next screen for the current program run. You can also specify the number of the next screen as a field containing a screen number. The statically-defined next screen is ignored. However, this only overrides the static screen sequence temporarily. The static value for the next screen, as defined in the Screen Painter, is always retained.

If you specify the value 0 for next screen, the current screen becomes the last in the screen chain. After the screen has been processed, control returns to the point from which the screen sequence was called. If the screen sequence was embedded, the system returns to the previous screen sequence containing the relevant CALL SCREEN statement. If the screen sequence was not embedded, the application program terminates.

The SET SCREEN does not interrupt the current screen processing. To leave a screen, use the ABAP statement LEAVE.

This graphic is explained in the accompanying text



Leaving content frame