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

valter_oliveira
Active Contributor
0 Likes
1,260

Hello folks,

My goal is to calculate the available stock for a single material in a single plant, like tcode CO09 does.

I'm using FM BAPI_MATERIAL_AVAILABILITY but it only returns the stock in the PLANT. It doesn't consider the stock that is captured from created sales order.

Do you know any other BAPI or Class?

Thanks in advance.

Regards,

Valter Oliveira.

Edited by: Valter Oliveira on Jun 26, 2008 2:36 PM

2 REPLIES 2
Read only

Former Member
0 Likes
811

Hi Valter

You can use this BAPI changing the parameter trtyp to H with the user-exit EXIT_SAPLW61V_001.

Regards

Dora Sousa

Read only

0 Likes
811

Pass the following values to the parameters of BAPI

READ_ATP_LOCK = 'K'

READ_ATP_LOCK_X = 'X'

And call BAPI as CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY' DESTINATION 'NONE'.

Then it considers the quantity locked in Other documents.Hope this solves the problem.

Regards,

Sandeep

Edited by: SandeepDikshit05 on Aug 14, 2009 10:01 AM