ABAP Keyword Documentation → ABAP - Quick Reference
WHILE - Quick 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 expression log_exp
is true.
Addition
-
VARY dobj FROM dobj1 NEXT dobj2 [RANGE range]
Obsolete: In each loop pass of a variable, assigns a value from the sequence defined in the memory usingdobj1
anddobj2
to a variabledobj
. The data objectrange
limits the addressable memory area.