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

Using: MD_STOCK_REQUIREMENTS_LIST_API

Former Member
0 Likes
1,010

Hi,

i'm using the above FM to get requirements for an material.

I get the whole values lik md04.

i do this to get the sum of requirements:

LOOP AT MDEZX WHERE PLUMI = '-'.

ITAB-BDMNG = ITAB-BDMNG + MDEZX-MNG01.

ENDLOOP.

My problem is, that i get dublikcate entries. One in dispoelemet 'W-BEST'

and one in 'LbBest'. Therefore i sum it in my loop 2 times.

For example 10 ST and 7 ST in W-BEST and 10 ST in LbBest. i get 27 ST in

ITAB-BDMNG, but i need only 17 ST.

Is there another FM that i can use? or can i give any parameter?

thanks for felp.

Regards, Dieter

Hi,

i'm using the above FM to get requirements for an material.

I get the whole values lik md04.

i do this to get the sum of requirements:

LOOP AT MDEZX WHERE PLUMI = '-'.

ITAB-BDMNG = ITAB-BDMNG + MDEZX-MNG01.

ENDLOOP.

My problem is, that i get dublikcate entries. One in dispoelemet 'W-BEST'

and one in 'LbBest'. Therefore i sum it in my loop 2 times.

For example 10 ST and 7 ST in W-BEST and 10 ST in LbBest. i get 27 ST in

ITAB-BDMNG, but i need only 17 ST.

Is there another FM that i can use? or can i give any parameter?

thanks for felp.

Regards, Dieter

1 REPLY 1
Read only

graghavendra_sharma
Contributor
0 Likes
586

Hi

you can even keep a condition based on field MDEZX-DELKZ.

check once.

Message was edited by:

raghav sharma