difference between the workarea and headerline.plz tell me
the answer
Answers were Sorted based on User's Feedback
Answer / rakesh akula
internal table with header line contains header and body.
any record which is to inserted into the internal table
body passes to header line first then it is appended or we
can say pushed to body of internal table. The header and
body has the same name.
Suppose we have a internal table having fields NAME, AGE.
and our internal table name is ITAB.
itab-name = 'Rakesh'.
itab-age = '26'.
Append itab to itab. (" appends headerline ITAB to Body IT")
or we can use :- append itab. (both the above code works
same).
whereas in workarea it also works similarly as a header
line.
only difference is that its a headerline which is declared
explicitly and it is not attached with an internal table .
to append the work area containining a singel record into
internal table without header line :-
wa-name = 'Rakesh'.
wa-age = '26'.
Append Wa to ITAB.
I suppose this information will clear doubts .
Is This Answer Correct ? | 25 Yes | 0 No |
Answer / swati
please dont write wrong answer mr. SJHA ..do you know what
is sap or abap? cartoon
function of work area and header line is same.
Both are used to processed the data from internal table .
as i know the default work area of an internal table is a
header line.
Is This Answer Correct ? | 9 Yes | 3 No |
Answer / 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 |
Answer / vandan
Workarea and headerline both are contain single record
structure.normally we have two types of internal tables.
1. with headerline
2. with out headerline
in with headerline internal table it self first row
contains workarea. In case of without headerline internal
table it will contain work area and body.
Is This Answer Correct ? | 5 Yes | 13 No |
Answer / sjha
Workarea contains the multiple records and whenever
headerline contains single record.
Declarations are as
lt_mara type standard table of mara : workarea
ls_mara type mara : Headerine
Is This Answer Correct ? | 3 Yes | 40 No |
what are the Performance technic you used?
what is session and what is the use of that one?
How to set an Enhancement point for a custom report?
Explain the function module in bdc?
Are EVENTS Possible in LSMW?If so how to achieve?
what is function group? Difference between function group and FM?
How to Raise a Particular Ticket in Realtime ?
What is meant by hot spots? : abap data dictionary
how to use binary search in internal table?what is the use of indexes and secondary indexes?
– Programming using BAPI : Create Debit Memo Request (DMR) with reference to Sales Order and update the delivery number and PO number in the newly created DMR. Send the spool of the report by E-mail if the E-mail option is enabled. Selection Screen Required:  Sales Org  Delivery type  Sales document type Optional:  Planned Goods movement date  Option to choose E-Mail  E-mail Address  Output device Output Output should display both successful and unsuccessful creation of DMR with the following fields,  Success/Error (S/E)  Sales Document number  Delivery number  New Debit memo request number  Error message Tables TVAK, TVCPA, VBAK, LIKP, LIPS
How do you validate the selection criteria of a report? And how do you display initial
Select option?