sapdev logo background
sapdev logo sapdev logo
Comments

SAP NEWS-71-EXCEPTIONS documentation, setup help and example usage



Return to SAP documentation index



Class-Based Exceptions for Release 7.0, EhP2

1 Resumable exceptions
2 Keep context of an exception
3 Repeat the TRY block


ABAP_MODIFICATION_1 Resumable exceptions

Before Release 7.0, EhP2 , the context in which a class-based exception was raised was always emptied completely. All procedures called between the raising of the exception and any handler were deleted with their local data before the handler was executed. The program could only resume after the TRY control structure of the handler.
As of Release 7.0, EhP2 , class-based exceptions can be raised and propagated as resumable exceptions. The new addition RESUMABLE can be used in:
The statement RAISE EXCEPTION

The RAISING addition for declaring exceptions in
[CLASS-] METHODS , FUNCTION , and FORM .
The new statement RESUME is used to resume the execution of a program after the exception-raising statement, while the resumable exception is being handled.


ABAP_MODIFICATION_2 Keep context of an exception

The context of the exception must be kept during handling to enable the program to be resumed after handling. To enable this, the new addition BEFORE UNWIND of the statement
CATCH has been introduced. This addition can also be used independently of resumable exceptions.


ABAP_MODIFICATION_3 Repeat the TRY block

The new statement RETRY enables an exception-raising TRY block to be repeated.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




NEWS-71-ENHANCEMENTS
NEWS-71-EXPRESSIONS




comments powered by Disqus