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 abap/4 commands that link to a layout set?

1064


In events, start-of-selection is a default event. When we have to use this event explicitly? Why?

768


When to use logical database?

750


In an abap/4 program how do you access data that exists on a presentation server vs on an application server?

860


What are the domains and data elements?

1179






Interactive Report that list purchase order details of a vendor. When the user double clicks on material number it shows detail list with fields matkl, meins, brgew, ntgew, gewei.The selection screen consist of sales organisation, distribution channel and material number. plz mention the detail coding Tahnks, Rahul

3457


What are the attributes of the data? : abap data dictionary

818


What are the differences between table controls and step loops?

736


How do you read files from the presentation server ? : abap bdc

788


What are pooled tables?

801


Name a few data dictionary objects?

826


Difference between stand alone CRM and back-end CRM

3973


Why do we use FOR ALL ENTRIES and what is the pre-requisite

1129


How can we handle table control in bdc? : abap bdc

791


What are the components of sapscript?

804