- Clear is used to clear the content of variable or work area or Internal table.
- Keyword: Clear.
1.Without Clear statement.
Source Code
Types : BEGIN OF TY_STR,
NAME(12) TYPE C,
AGE TYPE I,
PLACE(20) TYPE C,
END OF TY_STR.
DATA : WA_STR TYPE TY_STR.
WA_STR-NAME = 'APPLEX'.
WA_STR-AGE = 12.
WA_STR-PLACE = 'MANGALORE'.
WRITE : / WA_STR-NAME ,WA_STR-AGE , WA_STR-PLACE.
WA_STR-NAME = 'MANGOX'.
WA_STR-PLACE = 'BANGALORE'.
WRITE : / WA_STR-NAME ,WA_STR-AGE , WA_STR-PLACE.
NAME(12) TYPE C,
AGE TYPE I,
PLACE(20) TYPE C,
END OF TY_STR.
DATA : WA_STR TYPE TY_STR.
WA_STR-NAME = 'APPLEX'.
WA_STR-AGE = 12.
WA_STR-PLACE = 'MANGALORE'.
WRITE : / WA_STR-NAME ,WA_STR-AGE , WA_STR-PLACE.
WA_STR-NAME = 'MANGOX'.
WA_STR-PLACE = 'BANGALORE'.
WRITE : / WA_STR-NAME ,WA_STR-AGE , WA_STR-PLACE.
Serkan AKKAVAK
Computer Engineer
SAP Department Deputy Manager
Contact : serkurumsal@yandex.com
0 Comments