Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Change the Pricing Type maintained in copy control table TVCPF

Hi All,

I have a requirment as follows, when the billing is carried out (i.e Invoice created ), the pricing type maintained in the TVCPF table (<b>TVCPF-KNPRS</b> ) needs to be changed dynamically based on fulfilment of a certain condition, thus the pricing will then be carried out based on the new pricing type.

I have implemented the corrections mentioned in note <b>24832</b> which states to use program <b>RV61AFZ</b> <b>(userexit_pricing_rule)</b> where I have created my own pricing types X,Y,Z.

Next we tried using the user exit to set the pricing type if certain condition is met. The user exit for this is "<b>userexit_new_pricing_vbkd CHANGING new_pricing</b>" in program "<b>MV45AFZB</b>" , but apparantly found out that it is changing the pricing type on the sales order and not while creating the invoice. So this doesn't meet the requirment.

Then we tried using the userexit <b>USEREXIT_CHANGE_PRICING_RULE (module pool SAPMV61A, program MV61AFZA)</b> which states that :

You can use this user exit to change the pricing type that has been predefined in the copying control table in billing.

But unfortunately this code is not at all getting triggered while creating the invoice.

Can someone please help me urgently if you have any solution for this ?

Regards

Advait.

Tags:
Former Member
replied

Hello Advait,

you're right, the exit USEREXIT_PRICING_RULE is used by SAPLV61A - and that are the pricing functions in general (order and invoice ).

But wouldn't it be possible to solve your problem with USEREXIT_PRICING_COPY in RV61AFZA: there you could handle pricing on a condition type - level. Yust not to change the whole pricing rule.

Regards Wolfgang

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question