Symptom
A production order can not be set the deletion flag if there were goods movement for this order. message like this: Balance of ORD 1542876 is not zero.
Other Terms
Reason and Prerequisites
There were goods movement for this order, so the cost balance is not zero.
Solution
1. Cancel all goods issue.
2. Take a flag of technically complete.
3. Calculate the order variance with tcode KKS2.
4. Do a settlement for the order with tcode KO88.
5. Take a flag of deletion flag again.