I have a requirement to add a rebate to invoices exceeding a purticular limit.
I have added the rebate condition to the list of pricing conditions using the exit USEREXIT_PRICING_PREPARE_TKOMP.
The rebate calculation is working fine but the problem that i am facing is that, when i take the pricing conditions in VF01 it will show the rebate condition that i attached and the associated rebate percentage; but the rebate will not be applied to the net amount. Only when i press enter or press activate button the rebate gets calculated and applied to the net amount.
My requirement is such that the rebate should get applied during the invoice generation itself without the user having to do anything.
Can anyone help me in solving this problem.