loop abap code example
Example: abap loop example
REPORT Z_WHILE_LOOP.
DATA: W_I TYPE I VALUE 1.
WHILE W_I < 10.
WRITE : /'Iteration ',W_I.
W_I = W_I + 1.
ENDWHILE.
REPORT Z_WHILE_LOOP.
DATA: W_I TYPE I VALUE 1.
WHILE W_I < 10.
WRITE : /'Iteration ',W_I.
W_I = W_I + 1.
ENDWHILE.