I am currently working on an assignment to influence the transaction key (KOMV-KVSL1) (programmatically) for tax posting during the sales invoice creation. Based on our pricing procedure set-up, the system is picking up MWS key for the tax condition type (MWST).
I have been trying to identify the program location that I can use to insert my code. So far, I have done the following:
I have changed the KOMV-KVSL1 in the function module PRICING. This change in transaction key is being reflected in the sales invoice's FI document but not in VF03 invoice itself! When I go to the vf03, line level condition and click details on MWST condition type, the transaction key is reverted back to MWS. Whereas if I run F.12 report for my sales invoice, I see my custom transaction key against the FI document, as expected.
I have debugged the function modules PRICING and PRICING_COMPLETE and could not find the exact location where system is overriding my changes!
Does any body have an experience with this issue? I would be grateful if you could point me in the right direction.
Thanks in advance