Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

work area

Former Member
0 Kudos

Can any one please give a sample code on work area concept , and also a brief description of its working concept.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

A work area is nothing more than a structure which serves as a header line for an internal table. When you read an internal table(without header line) the line which you read must be moved somewhere, it is moved into a work area. So here is an example.

data: itab type table of mara.
data: wa like line of itab.

Select * into table itab from mara
              up to 10 rows.

Loop at itab into wa.
   write:/ wa-matnr.
endloop.

Regards,

Rich Heilman

2 REPLIES 2

Former Member
0 Kudos

Hi Krish,

Just refer to the below link

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb36a1358411d1829f0000e829fbfe/content.htm

Reward points if useful.

Regards,

Atish

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

A work area is nothing more than a structure which serves as a header line for an internal table. When you read an internal table(without header line) the line which you read must be moved somewhere, it is moved into a work area. So here is an example.

data: itab type table of mara.
data: wa like line of itab.

Select * into table itab from mara
              up to 10 rows.

Loop at itab into wa.
   write:/ wa-matnr.
endloop.

Regards,

Rich Heilman