Skip to Content

BAPI_SALESORDER_CREATEFROMDAT2 is not carrying out pricing for variant config materials

Hi Guys

I need to create a BAPI to create sales orders coming in through a web service from an external system, for normal materials all works well, but for variant config materials the pricing is not happening, like the way it does when I manually create an order, I don't want to manually pass the pricing condition in BAPICOND as I want the BAPI to dynamically determine the conditions from the access sequence.

While debugging VA01 I found that the control goes to the 'PRICING' function module twice, ones for the main material , and next for all its config materials, the second time it calls the 'PRICING' fm with pricing type 'O'. Here it selects the price for all the variant materials and loads into an internal table vkomv and displays in VA01 the variant materials that we select while creating the order, but in the case of the BAPI call, the control is going only to the 'PRICING' fm call for the header.

I have passed 'V' in the application parameter and the variant material in the varcond parameter of the BAPICOND structure.

Any idea what I might be missing ??



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 15, 2014 at 06:43 AM

    Solved by reading the following OSS notes

    562124 Configuration change via

    549563 BAPI: Filling the configuration structures

    567348 – Fill configuration via BAPI

    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.