Ansicht
Dokumentation

ABENRAISE_ABEXA - RAISE ABEXA

ABENRAISE_ABEXA - RAISE ABEXA

PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Exceptions, RAISE

This example demonstrates the statement RAISE EXCEPTION.

Source Code

Execute

Description

This example shows the two variants of the statement RAISE EXCEPTION. The first statement raises an exception of the class CX_DEMO_CONSTRUCTOR in the inner TRY block, creates the relevant object, and passes the program name to the instance constructor. The inner CATCH block handles the exception, produces the exception text as output and raises the exception again without creating a new object. The outer CATCH block handles the exception again. The class CX_DEMO_CONSTRUCTOR is defined in such a way that the passed program name appears in the exception text. The generated instance constructor ensures this.

The output of the line number in which the exception was raised indicates that, when the existing exception object was reused, its information was changed.






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

Length: 1088 Date: 20240329 Time: 133721     sap01-206 ( 31 ms )