Ansicht
Dokumentation

ABENLEAVE_PROCESSING_BLOCKS - LEAVE PROCESSING BLOCKS

ABENLEAVE_PROCESSING_BLOCKS - LEAVE PROCESSING BLOCKS

General Data in Customer Master   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Exiting Processing Blocks

Processing blocks can be exited implicitly using:

or program-driven, using:

  • REJECT (obsolete, for logical databases only)

The subsequent program flow depends on the type of processing block.

In addition to the statements described here, statements that call other units without returning to the caller after the call is made, also terminate their processing block. These include:

Messages and raised exceptions can also exit processing blocks.

Only use RETURN to exit procedures

Notes

  • Exiting a procedure using RETURN, EXIT or CHECK is the error-free termination of the procedure. Formal parameters for which the pass by value is defined are not passed to the assigned actual parameters only if the procedure terminates after an error (an exception is raised or a message is sent).
  • The statements for exiting programs are not recommended inside procedures. They are not allowed in contexts like unit tests or during update and lead to exceptions if a procedure is called from such a context.





BAL_S_LOG - Application Log: Log header data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 3130 Date: 20240426 Time: 162117     sap01-206 ( 35 ms )