Show TOC

Static Next ScreenLocate this document in the navigation structure

Use

In the Screen Painter tool, a screen attribute Next Screen is defined for every screen. This attribute gives the number of the screen that is to follow the current screen statically. However, the static attribute is always bypassed if you specify a next screen dynamically while the screen is being processed.

The default next screen in the Screen Painter is always the number of the screen itself. If you use the default value and do not overwrite it dynamically, the screen always calls itself recursively (see the example transaction ). Then, the screen sequence consists of only a single screen.

If the next screen specified is zero (or no value at all), and you do not override it dynamically, the current screen is the last in the screen sequence . 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.