data transfer between 2 tables
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,
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.