Saturday, 28 May 2016

Work Area

Work Area

  • A variable which has been declared with reference of the structure is Know as Work Area. 

Syntax :

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.

Ex :


Source Code


Types BEGIN OF TY_STR,
        NAME(12TYPE C,
        AGE   TYPE I,
        PLACE(20TYPE 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.

Save->Check->Activate ->Execute.





No comments:

Post a Comment