cancel
Showing results for 
Search instead for 
Did you mean: 

Automatric pricing update

Former Member
0 Kudos

Hello gentlemen,

I have a requirement here which is to update the pricing in case of returns, but I dont want to leave this in the hands of the users.

We need to update the pricing at the item level (all items) using the option "C - Copy manual pricing elements and redetermine the others" in the moment that the user is processing the order (or when it saves, whatever).

Which user exit can I use for such? If you can post the code as suggestion, much better!!

Thanks in advance.

Adriano Cardoso

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I will take a look at those tips indeed, thank you. I also will try the approach posted here:

Either option I happen to use, will post the results here.

Regards,

Adriano Cardoso

Former Member
0 Kudos

Those are both excellent ideas. But as per brazilian legislation, when we sell some goods and they are then returned, the taxes must be all the same (the values) from the first billing, and the taxes here change all the time.

Thus, if I go in the copy control path, when the taxes change and we redetermine the pricing we will have incorrect taxes values.

And right now you are maybe wondering what is really my problem. The thng is that the system is copying the wrong values between billing doc and return sales order, and that's why I thought about an user exit to solve the question.

Thanks for the replies anyway.

jpfriends079
Active Contributor
0 Kudos

Check(use tcode v/06) Pricing date in control data2 section of your tax condition types for pricing procedure, say, D-Creation date (KOMK-ERDAT).

Try again with fresh sales cycle for return.

All the best.

Thanks & Regards

JP

Shiva_Ram
Active Contributor
0 Kudos

I would recommend using the same copy control settings.

At the header level settings from the source document to billing document, you can find field copying requirements for transferring business data.

Check the routine assigned in this field. Copy the existing routine (t.code VOFM) and add relevant code to copy the pricing date from the billing document pricing date field. By this way, the same tax will be captured.

Regards

jpfriends079
Active Contributor
0 Kudos

Try G - Copy pricing elements unchanged and redetermine taxes in Item (from OR) of your copying control setting (VTAA target:RE - Source:OR).

Thanks & Regards

JP

Shiva_Ram
Active Contributor
0 Kudos

Use the copy control settings (t.code VTAF and VTAA).

Maintain the value C in the field Pricing type at item level settings.

Regards