Ansicht
Dokumentation

ABAPEXIT_LOOP - EXIT LOOP

ABAPEXIT_LOOP - EXIT LOOP

ABAP Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

EXIT, loop

Short Reference



EXIT.

Effect

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.

Note

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.

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

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






General Material Data   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 1204 Date: 20240425 Time: 190239     sap01-206 ( 26 ms )