can we insert two records in internal table?
if yes give code.

Answer Posted / malathy

Ofcourse we can insert two receods to an internal table.

Here is a sample code.

*Internal table declaration.
Data: ftab like scarr occurs 0.
Data: begin of itab,
carrid like scarr-carrid,
carrname like scarr-carrname,
currcode like scarr-currcode,
end if itab.

itab-carrid = BB.
itab-carrname = British airways.
itab-currcode = HBC.
Append itab to ftab.
clear itab.

itab-carrid = AA.
itab-carrname = American airlines.
itab-currcode = JFC.
Append itab to ftab.
clear itab.


by using append we can insert multiple records to an
internal table.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

any one can tell me which is the tables can store in ddic plese dont say db02l,please give me different ways of resideing the tables ?

1953


In ALV reporting when u execute your report which event gets triggered.

1604


How to write a code in tab control? : abap bdc

610


What is the maximum number of structures that can be included in a table or structure : abap data dictionary

779


What is step-loop?

641






What is the difference between data elements and domains? : abap data dictionary

556


What is the purpose of sum statement?

550


Can a constructor be declared private? If yes then in which scenario?

898


How do you find if a logical database exists for your program requirements?

619


What are screen painter? Menu painter? Gui status?

573


Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.

1563


What is locking? : abap data dictionary

607


What are the basic object types? : sap abap hr

601


What is tcode se16?

572


Does sap handle multiple languages?

534