- A variable which has been declared with reference of the structure is Know as Work Area.
- DATA : <Work Area name > type <structure name or table structure name>.
- Whenever we mention variable with DATA keyword, then its capable to hold data.
- Work Area is capable to hold the single record at a time.
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.
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.
Serkan AKKAVAK
Computer Engineer
SAP Department Deputy Manager
Contact : serkurumsal@yandex.com
0 Comments