Case...EndCase
Ex :
- 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
PARAMETERS : color TYPE I.
CASE COLOR.
WHEN '1'.
WRITE 'COLOR 1 ' COLOR 1.
WHEN '2'.
WRITE 'COLOR 2 ' COLOR 2.
WHEN '3'.
WRITE 'COLOR 3 ' COLOR 3.
WHEN '4'.
WRITE 'COLOR 4 ' COLOR 4.
WHEN '5'.
WRITE 'COLOR 5 ' COLOR 5.
WHEN '6'.
WRITE 'COLOR 6 ' COLOR 6.
WHEN '7'.
WRITE 'COLOR 7 ' COLOR 7.
WHEN OTHERS.
WRITE : 'ENTER COLORS WITHIN 7'.
ENDCASE.
No comments:
Post a Comment