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: 

Explicit work area and Implicit Work area

Former Member
0 Kudos

Hi Friends,

Can any one explain me about Differnce between Explicit work area and Implicit work area?

Thanks in advance?

Chandu.

4 REPLIES 4

Former Member
0 Kudos

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.

The header line is a field string with the same structure as a row of the body, but it can only hold a single row.

It is a buffer used to hold each record before it is added or each record as it is retrieved from the internal table. It is the default work area for the internal table.

Thanks,

Viji

Former Member
0 Kudos

Hi,

If u define internal table with header line then its an implicit work area.

Data: itab like mara occurs 0 with header line.

if u created work area then its an explicit work area

data : itab type standard table of mara,

wa_itab type mara.

former_member189059
Active Contributor
0 Kudos

Explicit work area is when you declare a work area separately from the table

Implicit work area is the header line of the table (if the table is declared to have a header line)

For which is the better approach, refer to this thread

Former Member
0 Kudos

Hi,

Now Implicit work areas are outdated if u use that we will get the epc error. so we will explicit define the work area to avoid that.

for example.

data:

it_data type standard table spfli with header line. " implicit work area

  • Explicit work area.

data:

fs_data type spfli.

data:

it_data like table of fs_spfli.

*Difference in usage

implicit work area.

loop at it_data.

endloop.

explicit work area.

loop at it_data into fs_data.

endloop.

Plzz reward points if it helps.