‎2011 Mar 01 7:10 AM
Hi all.
We are trying to use userexit_new_pricing_vbkd in MV45AFZB to update the pricing when order reason is changed.
The code we added is:
IF vbak-augru <> *vbak-augru.
new_pricing = 'C'.
ENDIF.
When changing order reason to 888, the price is updated, but when changing the quantity, the price is not changed.
When going to the lineu2019s condition, the quantity is still the old quantity.
Thanks in advance.
‎2011 Mar 01 12:42 PM
When changing order reason to 888, the price is updated, but when changing the quantity, the price is not changed.
When going to the lineu2019s condition, the quantity is still the old quantity.
So, what exactly are you trying to change...the price or the quantity? Re-read and clarify your post!
If you're trying to change the price, you only have code to consider the order reason....
‎2011 Mar 01 12:50 PM
Iu2019m trying to cause an automatic pricing refresh after changing the reason code.
The pricing is refreshed but after itu2019s refreshed, changes I make in the item lines are ignored.
For example, if I change the quantity after I changed the reason code, the net price in the line and in the header stays the same.
In addition, if I go to the conditions of the line, I see the quantity there is the old one (before the change).
‎2011 Mar 01 3:09 PM
I would suggest that you debug that - it's not normal and you may have user exit interference. A quantity change should always trigger a repricing, outside of any settings made in the repricing user exits.