Skip to content

ABAP Keyword Documentation →  ABAP - Quick Reference 

DO - Quick 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 more than once in a single loop.

Additions

  • n TIMES
    Limits the number of loop passes to n.
  • VARYING 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 using dobj1 and dobj2 to a variable dobj. The data object range limits the addressable memory area.