2009 Aug 18 4:56 PM
Hi;
I´m using this bapi to place order sales, but the bapi doesn´t check the availability of material as the standar does, example, if i ask for 100 of a material and i only have 50, the bapi place 100, but with the availability check, the standar places 50.
How can i activate this option in the bapi.
Thanks on adavance
David Fúnez
Tegucigalpa, Honduras
2009 Aug 18 5:28 PM
How does the dialog transaction behave in case of a shortage? Do you get a dialog box?
Try to check the availability check default values in transaction OVZJ... set the availability check rule to E for your sales area and see if this helps.
2009 Aug 18 5:04 PM
That BAPI is old and is no longer maintained by SAP... did you try to use BAPI_SALESORDER_CREATEFROMDAT2 instead? Maybe that one will work for you.
2009 Aug 18 5:13 PM
hi;
i´ve tried with
BAPI_SALESORDER_CREATEFROMDATA
BAPI_SALESORDER_CREATEFROMDAT1
BAPI_SALESORDER_CREATEFROMDAT2
2009 Aug 18 5:28 PM
How does the dialog transaction behave in case of a shortage? Do you get a dialog box?
Try to check the availability check default values in transaction OVZJ... set the availability check rule to E for your sales area and see if this helps.
2009 Aug 18 6:20 PM
Make sure that you are specifying the same criteria via the BAPI call that are specified on the order create or that are determined during the order create through VA01 . It's common that the BAPI does not behave 'normally' in cases where the full set of data may not be specified. For example, does your BAPI call specify the plant, storage location, and shipping point explicitly? I've seen things like this happen before.
You can also pre-check the availability with BAPI_MATERIAL_AVAILABILITY.