on 07-11-2017 7:57 AM
Hi Experts,
We create Back to Back Trading contract(BTB TC) which has condition types for Purchase Price, Sales Price and Gross Margin. The Purchase Price, Sales Price and Gross Margin are updated via code from Purchase Pre-TC and Sales Pre-TC respectively. The Gross Margin is updated manually(only the Price, the condition comes up automatically in the condition tab, that is, condition type is not marked as 'Manual' in Pricing Procedure) in the Sales Pre-TC. We have over-written the standard logic of calculation of Gross Margin via custom calculation type, so that the value entered manually is retained.
The condition prices from BTB TC are copied into the follow-on documents Sales Order and Purchase Order after BTB is released. After the Billing is done for the Sales Order, if we enter the Condition tab (via calculation button) in BTB TC, in change or display mode, then the Gross Margin value is re-calculated as per the standard code, the custom calculation type is not triggered as the KOMV-KSTEU value is set to "F" (condition value fixed, billed). This is leading to Gross Margin being overwritten. In BTB Change mode, the re-calculated standard Gross Margin value is updated and this value gets updated even in Sales Order and in KONV database table.
Question: We would not want the Gross Margin re-calculation to happen after Billing. Can we avoid the standard code which is re-calculating the Gross Margin, just like the custom calculation type is not triggered, after billing.
Standard code Locations:
Thanks in advance for your help.
We have over-written the standard logic of calculation of Gross Margin via custom calculation type,
We would not want the Gross Margin re-calculation to happen after Billing.
You have indicated that you have customized the standard logic and this being the case, if that is not working as expected, then you need to check with your technical team for code change. Meanwhile, there is one Wiki explaining how KSTEU field would fetch the value and search Google with this field value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.