07-10-2006 1:29 PM
i need to append the collect result but only 2 field (qty) into new_itab (matnr is key) how???
07-10-2006 1:31 PM
Hello,
data: begin of ita_new occurs 0,
matnr like mara-matnr,
qty like mard-menge,
end of itab_new.
Loop at itab.
collect itab.
move-corresponding itab to itab_new.
append itab_new.
endloop.
If useful reward points,
07-10-2006 1:32 PM
Hi,
Try following logic.
Loop at itab1.
collect itab1.
clear itab2.
move-corrersponding itab1 to itab2.
append itab2.
endloop.
Your itab2 should contain Matnr and req quantity fields only.
Regards,
Shashank
07-10-2006 1:32 PM
define Another internal table with MATNR & qty fields.
LOOP AT ITAB1.
ITAB2-MATNR = ITAB1-MATNR.
ITAB2-QTY = ITAB1-QTY.
COLLECT ITAB2.
ENDLOOP.
regards
srikanth