Work Area


  • A variable which has been declared with reference of 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 single record at a time.
Ex :

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.

Save->Check->Activate ->Execute.

Comments

Popular posts from this blog

RADIO-BUTTONS IN BASIC REPORT

ALV-LIGHT_SET