Skip to Content
0
Former Member
Apr 19, 2010 at 09:58 AM

Insert into internal table

37 Views

Hi,

I have a select statement like this:

loop at itab1 assigning <fs_itab>.

   select * from dtab into itab2 where field1 = <fs_itab>-field1.

   Here, how to insert itab2's result into itab3 without overwritting itab3's existing rows?
Endloop.

The problem is I want to put the result of itab2 into another internal table (itab3) every time inside the loop, I don't know how to insert the result into itab3 without overwritting the existing values.

Could anyone help on this?

Thanks,

Yang