ABAPLEAVE_SCREEN - LEAVE SCREEN
Vendor Master (General Section) CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
LEAVE [TO] SCREEN
Syntax
LEAVE { SCREEN | {TO SCREEN dynnr} }.
Variants:
1. LEAVE SCREEN.
2. LEAVE TO SCREEN dynnr.
Effect
This statement ends the processing of the currentscreen. The currentprocessingblock of the ABAP program and the current processing block of the dynpro are left immediately.
Variant 1
LEAVE SCREEN.
Effect
The variant LEAVE SCREEN calls the currentnextscreen. This is either statically specified in the properties of the current screen or has beenset before using the statement SET SCREEN.
Variant 2
LEAVE TO SCREEN dynnr.
Effect
The variant LEAVE TO SCREEN calls the screen with the number dynnr as thenext screen. A data object of the type n of the length 4 is expected for dynnr. It must contain either thescreen number of a screen in themain program of the currentprogramgroup or the value 0. Otherwise, an exception that cannot be handled is raised. This statement is a short form of the statements SET SCREEN dynnr and LEAVE SCREEN.
Notes
This statement does not terminate the entire screen sequence; it branches to an additional screen inthe same sequence. Only if the number 0 is used to branch to the next screen, LEAVE SCREEN terminates the screen sequence.
- This statement must not be used when handling events of the Control Frameworks.
ABAP Short Reference CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 3139 Date: 20120522 Time: 235312 triton ( 90 ms )






