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

what is the work area

Former Member
0 Likes
5,444

plz give me the answar of the question

what is the work area

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
5,126

Check this,

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.

https://www.sdn.sap.com/irj/sdn/profile?userid=3486494

4 REPLIES 4
Read only

Former Member
0 Likes
5,126

I think you are in serious need of training if you have to ask that question. The work area is the temporary space in SAP memory that you are working as an ABAPer and is for the duration that your program is running, you also define that area and space as you define internal tables etc....

Message was edited by:

David Lawlor

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
5,126

A work area is nothing more than a variable in your program which usually has some strucure. This work area holds data at runtime. A lot of times a work area is used to read lines of an internal table into.

Loop at itab into wa.
  write:/ wa-fld1, wa_fld2.
endloop.

Regards,

Rich HEilman

Read only

Former Member
0 Likes
5,127

Check this,

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.

https://www.sdn.sap.com/irj/sdn/profile?userid=3486494

Read only

Former Member
0 Likes
5,126

Hi Vikram,

The structure of internal table is , it consists of a work area and body. If u want to add or retrieve the records from the database ,then what happens is, the first record(which u want to add/retrieve) comes to the work area then it is sent to the body area (this happens only when the next record is retrieved) .

For example if 'n' records are to be retrieved from the database,after retrieving the 'n'th record the last record in the body area will be equal to the record present in the work area(i.e.; when any record is called then it enters the workarea by overwriting any existing record and the existing record is sent to the body area).

If found useful ,reward suitable points

Regards,

Naresh