If you have entered incorrect data when you posted a goods movement or if you want to return the quantity withdrawn because you do not need it right now, you cannot make these changes in the material document. You must reverse the goods movement and post it again.
You can use this function to trigger the reversal of goods receipts, transfer postings, and goods issues during production from within a process control system by sending a process message to function module COCI_CANCEL_MATERIAL_MOVEMENT.
You can also start goods movement reversal as follows:
From the Materials Management component by choosing the relevant inventory management transaction
See also: Canceling a Material Document
From within the PI sheet by choosing the relevant menu option
You can request process messages to reverse goods movements in a process instruction. For process control systems, for example, you can define a process message subscription to request reversal messages for all goods movement reversals to be posted during process order execution.
SAP delivers this function module without a predefined message category or message destination. For this reason, you must define them yourself in Customizing for Process Management .
You have made the following settings in Customizing for Process Management:
You have created function module COCI_CANCEL_MATERIAL_MOVEMENT as a message destination and defined its destination-specific target fields.
You have created a message category along with the characteristics required for the goods movement in question.
You have assigned the destination to the message category. You have assigned the characteristics of the message category to the target fields of the message destination.
Recommendation
If required, make these settings together with your MM consultant to determine the fields that are important for your message. For more information, see the documentation for function module COCI_CANCEL_MATERIAL_MOVEMENT.
Consistency Checks
When processing the messages, the system checks whether the values they contain are valid and consistent with one another. If an inconsistency (for example, an invalid order number) is discovered:
The system writes a corresponding system message to the message log
The system sets the process message status Destination erro r or Sent with warning
Reversal Document Number
The system creates a material document (reversal document) for each reversal posting. The number of this document is written to the message log.