I am having a issue with one of our custom program which inserting 3 pricing condition at header level again with Zero value.
Process Background :-
We have third party purchase order where we post Z01 movement type ( copy of 101 movement type ) using a custom program.This program post the Z01 movement type against all the third party orders.After it post Z01 movement type program goes line item by line item in PO and opens the PO in change mode and change the delivery date to +1 day .After that it unchecked the delivery complete indicator from line items as line items are getting checked when Z01 movement type is happening. After that program put the delivery date to -1 (Delivery date back to original date ) and saves the Purchase order.
Note:-We don't want third party PO to get close when Z01 movement happens .We close them after customer billing happens using a custom program .
Everything is working fine except when program opens the PO in change mode and unchecked the delivery complete indicator it's adding pricing conditions line with zero value.Seems like pricing procedure is kicking off again during this process and inserting condition with zero value.Condition is defined as delivery cost and group conditions .This zero value condition is causing another issues.Is there a way I can stop system to stop updating the pricing procedure when we do the above process ? Can I use any routine which stop system to insert any new line for this condition but don't stop me to update the condition ?
I know it's a custom program but we are using standard SAP PO change BAPI.
Thanks