Application Development 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: 

repricing issue for BAPI_SALESORDER_CHANGE

Former Member
0 Kudos


Hi All,

We have a custom program to update dates in sales orders.The program uses the FM BAPI_SALESORDER_CHANGE to update the sales order. But, the issue is that along with the dates, the BAPI also changes the pricing for the line items. Based on a few posts on SDN, I tried passing the pricing type as 'G', ''K', 'X' and 'D' in the logic switch. For 'G', the program still performed the repricing. However, it seems that in my client system, it is not permitted to use the pricing types as 'K', 'X' or 'D' (the BAPI throws an error stating that the particular pricing type is not allowed for LOGIC_SWITCH-PRICING).

Please let me know if there is any other solution to change the program or if there is any configuration which can help resolve this issue.

Regards,

Dawood

3 REPLIES 3

nabheetscn
Active Contributor
0 Kudos

Hi Dawood

First of all if you directly go in transaction and change those dates which you are changing via BAPI check whether pricing is done again if yes then functional has to see what is wrong in configuration

Nabheet

0 Kudos

Hi, first of all, go to transaction VA02, stay on item and press button "Conditions" then "Refresh"
and chouse different types of price calculation and look at result.

As for me, I use pricing = 'B' for bapi in my programs, if works fine.

0 Kudos

Hi Nabheet,

I checked in VA02, there is no repricing carried out when I change the dates. It is just the BAPI which is causing the repricing.

Is there any way to configure the 'K' or 'D' pricing types in the system? I can try that, as I guess these might not be configured in my client system.

When I run our custom program with the BAPI, I get the following error:

I get the same error for pricing type 'X', 'K' and 'D'.

With pricing types 'G' and 'B' the repricing is carried out which we don't want.

Regards,

Dawood