We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
Loop across table lines
1. LOOP AT itab result $[cond$].
Loop across line groups
2. LOOP AT itab result $[ cond$] GROUP BY group_key
$[ASCENDING$|DESCENDING $[AS TEXT$]$]
Executes a table iteration as a loop across an internal table itab. itab is a functional operand position.
The statements LOOP and ENDLOOP define the statement block of the loop. The statement LOOP reads lines from the internal table itab sequentially that meet an optional condition cond.
To exit processing of the loop, the following statements can be used:
For changing the internal table within a loop, special rules apply. Especially, you should never do a write access to the complete table body.
Internal tables can also be specified as a data source of a query in .
Simple LOOP over an internal table.