Skip to Content
0
Former Member
Aug 07, 2023 at 09:38 AM

BAPI_MATERIAL_AVAILABILITY with DOC_NUMBER

54 Views

We use the BAPI_MATERIAL_AVAILABILITY bapi to check availability for order create/update (Z program).

So far everything works fine, but as soon as I check the availability of an existing document, it does not work as desired.

Example: Material A with 100 PCS in stock.
BAPI_MATERIAL_AVAILABILITY returns 100 PCS. -> correct.
Now i create an order with 80 pcs and BAPI_MATERIAL_AVAILABILITY (with DOC_NUMBER and ITM_NUMBER) returns 20 pcs available.

I would expect the 80 pieces to be added and an availability of 100 to be shown.