difference between the workarea and headerline.plz tell me
the answer

Answer Posted / jyo

Header Line

While adding or retrieving records to or 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.
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.

e.g.

data: begin of itab occurs 10,
ab type c,
cd type i,
end of itab. " this table will have the header line.

Work Area

Work area is of the same structure like internal table
referred, it will also possess only one record, but this is
declared explicitly, to perform calculations and other
manipulations.
Work area is like a paper and pencil concept, where the
calculations and manipulations will be done and will be
erased after the execution.

e.g.

data: wa_itab like itab. " explicit work area for itab
data: itab1 like itab occurs 10. " table is without header line.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the insert statement in extract datasets do? : abap modularization

781


Give few names of pooled tables in sap ?

1705


What is the last entry in all bdc tables? : abap bdc

774


What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why?

786


What is an abap/4 query? : abap hr

819


What are interactive reports?

827


What is the difference between get and get late?

813


How do you find out who has transported a transport request?

840


can any one answer these questions 1)How do you convert non-character field to character field? 2)How do you work with semi colon separated files? 3)why cant we use normal function module for data transfer? 4)what is the structure of CTU-PARAMS? 5)can we use transfer dataset to transfer data in internal table?

1759


Explain the Inportance of pa40? : abap hr

758


What are internal tables? How to use a specific number occurs statement?

747


what is code to upload cost centers through call trans. and procedure

2365


What are the functional areas, user groups? How does abap query work in relation to these?

803


How to handle error in session method? : abap bdc

929


What is occurs in internal table?

825