Skip to Content
May 09, 2017 at 11:10 AM

VOFM routine to update PO condition value not modifying net price


Hi all,

I have the requirement to change the value of a certain discount condition in purchase orders according to the historical purchase data of the material/vendor. That part is solved, as we have implemented a base formula routine for the condition and it correctly modifies its value. The problem is that, even when this value is modified, the condition value overwrites the net price of the position at the moment in which we try to save the purchase order.

I'd like to state that it changes it back to the original inforecord price only when we try to save: along the PO creation process it shows the modified value both in the conditions table as in the net price of the position.

Is there some way to avoid this behaviour? What are we getting wrong here?

Thanks in advance!