Skip to Content
author's profile photo Former Member
Former Member

Problem to get the availability of a product using BAPI_SALESORDER_SIMULATE

Hi folks,

I am trying to use BAPI_SALESORDER_SIMULATE to get the availability of a product but the BAPI does not send me the expected result :

I am trying to get the availability of a "to be discontinued" product. The available quantity of this product is 592 unit.

1/ Here is what I have in VA01 when I order a quantity of 1000 unit : [VA01|http://img689.imageshack.us/img689/4982/va012.jpg]

--> only 592 units available : OK !

2/ Here is what I have with BAPI_MATERIAL_AVAILABILITY when I order a quantity of 1000 unit : [Table WMDVEX|http://img707.imageshack.us/img707/9793/wmdvex2.jpg]

--> only 592 units available : OK !

3/ Here is what I have with BAPI_SALESORDER_SIMULATE when I order a quantity of 1000 unit : [TableORDER_SCHEDULE_EX|http://img101.imageshack.us/img101/830/orderscheduleex2.jpg]

--> Nothing available : not OK !

For information to run BAPI_SALESORDER_SIMULATE I am filling ORDER_HEADER_IN, ORDER_PARTNERS and ORDER_ITEMS_IN.

Thanks in advance for your help.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Apr 30, 2010 at 02:29 PM

    For information to run BAPI_SALESORDER_SIMULATE I am filling ORDER_HEADER_IN, ORDER_PARTNERS and ORDER_ITEMS_IN.

    What about ORDER_SCHEDULE_IN? You need to specify the required quantity for the item.

    Add a comment
    10|10000 characters needed characters exceeded

    • Yes, in that function I see the same issue. You need to specify one or the other. I checked some of our calls and they don't specify the item quantity, just the schedule quantity. Unfortunately, I can confirm lines any which way it's done. Each time the results match the availability check and the BAPI results for availability. You may need to dig in and debug the differences. All of the various options should hit the same availability function AVAILABILITY_CHECK.

  • author's profile photo Former Member
    Former Member
    Posted on May 03, 2010 at 10:04 AM

    @Brad : If I fill ORDER_SCHEDULE_IN-REQ_QTY in place of ORDER_ITEMS_IN-REQ_QTY I receive an error : E-06070-Enter a quantity (I suppose ORDER_ITEMS_IN-REQ_QTY is mandatory). Which field do you use to specify the schedule quantity ?

    For information here are the information I am using to run BAPI_SALESORDER_SIMULATE :

    ----------------------------------------
    ORDER_HEADER_IN
    ----------------------------------------
    DOC_TYPE
    SALES_ORG
    DISTR_CHAN
    DIVISION
    REQ_DATE_H
    PO_METHOD
    
    ----------------------------------------
    ORDER_ITEMS_IN
    ----------------------------------------
    ITM_NUMBER
    MATERIAL
    REQ_QTY
    SALES_UNIT
    
    ----------------------------------------
    ORDER_PARTNERS
    ----------------------------------------
    PARTN_ROLE
    PARTN_NUMB
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 03, 2010 at 11:49 AM

    You must have a configuration that does not allow partial deliveries, or your order data is not allowing partial deliveries, for the 1000 quantity?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.