‎2008 Jun 26 12:54 PM
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
‎2009 Jul 14 3:19 PM
Hi Valter
You can use this BAPI changing the parameter trtyp to H with the user-exit EXIT_SAPLW61V_001.
Regards
Dora Sousa
‎2009 Aug 14 9:00 AM
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