LEAVE.
Leaves the "CALL mode" (introduced by:
CALL TRANSACTION, CALL
DIALOG, SUBMIT ... AND RETURN)
and returns directly to where the call was made.
Exception: LEAVE
TO LIST-PROCESSING
If the system field SY-CALLD
is blank, the system ignores the LEAVE statement. If a
program is started using LEAVE TO TRANSACTION or using
a transaction code, SY-CALLD is empty. If the system is
processing batch input folders, SY-CALLD is also empty.
For this reason, the behavior of the LEAVE statement is
context- specific and use of the statement should be avoided where possible. Use
LEAVE PROGRAM, LEAVE SCREEN und LEAVE LIST-PROCESS ING instead.
LEAVE is not required if you use standard F keys in the
list processing (F3=Back and F15=Exit).
LEAVE PROGRAM, LEAVE SCREEN, LEAVE LIST-PROCESSING.