Ending ABAP Programs

The execution of an ABAP program is always ended when the corresponding process in the runtime environment ends. From an ABAP programmer’s perspective, this is when the last of the processing blocks triggered by the runtime environment is ended. You can, however, program ABAP programs to end at any time with the LEAVE PROGRAM statement.

The LEAVE TO TRANSACTION statement and the SUBMIT statement without the AND RETURN addition also end an ABAP program.

Comments