Hello guys,
We have a table where we associate an item Pricing Condition to an Account key, according to some rules.
So, we've changed RV60AFZZ to verify the rules and update XKOMV if the rules are met. If no rule is met, the Account Key is calculated by the standard.
All goes ok in VF01 and the table KONV have the correct values.
Then, when we go through VF03 to check the document, entering the line item Conditions tab, and then entering the specific Condition that we've changed earlier, it shows the Account key determined by the standard. And not the one in KONV.
But, if we leave the "Item-Conditions-Details" screen (entering the Item Data Conditions table) and enter again in the Condition detail, it now shows the correct value from KONV.
We've done some debugging and concluded that the reason is that XKOMV is recalculated in program MV60AO0P_PRICING_SET_DATA, through the fm 'PRICING_SUBSCREEN_SET_DATA', setting/resetting XKOMV with the standard calculations, ignoring KONV data.
Are we doing something wrong?
Thanks in advance.