Hello,
Check 424414 - GI: Correction report for canceling material document.
In addition: if this is not just a one-time problem, check the implemented user exits and z-programs if you use such to update the document flow. This note can also be useful until you find the root cause, since you mentioned status inconsistencies: 2006809 - Composite SAP note: How to fix delivery-related inconsistencies.