when do you need to create an internal table with header
line ?and with out a header line?

Answer Posted / mahender

in this question we can proceed like this.
with header line.
data:itab like lfa1 occurs o with header line.
itab:internal table body.
with out header line:
data:begin of fs,
field1 like lfa1-field1,
end of fs.
these are syntaxes for both...but if u want to extract all
the fields from predefined table or exhisting table.. very
complex to write all field names in internal table
declaration.so that time use with header line syntax.

fields are very few..go for with out header
line..performance wise with out header line is better.

Is This Answer Correct ?    7 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi I am in training of functional module, i am unable to understand what exactly use of IDOC,BAPI,DIM and BIM. As LSMW and BDC methods are used for data conversion from legacy to sap. Might be it is silly question. please explain me

1771


What is “call mode”?

580


What are the features of abap/4 dictionary? : abap data dictionary

588


Can we display a list in a pop-up screen other than full-size stacked list?

693


Where the payroll results are stored

1809






What are uses of foreign key?

569


Can you print decimals in type n?

565


Can any tell me ECC 5.0, ECC 6.0 Released year? and difference between them?

1976


What is native sql?

601


What are the different attributes that can be assigned to a variant?

585


What are system variable in abap?

609


What are the dynamic actions and how to configure it? : sap abap hr

586


When is the top-of-page event triggered? : abap data dictionary

801


Explain data dictionary in abap?

598


What is elementary search help? : sap abap data dictionary

561