ABAP - Keyword Documentation →  ABAP - ABAP Release News →  News for ABAP Release 7.0 and its EhPs →  News for ABAP Release 7.0, EhP2 → 
Mail Feedback

Class-Based Exceptions in ABAP Release 7.0, EhP2


1. Resumable Exceptions

2. Preserving the Context of an Exception

3. Retrying the TRY Block



Modification 1  

Resumable Exceptions

Before ABAP 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, and their local data, were deleted before the handler was executed. The program could only resume after the TRY control structure of the handler.

From ABAP release 7.0, EhP2, class-based exceptions can be raised and propagated as resumable exceptions. The new addition RESUMABLE can be used in

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.



Modification 2  

Preserving the Context of an Exception

The context of the exception must be retained while it is being handled so that the program can resume afterwards. To enable this, the new addition BEFORE UNWIND of the statement CATCH has been implemented. This addition can also be used independently of resumable exceptions.



Modification 3  

Retrying the TRY Block

The new statement RETRY enables an exception-raising TRY block to be retried.