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

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

587


From excel to abap - is batch mode possible ? : abap bdc

628


How can I get ascii value of any letter? Is there any function?

655


What is logo in sap script?

571


What are the types of search helps? : sap abap data dictionary

642






What is sequence of event triggered in report?

601


what is the purpose of BAPI BAPI_CUSTMATINFO_GETLIST What is input and output of this BAPI.

2063


Can we access static attribute from instance method

998


How many types of tables exist and what are they in data dictionary?

602


How to write a bdc – how do you go about it?

661


HI GUYS , FOR SAP INSTITUTION ATOS I BEST OR NOT? IAM PLANNING TO LEARN SAP COURSE IN ATOS... GIVE ME UR SUGGESTION ABOT ATOS?

2406


What takes most time in SAP script programming?

684


Explain client-dependent and client-independent tables.

611


What is the collect statement? How is it different from append?

525


What is help view?

559