SAP EXIT LOOP ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID EXIT
• EXIT - loop ABAP Statement

EXIT, loop
Short Reference

ABAP_SYNTAX
EXIT.

What does it do?
If the EXIT statement is listed within a loop, it exits the loop by terminating the current loop pass. The program flow resumes after the closing statement of the loop.



Latest notes:

Outside of a loop, the statement EXIT exits the current processing block (see EXIT - Processing Block). EXIT, however, it should only be used within loops.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
Exit of a loop using EXIT if the loop index sy-index is greater than a number limit.
ABEXA 00248
ABAP_EXAMPLE_END

Return to menu