Application Development and Automation 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: 
Read only

WORK AREA

Former Member
0 Likes
693

IN REPORTS WHY WE CREATE A WORK AREA

4 REPLIES 4
Read only

Former Member
0 Likes
618

work area is for a temporary storage through which you can move the data, read the data and so on. When the internal table doesn't have a header line attached explicit work areas are defined. Be specific about your requirement and you can get the right answer.

Award points if helpful and close the thread.

Read only

Former Member
0 Likes
618

Hi,

While adding or retrieving records to / from internal table we have to keep the record temporarily.

The area where this record is kept is called as work area for the internal table. The area must have the same structure as that of internal table. An internal table consists of a body and an optional header line.

Header line is a implicit work area for the internal table. It depends on how the internal table is declared that the itab will have the header line or not.

e.g.

data: begin of itab occurs 10,

ab type c,

cd type i,

end of itab. " this table will have the header line.

data: wa_itab like itab. " explicit work area for itab

data: itab1 like itab occurs 10. " table is without header line.

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
618

<b>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.

</b>

check this,

Read only

Former Member
0 Likes
618

HI Darsh ...

Work area is actually a temporary storage for internal tables. But it always advantageous to create a internal table with header line ... if u declare an internal table with header line . the header line actually does the work of a work area..

Pl . Reward Points if found helpful