08-13-2007 3:10 PM
Hi All,
How can i move the entire internal table content from one internal table to other which has the same structure with only one extra field.
Thanks,
Yogesh
08-13-2007 3:12 PM
Hi,
you can try something like this.
clear itab1.
loop at itab1.
clear itab2.
move-corresponding itab1 to itab2.
append itab2.
endloop.
Kostas
08-13-2007 3:11 PM
loop at itab1 into wa1.
move-corresponding wa1 to wa2.
append wa2 to itab2.
endloop.
Regards,
Amit
Reward all helpful replies.
08-13-2007 3:12 PM
HI,
if both the tables are of same structure then
itab[] = jtab[].
coz u have one additional field.
loop at jtab.
move-corresponding jtab to itab.
itab-newfield = value.
append itab.
endloop.
Thanks
Mahesh
08-13-2007 3:12 PM
Hi,
you can try something like this.
clear itab1.
loop at itab1.
clear itab2.
move-corresponding itab1 to itab2.
append itab2.
endloop.
Kostas
08-13-2007 3:14 PM
Hi,
in this case you need to loop at every entry and move one by one to anothr itab.
loop at itab1.
itab2-fld1 = itab1-fld1 .
itab2-fld2 = itab1-fld2 .
...........................
itab2-fldn = itab1-fldn .
append itab2.
endloop.
Award point if found helpful.
Thanks
Dany