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: 

about WORK AREA

Former Member
0 Kudos

PLS TELL ME FUNDA BEHIND ....DEFINING .WORK AREA IN A REPORT ....I DONT THINK THERE IS MUCH OF THE USE OF......... AND WHAT R THE BASIC STEPS OF THIS ........

1 ACCEPTED SOLUTION

Former Member
0 Kudos

quite a lot of useful answers, and no points deployed...

in addition with just forum posts but 0 points yourself...

this really doesnt point out that you are the man who i want to help out.

8 REPLIES 8

kishorepallapothula
Participant
0 Kudos

Hi Guru,

Work area is nothing but header line. If you declare an internal table with header line it will give poor performance. So, they came across with 'WORK AREA' concept.

You can modify the values of the work area if required.

All the best.

Reward if useful.

kishore

Former Member
0 Kudos

Hi,

WORKAREA is a structure that can hold only one record at a time. It is a collection of fields. We use workarea as we cannot directly read from a table. In order to interact with a table we need workarea. When a Select Statement is executed on a table then the first record is read and put into the header of the table and from there put into the header or the workarea(of the same structure as that of the table)of the internal table and then transferred top the body of the internal table or directly displayed from the workarea.

Each row in a table is a record and each column is a field.

check this,

Regards,

Sankar

Former Member
0 Kudos

Hii Guru, actually the work area will work as buffer area. It will store the header data. when ever you insert the data into internal table it first moves to workarea and then to body.

Former Member
0 Kudos

hi,

work area is something like a structure which contains current record. for internal tables with out header line u have to create a explicit workarea and use for that table.

any operation to be done in internal tables [ with or with out header line] can only be done through this work area. its called header line in internal table with header.

to access any record or to update a existing record or deleting should be done through this workarea only for internal tables with out header line. same things can be done through header line for tables with header line.

in order to append a record to internal table first its placed in workarea or header line and from there its appended to internal table body. for any operation same procedure is done.

if helpful reward some points.

with regards,

Suresh Aluri.

Former Member
0 Kudos

Hi Guru

Work area is structutre means collection of fields and at a time can hold single record.

it is used whenever working with internal table.

data : begin of itab occurs 0,

matnr like mara-matnr,

end of itab.

it is an internal table with header line , whatever the operations performed on internal table r through headerline itself.here at declaration itself we r specifying size of internal table.

instead u can use types stt to declare itab.

types: begin of itab1,

matnr like mara-matnr,

end of itab1.

data: itab type table of itab1,

wa type itab1.

itab is internal table with out header line.

ex how to use this work area is

to print records of itab first every record moved to wa and then from that it is get printed in output

loop at itab into wa.

write:/20 wa-matnr.

endloop.

Reward if useful

regards

sandhya

0 Kudos

thnx sandhya ............. for ur reply where r u working at ???/

Former Member
0 Kudos

quite a lot of useful answers, and no points deployed...

in addition with just forum posts but 0 points yourself...

this really doesnt point out that you are the man who i want to help out.

0 Kudos

where r u working at ..........??