Show TOC

 Deletion of Inbound Delivery

Use

You can use this function to delete inbound deliveries, for example, if the goods contained therein are no longer required at the ship-to location.

Prerequisites

  • The inbound delivery must exist.

  • No goods receipt has taken place. In other words, the inbound delivery cannot have the status Received on Dock .

  • Preceding or subsequent inbound delivery cannot be deleted.

  • The inbound delivery cannot be changed in ERP, ICH, or by vendor until the response for changes or deletion comes from EWM (or instead the inbound delivery is changed or deleted in EWM).

Activities

A request for deletion can come from the vendor or SAP ICH by means of an IDoc, from SAP EWM by qRFC, or from the user interface transaction Extended Inbound Delivery Processing in SPM.

SPM uses its validation framework to check the consistency of the data that the request for deletion contains. Depending on the sending system, different validations are performed to ensure whether the deletion can take place or not. After the validation has taken place, an appropriate message is sent to the application log, from where it is then filtered and dispatched to the connected systems.

Depending on whether you are deleting an inbound delivery with the status Hold or one with the status Real , the system reacts as follows:

Status On Hold:

If the system detects errors, the deletion request is not accepted.

If the deletion request contains no errors, the system accepts it and deletes the inbound delivery accordingly.

Status Real:

If the system detects errors, the deletion request is not accepted.

If the deletion request contains no errors, the system creates a temporary inbound delivery (temp ID) and sends an update request to SAP EWM. SAP EWM returns an acknowledgement. This acknowledgement can be positive or negative:

If the acknowledgement from SAP EWM is positive: the system accepts the temp ID, and flags both the existing ID and the temp ID for deletion.

If the acknowledgement from SAP EWM is negative (SAP EWM sends a rejection): the system flags the temp ID for deletion and no further action is taken. In other words, the existing ID is retained.

Replacement inbound deliveries, inbound deliveries on hold, and temp IDs are flagged for deletion.

Other inbound deliveries, such as inbound deliveries that had the status Real , are archived.

Note Note

Final physical deletion from the database is performed in a batch job that you can schedule by using the deletion report Inbound Delivery Delete Report ( /SPE/INB_ID_DELETE ).

End of the note.

Result

Depending on the previous status of the inbound delivery, it has been flagged for deletion, archived, or deleted. The results of the deletion report are displayed in an ALV list.