Skip to Content

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

VA01/VA02 User Exit to change the Condition Pricing Date and Pricing amount

Hi Experts,

In my requirement, I need the condition pricing date to be dynamic while creating/changing a sales order. I have changed the field KDATU in XKOMV in the user exit USEREXIT_PRICING_PREPARE_TKOMP of MV45AFZZ.


I am able to change the condition pricing date(KDATU) as required. But, the amount is not considered for this date. It is, by default, calculating the amount on Pricing date but not on condition pricing date.

For Example: Pricing date (Header level) - 01.01.2015

                       By default, Condition pricing date = Pricing Date = 01.01.2015

                       Requirement: Condition Pricing date = Service Rendered Date = 02.02.2015

                       To achieve this, I made: XKOMV-KDATU =   VBKD-FBUDA.

                       Now, Condition Pricing Date is changed in the item level as 02.02.2015( Item -> Condition type -> Condition Pricing date).

                       But, the amount is calculated on 01.01.2015 but not on 02.02.2015.

Should I write the code somewhere else than in the above User Exit?

Also, I used several FM like PRICING, SD_COND_ACCESS etc. to update the amount as per the new condition pricing date but, unable to get the correct value.

Finally, I calculated the price manually and assigned the field XKOMV-KBETR with it....I hope this is not the correct solution

Please help me!


Former Member
Not what you were looking for? View more on this topic or Ask a question