09-30-2008 7:37 AM
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.
09-30-2008 7:38 AM
09-30-2008 7:39 AM
09-30-2008 7:39 AM
09-30-2008 7:39 AM
09-30-2008 7:40 AM
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.
09-30-2008 7:43 AM
you can use itab2[ ] = itab1[ ], provided both internal tables have same structure and have header line.
Regards,
Aparna.
09-30-2008 7:44 AM
09-30-2008 7:54 AM
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