SAP ABAP LEAVE PROGRAM



Get Example source ABAP code based on a different SAP table
  



Exiting Programs
This section describes the statement LEAVE PROGRAM used for exiting programs.
Apart from LEAVE PROGRAM, the following statements are also used to exit programs that calls other programs without returning to the caller after the call:
LEAVE TO TRANSACTION
SUBMIT without AND RETURN
Exiting certain processing blocks can also cause the entire program to be exited implicitly.



Latest notes:

The statements for exiting programs are not possible in some contexts as for example during unit tests or during update. Therefore they should not be used in procedures.
ABAP_HINT_END