cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert the records of details into the internal table using table parameters in sap abap

I'm new to Abap, my requirement is I've created a internal table for the details of the employee which has seven records in it, and I need to insert multiple records into table using table parameters

Accepted Solutions (1)

Accepted Solutions (1)

former_member184158
Active Contributor
0 Kudos

Hi Naveen,

Table1 has 7 Records as you written. 
table 2 empty. then you can add as Sooraj wrote above with this statement.
INSERT LINES OF table1 into table2.
or you can use also INSERT LINES OF table1 from index to index into table2.

Regards

Ebrahim

Answers (3)

Answers (3)

horst_keller
Product and Topic Expert
Product and Topic Expert
former_member184158
Active Contributor
0 Kudos

Hallo Naveen kumar,

I have read you comment that you need this parameter in Function module. So you can create parameter as change or export then you can add this records into your result.

If you need more information just let me to know or write it.

DATA lt_sflight TYPE TABLE OF sflight.
  SELECT * FROM sflight INTO TABLE lt_sflight.
  APPEND LINES OF ct_table TO lt_sflight.
  ct_table = lt_sflight.

Regards

Ebrahim

Thank you, your suggestion was very helpful

former_member539238
Participant
0 Kudos

Hi,

You can try this,

INSERT LINES OF table_1 INTO TABLE table_2.

This should put the lines/rows in table_1 to table_2.

0 Kudos

Thank you, i need to do it in the function module so that what ever the data we enter it will be saved in the internal table

former_member539238
Participant

The data will be inserted to internal table table_2. The table_2 can be your exporting or changing table which will be changed accordingly.

Note: table_1 and table_2 should use the same structure.

Jelena
Active Contributor
0 Kudos

Plot thickens. At first, it seemed like RTFM. Now turns out there is function module involved and "data we enter" (where?). This is also tagged with RFC and web services, which makes one wonder if there is even more to it than divulged so far...

Could you possibly update the original question and include ALL the pertinent information? It doesn't seem fair to expect the SCN members to guess what the question is really about.

See this blog on how to post better questions and do some analysis before asking. Sorry but being new is not an excuse for the vague questions.

Thank you.

horst_keller
Product and Topic Expert
Product and Topic Expert

It is RTFM, or read a book, or do a training, or ...

0 Kudos

Thank you, I'll refer to that blog so that I'll i will mention the exact scenario if i have any further questions