May 28, 2009

Declare Work Area

There are two options or more to define workarea, but we must define internal table firstly.

DATA : it_mara TYPE STANDARD TABLE OF mara.

DATA : wa_mara LIKE LINE OF it_mara.
OR
DATA : wa_mara TYPE mara.

4 comments:

  1. we had internal table , based on that how to declare the work area by using final table

    ReplyDelete
  2. If you have an internal table already you can store the work area in two ways .

    Consider we have a structure ty-mara and an internal table it_mara.
    1)By using the statement types .
    Data wa_mara type ty_mara.
    2)BY using the statement like.
    Data wa_mara like line of it_mara.

    ReplyDelete
  3. why do we have to define working area`? is it necessary

    ReplyDelete
  4. how to define workarea without DATA statement?

    ReplyDelete