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_SALESORDER_CREATEFROMDATA availability check

Former Member
0 Likes
1,184

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

1 ACCEPTED SOLUTION
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
863

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.

4 REPLIES 4
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
863

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.

Read only

0 Likes
863

hi;

i´ve tried with

BAPI_SALESORDER_CREATEFROMDATA

BAPI_SALESORDER_CREATEFROMDAT1

BAPI_SALESORDER_CREATEFROMDAT2

Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
864

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.

Read only

brad_bohn
Active Contributor
0 Likes
863

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.