Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPEXIT_LOOP - EXIT LOOP

ABAPEXIT_LOOP - EXIT LOOP

General Material Data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
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 in 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.

Example

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






PERFORM Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 1071 Date: 20221203 Time: 174916     sap01-206 ( 15 ms )