ABAP Keyword Documentation → ABAP - Short Reference
DO - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
DO [n TIMES] 
   [VARYING dobj FROM dobj1 NEXT dobj2 [RANGE range] 
   [VARYING ...]]. 
  [statement_block] 
ENDDO. 
Effect
Executes the statement_block statement block several times in one loop.  
Additions
- 
n TIMES
 Limits the number of loop passes ton.
- 
VARYING dobj FROM dobj1 NEXT dobj2 [RANGE range]
 Obsolete: Assigns a value at every loop pass to the variabledobj. This value is determined by the sequence ofdobj1anddobj2in the memory. With data objectrange, you can limit the addressable memory area.