ABAP Keyword Documentation → ABAP - Short Reference
WHILE - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
WHILE log_exp
[VARY dobj FROM dobj1 NEXT dobj2 [RANGE range]
[VARY ...]].
[statement_block]
ENDWHILE.
Effect
Executes the statement block statement_block
in a loop as long as the logical condition log_exp
is true.
Addition
-
VARY dobj FROM dobj1 NEXT dobj2 [RANGE range]
Obsolete For each loop execution of a variable, assigns a value from
the sequence defined in the memory using dobj1 and dobj2 to a variable dobj. The data object range limits the addressable memory area.
This translation does not reflect the current version of the documentation.