CONTROL STATEMENTS IN SAP ABAP.
Control statements are nothing but loops. The property of the loop is to rotate by it self until loop is terminated. There are 4 types of control statements in SAP. They are
DO.
..
..
ENDDO.
DO N TIMES.
..
..
ENDDO.
WHILE <CONDITION>.
..
..
ENDWHILE.
CASE <VARIABLE>.
WHEN <VALUE1>.
..
..
WHEN <VALUE2>.
..
WHEN OTHERS.
..
ENDCASE.
Exit statement is used to terminate the loop. SY-INDEX is a system variable which gives present loop iteration number. These both things we use in coming program to see how they act in the loop.
No comments:
Post a Comment