EXIT - loop
EXIT statement is listed within a
loop, it leaves the loop by ending the current loop process. Program execution is continued after the closing statement in the loop.
Leaving a loop with
EXIT if the loop index
sy-index is greater than a number
DATA limit TYPE i VALUE 10. DO. IF sy-index > limit. EXIT. ENDIF. WRITE / sy-index. ENDDO.