Application Development 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: 

Moving one itab to data to other itab

Former Member
0 Kudos

Hi folks,

I have two internal tables wih same fields. I want to move all data of itab1 to itab2. instead of moving field by field and finally appending, i want to move whole table fileds at a time.

can i write this as itab2[ ] = itab1[ ] ?

or do i need to use move command.pls suggest me...

thanks,

Shyam.

8 REPLIES 8

Former Member
0 Kudos

Hi

You can use itab2[ ] = itab1[ ].

Regards

Jana

Former Member
0 Kudos

Yes you can do that.

Regards

Midhun Abraham

rainer_hbenthal
Active Contributor
0 Kudos

append lines of itab1 to itab2.

Former Member
0 Kudos

Hi

I think itab2[ ] = itab1[ ] is better than move

Regards

MD

Former Member
0 Kudos

Hi Shyam Prasad,

This is a very simple question. Please dont expect any spoon feeding from here. Search and read help. I am sure you can help yourself.

Regards,

Swapna.

Former Member
0 Kudos

you can use itab2[ ] = itab1[ ], provided both internal tables have same structure and have header line.

Regards,

Aparna.

Former Member
0 Kudos

Deat

this is the fastest way.

Former Member
0 Kudos

hi shyam,

A simpler way is to use tany of the following syntaxu2019s.

MOVE ITAB1 TO ITAB2.

OR

ITAB1 = ITAB2.

These copy the contents of ITAB1 to ITAB2. Incase of internal tables with header line we have to use [] inorder to distinguish from work area. So, to copy contents of internal tables with header line the syntax becomes,

ITAB1[ ] = ITAB2 [ ].

hope it may help you.

thanks

Sachin

Edited by: Sachin Gupta on Sep 30, 2008 8:57 AM