SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Program Flow Logic → Exception Handling → Class-Based Exceptions → TRY →Syntax
RETRY.
Effect
This statement exits the CATCH handling of a class-based exception and continues processing with the TRY statement of the current TRY control structure.
The RETRY statement can only be executed in a CATCH block of a TRY control structure.
Notes
Example
The following exception handling extends the ABAP-specific handling of a division by zero to dividends not equal to zero.
PARAMETERS: number1 TYPE i,
number2 TYPE i.
DATA result TYPE p DECIMALS 2.
TRY.
result = number1 / number2.
MESSAGE |Result: { result ALIGN = LEFT }| TYPE 'I'.
CATCH cx_sy_zerodivide.
number1 = 0.
RETRY.
ENDTRY.