‎2006 Nov 30 2:41 AM
Hi experts,
What is the fastest way to move one i_tab1 to another i_tab2? Assuming two tables of similar structure. Pls explain.
a) append lines of table1 to table2.
b) loop at table1.
Move: table1-field1 to table2-field1,
table1-field2 to table2-field2.
Append table2.
Endloop.
c) table2[] = table1[].
d) loop at table1.
Move-corresponding table1 to table2.
Endloop.
e) move table1 to table2.
Regards,
Marc
‎2006 Nov 30 5:26 AM
Hi Marc,
Option C is the fastest one compared to option A....
It moves all the contents faster than the other.
regards,
Priyanka.
‎2006 Nov 30 2:45 AM
Hi Marc
I would recommend method A and C if the structures are same.
Kind Regards
Eswar
‎2006 Nov 30 2:47 AM
‎2006 Nov 30 2:49 AM
‎2006 Nov 30 3:20 AM
‎2006 Nov 30 4:00 AM
‎2006 Nov 30 4:37 AM
Option C would be the best option if both the internal table structures are same.
Regards,
Rajesh
‎2006 Nov 30 4:47 AM
Hi,
If both have same structure then go fo option C
itab1[] = itab2[].
‎2006 Nov 30 5:26 AM
Hi Marc,
Option C is the fastest one compared to option A....
It moves all the contents faster than the other.
regards,
Priyanka.
‎2006 Nov 30 5:27 AM
hi,
if both the structures of itabs are same then go for this.
table2[] = table1[].rgds
Anver
‎2006 Nov 30 7:48 AM
If structure is the same,
Option C is the best. 2nd. Option will be A.
Regards,
Oscar
‎2006 Nov 30 7:49 AM
‎2006 Nov 30 8:09 AM
Hi,
U can use option c. And one more, u can use
INSERT LINES OF ITAB INTO TABLE JTAB.
itab and jtab should be similar in structure.