Jurgen,
Thank you for your contributions to SCN! How would you handle this scenario?
Production Order GR produces material to QI status. That material is later released from QI to Unrestricted. A 321 IM goods movement and a 309 WM posting change are created and confirmed.
The requirement is to reverse the production GR via custom Z-transaction. I need to reverse the 321 / 309 before I can cancel the GR confirmation. I have attempted to cancel the 321 IM movement but I can not re-process the original Posting change Number on the canceled material document (error L3092 - Posting change document & already completely processed). Canceling the material Doc does not update update the WM stock status back to it's original QI.
A new posting change number is not generated when the material document in canceled via 'bapi_goodsmvt_cancel'. Is there some other way to create a 310 to undo the original 309 posting change?
FYI - I handled the scenario above with w/ blocked stock by creating a new goods movement and confirming a new posting change to return the stock to blocked status. However, that doesn't look like an option for QI. SAP does not allow a 322 movement outside of QM module.