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
What does the insert statement in extract datasets do? : abap modularization
Give few names of pooled tables in sap ?
What is the last entry in all bdc tables? : abap bdc
What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why?
What is an abap/4 query? : abap hr
What are interactive reports?
What is the difference between get and get late?
How do you find out who has transported a transport request?
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?
Explain the Inportance of pa40? : abap hr
What are internal tables? How to use a specific number occurs statement?
what is code to upload cost centers through call trans. and procedure
What are the functional areas, user groups? How does abap query work in relation to these?
How to handle error in session method? : abap bdc
What is occurs in internal table?