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

which one is preferable..?

Former Member
0 Likes
872

which work area is preferable,explicity or implicity...?

which work area is preferable,explicity or implicity...?

5 REPLIES 5
Read only

Former Member
0 Likes
841

Hi,

Explicit work area is better.

Read only

Former Member
0 Likes
841

Hi sekhar,

Go for explicit work area is preferable

award points if use fullregards,

vinesh.

Read only

0 Likes
841

hai friends i have a confusion form long time..what is explicit and what is implicit..?

Read only

0 Likes
841

Hi Satish,

Implicit workareas are those which are declared by the table addition. If you use the asterisk (*) option to read all of the columns of a single database table <dbtab> in the SELECT clause, the INTO clause may be empty. The SELECT statement then writes the data by default into the table work area with the same name <dbtab> as the database table itself. You must declare this table work area using the TABLES statement. Before Release 4.0, this was necessary before you could read data from a database table at all, and was frequently used as an implicit work area. Nowadays, table work areas are still useful as interface work areas, but should no longer be used as the work area in the SELECT statement. Like internal tables without header lines, having different names for the source and target areas makes programs clearer.

Explicit workareas are declared by the addition like line of..

Example: Implicit work area.

tables : sflight.

Example: Explicit workarea.

data: wa_sflight like line of sflight.

Hope this helps.

Regards,

Renjith Michael.

Read only

Former Member
0 Likes
841

hi sekhar,

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.

explicit work area is preferable

reward points if helpful,

shylaja