09-19-2008 6:30 AM
HI Guys,
i have a table like table1 with 4 fields, and 5 records, data.
i had created another table2 with just copy from table1.
so both tables table1,table2 having same structure.
now the question is how to copy the data i.e, 5 records from table1 to table2.
plz let me know the clear scenario.
Thanks in Advance,
Amit.
09-19-2008 6:32 AM
09-19-2008 6:31 AM
09-19-2008 6:31 AM
Hi,
try this way if structures are same
table1[] = table2[].
Cheers,
Kothand
09-19-2008 6:31 AM
09-19-2008 6:31 AM
09-19-2008 6:32 AM
09-19-2008 6:40 AM
Hi
if you have created standard internal tables then to copy data from one table tab1 to another table tab2 use
append lines of tab1 to tab2.
if you have created tables in abap dictionary then to copy data from one table tab1 to another table tab2 use
data :itab type table of tab1 with header line.
select * from tab1 into table itab.
loop at itab.
insert tab2 from itab.
endloop.
09-19-2008 6:35 AM
hiiiiiii
use
move itab2 to corresponding fields of itab2.
this will surely help you.