SAP DO - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for DO

DO

ABAP Reference
ABAP Code Snippet


ABAP Syntax DO [n TIMES]

[VARYING dobj FROM dobj1 NEXT dobj2 [RANGE range]
[VARYING ...]].
[statement_block]
ENDDO.
ABAP Code Snippet

What does it do? Executes the statement_block statement block several times in one loop.

ABAP Addition 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.

Return to menu