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

Pricing Condition issue in BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
1,631

Hi Experts,

I have price and price unit in my template. I use this to create sales order by using BAPI_SALESORDER_CREATEFROMDAT2. After the order is created, i see that there are two conditions in the conditions tab. Although this does not affect the total value, which is correct, it is not good to look at:). As per the pricing analysis, one condition is entered manually and the other is through info records. Is there any way to avoid this duplication? Below, is the example. The first condition has a yellow warning icon and second has a green icon, in the condition tab of the sales order.

Non-Active CnTy Name Amount Crcy Per

yellow icon ZPTK Price-TurnKey 10.00 USD 1

green icon ZPTK Price-TurnKey 10.00 USD 1

Thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
1,063

If the pricing condition is determined automatically based on the info recrods, then don't fill this pricing condition data in "ORDER_CONDITIONS_IN" and "ORDER_CONDITIONS_INX" strucutes while calling the BAPI.

Regards

Vinod

Read only

Former Member
0 Likes
1,063

HI Vinod,

Thanks for your reply. But the user would want to insert price regardless of condition records being present. Any other solution?

Read only

0 Likes
1,063

Have you tried to pass ORDER_CONDITIONS_INX-UPDATEFLAG = 'U' for this pricing condition ?

Regards

Vinod

Read only

0 Likes
1,063

Hi VInod,

Your suggestion did not resolve the issue.

Read only

0 Likes
1,063

The issue was resolved.

LOGIC_SWITCH-COND_HANDL = 'X'

LOGIC_SWITCH-PRICING should not be passed.

Currency in conditions .

This helped me resolve the issue.