11-01-2007 12:14 PM
Hi
I have one internal table called it_final it have MATNR and PLNMG. i have one work area called i_rec it have matnr and qty1 i want to replace workarea(I_REC)qty with internal table(IT_FINAL) qty with respect of MATNR.
Can any one plz help me...
point will be sure.
Mohana
11-01-2007 12:21 PM
Hi Mohana,
do like this..
loop at itab into wa.
wa_final-qty = wa-plnmg.
modify it_final from wa_final where matnr = wa-matnr.
clear wa_final.
endloop.
<b>Reward points if it helps,</b>
Satish
11-01-2007 12:17 PM
11-01-2007 12:19 PM
11-01-2007 12:20 PM
hi,
try like this...
loop at itab where matnr = i_rec-matnr.
itab-plnmg = i_rec-qty1.
modify itab.
endloop.
Rewards if helpful.
Regards
Gagan
11-01-2007 12:21 PM
Hi Mohana,
do like this..
loop at itab into wa.
wa_final-qty = wa-plnmg.
modify it_final from wa_final where matnr = wa-matnr.
clear wa_final.
endloop.
<b>Reward points if it helps,</b>
Satish
11-01-2007 12:22 PM
Hi Mohana,
Follow the code:
LOOP AT I_REC.
READ TABLE IT_FINAL WITH KEY matnr = I_REC-matnr.
IF SY-SUBRC = 0.
I_REC-qty = IT_FINAL-qty.
MODIFY I_REC.
ENDIF.
ENDLOOP.
Thanks & Regards,
Bhaskar Tripathi
11-01-2007 12:23 PM
Hi,
Loop at it_final where matnr = i_rec-matnr.
it_final-qty = i_rec-qty.
modify it_final.
endloop.
reward if helpful.
Reagrds,
nagaraj
11-01-2007 12:27 PM
Hi,
Don't know whether the following code will be helpfull to u or not. Bcoz ur question is not clear.
try this.
loop at it_final where matnr = i_rec-matnr.
itab-plnmg = i_rec-qty1.
modify itab.
endloop.
Rewards pts if it is helpfull.
Regards
Srimanta