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: 

How to change pricing formula using bapi_salesorder_change

das_sap
Discoverer
0 Kudos
229

Hi,

I have a customer portal web application developed in .Net from which I will be getting different values which are changes related to a particular sales order item in SAP. One among these values is the pricing formula used with the sales order item. I am using bapi_salesorder_change to update all the values other than the pricing formula. My input to the bapi is the formula id. I am not sure about the field which I have to use in the bapi structures to update the same. Also I don't even know whether I can use the same bapi to do the required task.

Requesting help ....

Thanks,

Siva

4 REPLIES 4

brad_bohn
Active Contributor
0 Kudos
124

You can update the VALUE (and other fields) of a pricing condition which accepts manual input using CONDITIONS_IN and CONDITIONS_INX. I'm not sure what you want to do with a formula - the pricing formula is specified in the pricing procedure configuration and is used for automatic determination of rate/value/etc. based on the code written.

0 Kudos
124

Sir,

Thank you for your immediate response.

Actually we are integrating SAP with the customer portal web application. The requirement is in such a way that the customer portal provides the option to change the sale order details both at the header level as well as item level. The fields include Order qty,Delivery date,Partner details,Payment terms,Terms of sale, Pricing formula etc. The front end consists of a Pricing formula drop down which consists of the formula descriptions (for eg: ZFA1015-LAST LME W/DAY OF CONT. MOTH) with its corresponding ID(ID is nothing but ZFA1015). At the SAP side my RFC should pick it up and update it for the given item. The process is like if we go to VA02 we have an option called MAINTAIN FORMULA from where we can change the formula used with an item. There the formula id is obtained from the formula repository. In here the we already have the Formula ID given by the front end.

Hope you are clear wtith the requirement..

Requesting help..

Thanks,

Siva

brad_bohn
Active Contributor
0 Kudos
124

I don't belive the change BAPI has that capability - you can change the calculation type for the condition but not the formula. Your best bet, unless someone else has a suggestion, is to check OSS or raise the question with SAP.

0 Kudos
124

Sir,

Thanks for the reply.

Actually I was going through another function module RV_SALES_DOCUMENT_UPDATE in which I have seen some table parameters which relates to formula. Could you just tell me whether this function module will suffice my requirement.

Regards,

Siva.