Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

to merge data in 1 internal table

Former Member
0 Kudos

Hi Abap gurus,

I have some probolem during merging data in internal table . I have four inernal tables and I want to merge data in one final internlal table. Is there any way of doing that without using nested loop ?

It is urgent .

5 REPLIES 5

Former Member
0 Kudos

Use the APPEND LINES statement.

APPEND LINES OF: itab1 to final_itab,
                               itab2 to final_itab,
                               itab3 to final_itab. ...

Former Member
0 Kudos

Hello

APPEND LINES OF itab1 [FROM idx1] [TO idx2] TO itab2.

Former Member
0 Kudos

Hi

you can use nner join as follows

select tab1~fields

tab2~fields

into table <body>

from <tab1> inner join <tab2>

on <tab1field1> = <tab2field1>.

Regards

Divya

Former Member
0 Kudos

if table structure is same for these 4 tables then u can try

append LINES OF jtab to itab.

ex:

append LINES OF itab2 to itab1.

append LINES OF itab3 to itab1.

append LINES OF itab4 to itab1.

Regards,

Joy.

Former Member
0 Kudos

tHANK YOU FOR THE IDEA .i HAVE 1 QUESTION I.E TO APPEND THE LINES OF FOUR TABLES TO THE FINAL INTERNAL TABLE i HAVE TO INVIDUALLY LOOP THROUGH THOSE 4 INTERNAL TABLES . RIGHT ? AGAIN IT WILL CAUSE NESTED LOOP .