Get Example source ABAP code based on a different SAP table
Standard SAP Help for SET_SCREEN
SET SCREEN
Short Reference > • SET SCREEN ABAP Statement
ABAP_BASIC_FORM_3 SET SCREEN dynnr.>
What does it do? This statement sets thescreen> with the screen number> specified in dynnr>, as the next screen for processing >of the current screen. For dynnr>, a data object of type n> and length 4 is expected. It must contain either the screen number of a screen in the main program> of the current program group> or the value 0, otherwise a non-catchable exception will be triggered. The specified next screen overwrites the previously-set next screen.
The next screen is automatically called when the system finishes thePAI> processing of the current screen. If the screen number of the next screen is 0, the current next screen is ended.
Latest notes:One next screen is always set during the processing of a screen. After you call a screen, the next screen whose characteristics are defined statically, applies; this next screen can be overwritten with the SET SCREEN> statement for the duration of the actual next screen processing.