cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing Condition is not being create 'BAPI_SALESORDER_CREATEFROMDAT2'

0 Kudos

I am using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order but i wanna put condition only in item data not in header

Lakshmipathi
Active Contributor
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with How to ask a Question (if you haven't already), as it provides tips for preparing questions that draw responses from our members. For example, you can outline what steps you took to find answers (and why they weren't helpful), share screenshots of what you've seen/done, make sure you've applied the appropriate tags, and use a more descriptive subject line. The more details you provide, the more likely it is that members will be able to assist you. You should also make sure you're using all the appropriate tags, so the right experts can find your question.
Should you wish, you can revise your question by selecting Actions, then Edit (although once someone answers your question, you'll lose the ability to edit the question -- but if that happens, you can leave more details in a comment).
Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it:

https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS.

By personalizing your profile with a photo of you, you encourage readers to respond.

Accepted Solutions (0)

Answers (1)

Answers (1)

VeselinaPeykova
Active Contributor

I do not understand what is the roadblock here.

What did you try so far and what was the outcome?

The documentation for BAPI_SALESORDER_CREATEFROMDAT2 from transaction BAPI is quite detailed. Of course, you need the assistance of the SD consultant (if you are not very familiar with SD pricing) to find out what parameters you should specify in ORDER_CONDITIONS_IN and ORDER_CONDITIONS_INX.

To be able to add or modify a specific condition via the BAPI you need to make sure that the corresponding change to the condition is permitted via customizing. You can simply ask the consultant or perform a test via VA01/VA02 to find out if such changes are allowed.

Other than this, it is pretty straightforward (which is why I do not understand what is the problem that you face).

Here is an example that I created some time ago as test data in SE37:

Other than this, you may want to specify COND_HANDL = 'X' in LOGIC_SWITCH.

The easiest way to find out what to enter in ORDER_CONDITIONS_IN is to create an order with the data as you want it to be created via the BAPI and use the values from KONV.