Application Development and Automation 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: 
Read only

Pricing refresh

Former Member
0 Likes
1,109

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.

3 REPLIES 3
Read only

Former Member
0 Likes
769

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....

Read only

Former Member
0 Likes
769

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).

Read only

0 Likes
769

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.