cancel
Showing results for 
Search instead for 
Did you mean: 

Order Reasons and Pricing

Former Member
0 Kudos

We use order reasons a lot in our pricing for sales orders. However, when the order reason on a sales order is changed, the pricing does not change automatically. We must manually re-price the order. Does anyone know if this is intentional, or is there a way to "force" automatic re-pricing?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In include MV45AFZB there is a userexit form 'userexit_new_pricing_vbap changing new_pricing'. In this userexit enter code:

if VBAK-AUGRU ne *VBAK-AUGRU.

new_pricing = 'B'.

endif.

'B' will initiate new pricing when order reason is changed. Hope this helps.

Answers (1)

Answers (1)

Former Member
0 Kudos

Contact ABAP consultant provide this include MV45AFZB and requirement to write this logic.

Jagan

Former Member
0 Kudos

Thank you both for your input. I am familiar with user exits. At my company we currently use only MV45AFZZ for all of our user exits. Can someone explain why we would want to put this one on MV45AFZB instead of onto MV45AFZZ?

Former Member
0 Kudos

ZB and ZZ are both includes within SAPMV45A. They hold different userexit forms which are called during the order process. Depending on what you are customizing will determine which user exit form you should use. Each form within ZB and ZZ has a description of what it does. This may help you in future development needs.FYI: there are more than just ZB and ZZ.