Application Development 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: 

Redistribute the amount from header to all line items at invoice time

0 Kudos

Dear members,

Hope you're doing well.

I am developing one copy control routine for below req.

<b>The problem is that fixed amount condition types that are applied to the header <u>manually</u> in an sale order are not updated at invoice time if the delivery has changed.[ If the order quantity or a substitution is made on the delivery, this value is currently being calculated incorrectly]</b>

In transaction VOFM, I have created new rountine and got condition rate (xKOMV-KBETR) from xKOMV(if condition was manually changed (xKOMV-KSTEU = C).

<b>My question is how can I redistribute this amount from header to all line items at invoice time? Is there any standard SAP function for this(to update invoice tables VBRK, VBRP).?</b>

Could any one please share your experience or knowledge about this?

Regards,

Srini

1 ACCEPTED SOLUTION

Former Member
0 Kudos

There should be some user-exit for the Billing Transaction that will be triggerred before the pricing is re-calculated. Don't remember exactly.. it should something like MV45AFZZ or MV60AFZZ..I have used various user-exits for Billing document to update the billing document or trigger some other processes within the invoice. Each of these user-exits are triggerred at various points, like before calculating prices, after calculations, before saving, after saving invoice etc. You need to research a little bit!!

1 REPLY 1

Former Member
0 Kudos

There should be some user-exit for the Billing Transaction that will be triggerred before the pricing is re-calculated. Don't remember exactly.. it should something like MV45AFZZ or MV60AFZZ..I have used various user-exits for Billing document to update the billing document or trigger some other processes within the invoice. Each of these user-exits are triggerred at various points, like before calculating prices, after calculations, before saving, after saving invoice etc. You need to research a little bit!!