Get Example source ABAP code based on a different SAP table
ID RETRY • RETRY ABAP Statement
RETRY> Short Reference >
ABAP_SYNTAX RETRY.>
What does it do? 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 within a CATCH> block of a TRY> control structure.
Latest notes:
The RETRY> statement enables a TRY> block that raised an exception to be executed again completely.
If the BEFORE UNWIND> addition is specified for a CATCH> block, exiting using RETRY> deletes the context of the exception and recreates it in the TRY> block. With respect to the context, therefore, RETRY> behaves like any exit of a CATCH > block, with the exception of RESUME>>.
The cause of the exception must be removed either before RETRY> in the CATCH> block or after RETRY> in the TRY> block. If a TRY> block is repeated and the cause of the exception is not removed, an endless loop occurs. NON_V5_HINTS ABAP_HINT_END
ABAP_EXAMPLE_VX5 The following exception handling extends the ABAP-specific handling of a division by zero to dividends not equal to zero, by setting these to the value zero before a second pass. ABEXA 00562 ABAP_EXAMPLE_END