Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Need urgent soln

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

what is this question

try to be clear..what is your requirement

Former Member
0 Kudos

use loop and modify

former_member194152
Contributor
0 Kudos

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

Former Member
0 Kudos

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

Bhaskar_Tripath
Participant
0 Kudos

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

former_member404244
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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