Skip to content

ABAP Keyword Documentation →  ABAP - Short Reference 

DO - Short Reference

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 to n.
  • VARYING dobj FROM dobj1 NEXT dobj2 [RANGE range]
    Obsolete: Assigns a value at every loop pass to the variable dobj. This value is determined by the sequence of dobj1 and dobj2 in the memory. With data object range, you can limit the addressable memory area.