2023 Jan 16 4:24 PM
Hi,
BAPI_MATERIAL_AVAILABILITY only returns the Receipt total value.
Does anyone how how to get the other totals values - Issues and Confirmed Issues?
Thanks,
William
2023 Jan 16 4:46 PM
BAPI_MATERIAL_AVAILABILITY returns quantity available - calculated as a result of availability check - according to the "checking rule" (specified in input parameter CHECK_RULE).
If you suspect some documents to be skipped during availability check you preform, then check the definition of the "checking rule" you use (see tcode CO09 -> Enter -> Scope of check).
regards
2023 Jan 16 5:12 PM
I'm using the same checking rule in both (bapi and tcode).
If you look at CO09 after pressing enter, there are three fields under the 'Totals Display' section: "Receipts", "Issues", and "Confirmed Issues".
BAPI_MATERIAL_AVAILABILITY only returns the Receipts value, in export parameter AV_QTY_PLT and also in COM_QTY table WMDVEX
I'm wondering how to get the other two values.
2023 Jan 17 12:05 PM
It looks like all you can do with this BAPI is to calculate "Confirmed issues" yourself, as = AV_QTY_PLT - WMDVEX-COM_QTY (taking into account WMDVEX record wiith the latest date only).
As na alternative - instead of using this BAPI - you can try using fm AVAILABILITY_CHECK_CONTROLLER. This one has much more parameters (some of them documented) and should give you all data you need.
regards
2023 Jan 18 6:12 AM
The first line of CO09 shows the status at the time the transaction is started with the current stock (on plant level) and the current ATP-quantity.
https://wiki.scn.sap.com/wiki/display/SCM/CO09+-+Availability+overview