ABAPLEAVE_PROGRAM - LEAVE PROGRAM
ROGBILLS - Synchronize billing plans PERFORM Short ReferenceThis documentation is copyright by SAP AG.
LEAVE PROGRAM
Syntax
LEAVE PROGRAM.
Effect
This statement immediately ends the current main program and deletes its internal session - including all loaded programs, instances, and their data .
The LEAVE PROGRAM statement can appear anywhere within any processing blocks. It ends the program regardless of the program/object or theprogram group of the internal session in which it is executed.The runtime environment responds to the LEAVE PROGRAM statement depending on how the main program was called in the internal session:
- If the main program was called using CALL TRANSACTION,SUBMIT AND RETURN, orCALL DIALOG, theruntime environment returns to the calling program after the call position. If the main program was called with CALL DIALOG, the output parameters of thedialog module are passed to the calling program., ,
- If the main program was called using LEAVE TO TRANSACTION or using a transaction code from within adynpro, the runtime environment returns to the position at which the first program in the currentcall sequence was called.
- If the main program was called using SUBMITwithout the addition AND RETURN, the runtime environment returns to the position at which the calling program was started.
Notes
- If procedures are still registered when you leave a program in the currentSAP-LUW, the SAP-LUW is ended without calling or rolling back the procedures. Registeredupdatefunction modules remain in the database but can no longer be executed. In this case, the statementCOMMIT WORK orROLLBACK WORK should be executed explicitly before leaving the program.
- The statement LEAVE without additions is obsolete.
TXBHW - Original Tax Base Amount in Local Currency BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 3571 Date: 20120522 Time: 235041 triton ( 107 ms )






