ABAP Loops While Loop


Example

ABAP also offers the conventional WHILE-Loop which runs until the given expression evaluates to false. The system field sy-index will be increased for every loop step.

WHILE condition.
* do something
ENDWHILE