on 06-22-2018 1:21 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, your suggestion was very helpful
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
It is RTFM, or read a book, or do a training, or ...
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.