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

Explicty vs implicity

Former Member
0 Likes
843

Any body can help me to know the exact difference between EXPLICITY WORK AREA and IMPLICITY WORK AREA.....?

7 REPLIES 7
Read only

Former Member
0 Likes
805

Hi Sekhar,

When u create a structure u have to create a workarea to store data into it. this is called Explicit Workarea.

If u create an Internal Table with Occurs n specification, it is created automatically with a header line. This Header line is called Implicit Workarea.

awrd points if useful

Bhupal

Read only

Former Member
0 Likes
805

Hi Sekhar,

when we are creating internal table 'with header line' this will implicitly contain workarea. like

data: itab like lfa1 occurs 0 with header line.

or

creating body and work area individually called as explicit work area.

like

data: itab like lfa1 occurs 0,

data: wa like lfa1.

Award points if use full.

Thanks & Regards,

vinesh,

Read only

Former Member
0 Likes
805

hi,

The work area that u define is called as explicit work area.

ega

types: begin of ty_itab,

matnr type mara-matnr,

end of ty_itab.

data: it_itab type table of ty_itab.

data: wa_itab type ty_itab. " Work area defined explicitly.

and the table that u create with header line is called as implicit work area.

eg

data: it_mara like mara occurs 0 with header line.

regards,

Santosh Thorat

Read only

Former Member
0 Likes
805

Hai,

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.

gothrough beloe link,

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/37c5db90-0201-0010-3a9b-d0a5288f...

With Regards,

Sowjanya.B.

Read only

Former Member
0 Likes
805

suppose you have structure like this

types : begin of s_lifnr,

lifnr type lifnr,

name1 type name1,

land1 type land1,

end of s_lifnr.

data : wa type s_lifnr'

body type table of s_lifnr.

now you create a work area with the name "wa" .this is called explicit work area.

internal table body is also created with the name "body".

otherwise.

data : begin of it_itab occurs 0,

lifnr like lfa1-lifnr,

name1 like lfa1-name1,

end of it_itab.

now this it_itab is the work area(internal work area)

it_itab[] is the internal table body.

regards,

swami

Read only

Former Member
0 Likes
805

I will giove shortcut to rember ..now u wont forgot..

explicit ---> outside

implicit -


> inside.

i.e. for a internal table if u create workarea inside the internal table with the help of header line specoifcation or occurs 1 specification this is called as implicit work area.

or if u declare body seperate and wokarea seperate called as explicit work area

regards points if useful..dont forget my short cut ok bye

satish.v

Read only

UdayS
Participant
0 Likes
805

Hi sekhar,

When you declare any table in your program using the TABLES statement then the program will automatically create the interanl table with the same name as of the table name which you can use directly.And this is called Implicit as it itself creates the internal table which we use as a work area.

When you want to use some other work area or internal table with some other name (other than the one which automatically got created during declaration of tables) then we use DATA statement to define that work area. This type of decleration is named to be Explicit decleration of work area