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

Alternative to BAPI_SALESORDER_SIMULATE to calculate price

Hi,

currently we are using the BAPI BAPI_SALESORDER_SIMULATE to calculate the delivery date an especially the price. We are facing extreme Performance Problems using the BAPI and are currently looking for an alternate way to calculate the price. Function Module "PRICING" cant be used since we would have to read the complete customizing to make it work. Is there any Routine in SAP where price and delivery date can be calculated?

I guess no since the Problem doesnt seem to be new. But i want to make that sure, since we will have to develope our own generic pricing module in that case...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Apr 23, 2015 at 12:29 PM

    Hi Vasco,

    you really need to simulate an entire document to avoid select all customizing.

    I had a similar requirement and we choose to use Inquiry, that is easier than a sales order and is faster to create.

    You can try to create a scenario and use BAPI_INQUIRY_CREATEFROMDATA2.

    Could use testrun, or as we did, create the inquiry and than delete it in the end of the process.

    Regards,

    Frisoni

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      I don't think copy BAPI_SALESORDER_SIMULATE is an option. You will have to copy a lot of other FMs that are called in the process.

      About the performance difference I can't say how much it is, but as an Inquiry is kind a simpler sales order it is faster to process. For now I can remender that inquiry doens't have Schedules to check.

      Regrads,

      Frisoni

  • Posted on Apr 23, 2015 at 07:16 PM

    Questions about price simulation have been asked before on SCN but I'm afraid they will lead to the same BAPI/FM. To get the delivery date you'll also be running ATP check, so it adds more complexity.

    Did you run any analysis to find where the performance issue is coming from exactly? The problem might not be the BAPI...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 11, 2015 at 07:13 AM

    Actually the performance problem was NOT the BAPI. So no need to change the coding here. Thanks for your replies!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2016 at 05:43 PM

    Greetings! There is another issue that is far more important that I have encountered with BAPIs in general that holds true with BAPI_SALESORDER_SIMULATE. If you notice RETURN parameter is a structure and NOT a table although you can import/export tables. I found that a single failure will give no output even when multiple records are inputted. Be warned.

    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.