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

BAPI_MATERIAL_AVAILABILITY

Former Member
0 Likes
1,915

Hi all,

I am using BAPI_MATERIAL_AVAILABILITY by giving PLANT,MATERIAL,STORAGELOCATION,CHECKRULE AND UNIT.It Is giving '9,999,999,999.000' for WMDVEX-COM_QTY(commited quantity).But if I checked for the same MATERIAL,PLANT AND STORAGELOCATION in MMBE transacion means I am getting values as '0' for unrestricted stock,Qual.inspection,Reserved.So what might be the problem.Even I checked for that particular material and plant in transactions MD04 and CO09 also.But there also I am getting as '0' for ATP Quantity in CO09 and '0' for available stock in MD04.

So finally in transactions MD04,MMBE and CO09 it is showing '0' whereas in BAPI it is '9,999,999,999.000' for commited quantity.

Please I need it urgent.My mail is tkp2411@yahoo.com

Rgds,

Tkp

3 REPLIES 3
Read only

Former Member
0 Likes
1,223

The function module does the availability check for a given date and quantity. You need to specify REQ_DATE and REQ_QTY in the table wmdvsx.

MD04 gives you the total stock for the material and also the requirements.

Read only

Former Member
0 Likes
1,223

Hi Balaji

If Requirements date and Requirements Quantity is not

passed to the FM by default the system takes the date as

SY-DATUM and Qty to the maximum.

So in output you will see the committed qty to be the

maximum qty that is available as of today.

If you need to check if certain amount of quatity is

available on a particular date you can pass these two

values via table WMDVSX to get the commited quantity as

of that date.

Hope this clears you.

Kind Regards

Eswar

Read only

Former Member
0 Likes
1,223

Hi Balaji,

I have the same problem. Did you found a solution?

Thank you

Bogdan