‎2007 Feb 09 8:12 PM
‎2007 Feb 09 8:39 PM
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.
‎2007 Feb 10 6:09 AM
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
‎2007 Feb 10 6:12 AM
<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,
‎2007 Feb 10 7:04 AM
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