Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Insert into internal table

Former Member
0 Likes
378

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
341

Append lines of itab2 to itab3.

7 (5 unresolved) 

. Please close the thread if solved.

Edited by: Mishra.Manas on Apr 19, 2010 12:43 PM

2 REPLIES 2
Read only

Former Member
0 Likes
342

Append lines of itab2 to itab3.

7 (5 unresolved) 

. Please close the thread if solved.

Edited by: Mishra.Manas on Apr 19, 2010 12:43 PM

Read only

Former Member
0 Likes
341

Hi,

You can use

Append lines of itab2 to itab3

or

Insert Lines of itab2 into itab3

Regards and Best wishes.