While .. Endwhile
Ex :
Steps :
- Go to transaction code SE38.
- Enter the program name Z or Y<program name>
- Select attribute type as Executable program.
- Click on Save.
Source Code
DATA: COUNT TYPE I.
PARAMETERS : NUM TYPE I.
COUNT = 1.
WHILE COUNT <= NUM .
WRITE : / COUNT .
COUNT = COUNT + 1.
ENDWHILE.
PARAMETERS : NUM TYPE I.
COUNT = 1.
WHILE COUNT <= NUM .
WRITE : / COUNT .
COUNT = COUNT + 1.
ENDWHILE.
No comments:
Post a Comment