Application Development and Automation 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: 
Read only

Need urgent soln

Former Member
0 Likes
974

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
Read only

Former Member
0 Likes
951

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

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

7 REPLIES 7
Read only

Former Member
0 Likes
951

what is this question

try to be clear..what is your requirement

Read only

Former Member
0 Likes
951

use loop and modify

Read only

former_member194152
Contributor
0 Likes
951

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

Read only

Former Member
0 Likes
952

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

Read only

Bhaskar_Tripath
Participant
0 Likes
951

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

Read only

former_member404244
Active Contributor
0 Likes
951

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

Read only

Former Member
0 Likes
951

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