It
is also called as conditional loop. It execute the statements until the
condition is true.
Syntax
WHILE
condition
* Execute block of statements.
ENDWHILE.
Z_HELLO_WORLD
*&---------------------------------------------------------------------* *& Report Z_HELLO_WORLD *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT Z_HELLO_WORLD. DATA counter TYPE I VALUE 0. WHILE counter < 10. Write: / 'Value of counter : ', counter. counter = counter + 1. ENDWHILE.
No comments:
Post a Comment