Hello Experts,
Issue: When billing document is created and if it has a discount / mark-up condition, then there a wrong unit price is derived for the last item in the billing document. (This happens in some cases).
Root cause: This is because the lead condition type "ZXXX" assigned with routine # "650" has the wrong condition base value updated during invoicing. The system picks up the condition base value from the sales order instead of picking it from the billing document which leads to this inconsistency (most probably.
Intially i tried replicating the above scenario in QAS, but i did not face any variances in unit price. then we compared the Z routine code from PRD with QAS/DEV/SANDBOX and there is no difference in code of any of the servers. The only possible way is to debug the incorrect invoice and check why system has derived at the wrong value. We cannot raise this issue to SAP since Z routine is used to derive at unit price and we cannot debug the incorrect invoices since business does not want us to debug and find out the root cause.
Can anyone advice on what all other ways to check on why the Z routine behaved differently in only some cases?
Regards,
Amit K S