07-01-2007 11:05 PM
Can any one please give a sample code on work area concept , and also a brief description of its working concept.
07-02-2007 12:04 AM
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
07-02-2007 12:03 AM
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
07-02-2007 12:04 AM
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