10-05-2007 4:11 PM
Hi gurus,
I have a small doubt, I want to copy what I have from one of my internal table to other, can you tell me how to do that.
will this work
Append it_tab into it_temp.
Thanks
Rajeev Gupta
10-05-2007 4:12 PM
Create another internal table same as first and assign the body of the internal table.
ITAB1[] = ITAB[].
ashish
10-05-2007 4:12 PM
Create another internal table same as first and assign the body of the internal table.
ITAB1[] = ITAB[].
ashish
10-05-2007 4:12 PM
Hi Rajeev,
do this way
ITAB1[] = ITAB2[]
the above statment works provided the intenal tables are of same structure
10-05-2007 4:14 PM
The other way to do is
loop at itab1.
move-corresponding fields of itab1 to itab2.
append itab2.
clear itab2.
endloop.
10-05-2007 4:17 PM
If you would simply do F1 on APPEND, you would see:
APPEND LINES OF itab1 [FROM idx1] [TO idx2] TO itab2.
Rob