Conditional Loops
To repeat a statement block for as long as a certain condition is true, use the following control structure:
WHILE log_exp
[statemaent_block]
ENDWHILE.
EXAMPLE:
WHILE string NE space.
WRITE string(1).
length = sy-index.
SHIFT string.
ENDWHILE.
|