I am trying to update the price agreements of a line item based on easy condition entry in Frame agreement. I have implemented using the order save BADI. But if i save an agreement, it is updating the price agreement, If i again go to frame agreement and add another line item, it is again updating the price agreement record for already saved item giving duplicate entries.
I tried with these parameters
Can anyone suggest how to code such a way it will create a record if the line item is new and update a record if the line item is old?
Thanks in advance,