Ansicht
Dokumentation

ABENOO_OBS_EXCEPTIONS_1 - OO OBS EXCEPTIONS 1

ABENOO_OBS_EXCEPTIONS_1 - OO OBS EXCEPTIONS 1

General Material Data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Exceptions Must Be Defined in Triggering Class

In contrast to function modules, only those exceptions can be triggered in a method that have been defined for this method. The static syntax check checks whether the exception exists (when an exception is triggered by the statement RAISE and when it is handled using the exception EXCEPTIONS of the statement CALL METHOD). A non-existent exception raised in a function module merely causes a syntax warning message, and handling of a non-existent exception in the statement CALL FUNCTION is not checked at all. Therefore undefined exceptions can be raised and handled in function modules.

Reason:

Runtime errors caused by triggering non-existent exceptions are prevented.






ABAP Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 887 Date: 20240425 Time: 111306     sap01-206 ( 25 ms )