sapdev logo background
sapdev logo sapdev logo
Comments

ABAP LEAVE SCREEN Statement syntax, information and example SAP source code



Return to Statement index



LEAVE [TO] SCREEN

Short Reference

ABAP Syntax_4 LEAVE { SCREEN | {TO SCREEN dynnr} }.

ABAP_VARIANTS:
1 LEAVE SCREEN.
2 LEAVE TO SCREEN dynnr.

What does it do? This statement ends the processing of the current screen . The current processing block of the ABAP program and the current processing block of the dynpro are left immediately.

ABAP_VARIANT_1 LEAVE SCREEN.

What does it do? The variant LEAVE SCREEN calls the current next screen . This is either statically specified in the properties of the current screen or has been set before using the statement SET SCREEN .

ABAP_VARIANT_2 LEAVE TO SCREEN dynnr.

What does it do? The variant LEAVE TO SCREEN calls the screen with the number dynnr as the next screen
. A data object of the type n of the length 4 is expected for dynnr . It must contain either the
screen number of a screen in the main program of the current program group
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 .

Latest notes: This statement does not terminate the entire screen sequence; it branches to an additional screen in the 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 Framework s .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




LEAVE_PROGRAM
LEAVE_TO_LIST-PROCESSING




comments powered by Disqus