2008 Jul 15 6:55 AM
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 .
2008 Jul 15 6:57 AM
Use the APPEND LINES statement.
APPEND LINES OF: itab1 to final_itab,
itab2 to final_itab,
itab3 to final_itab. ...
2008 Jul 15 6:57 AM
2008 Jul 15 6:59 AM
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
2008 Jul 15 6:59 AM
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.
2008 Jul 15 7:42 AM
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 .