Show TOC

Function documentationCancel ASN

 

If you, as supplier, want to revoke a draft advanced shipping notification (ASN) or a published ASN in standard ASN processing in SAP Supply Network Collaboration (SAP SNC), you can cancel the ASN manually in the ASN overview.

For information about canceling ASNs in the service parts management business scenario, see Processing ASNs in Service Parts Management.

Prerequisites

You can only cancel the ASN if the ASN does not yet have the status Goods Receipt, Partial Goods Receipt, or Closed. This means that the customer has not posted a goods receipt for the ASN, or closed the ASN yet.

Features

The consequences of canceling the ASN are as follows:

  • The ASN acquires the Canceled status.

  • The ASN still exists in SAP SNC. However, SAP SNC no longer considers the ASN in planning or for other functions.

  • You cannot change a canceled ASN.

  • SAP SNC sends the cancellation ASN with a DespatchedDeliveryNotification (action code 03 for Cancel ASN) to SAP NetWeaver® Process Integration (SAP NetWeaver PI).

Integration with an SAP Back-End System of the Customer

To send a cancellation ASN from SAP SNC to the SAP back-end system of the customer, you must do the following:

  • You have to define a content-based mapping in SAP NetWeaver PI that, upon action code 03, maps the DespatchedDeliveryNotification message to the WHSCON.DELVRY03 IDoc. To do this, you can use the DespatchedDeliveryActionCode context object.

  • SAP SNC does not know the delivery number in the SAP back-end system. For the SAP back-end system to be able to process the cancellation ASN, you therefore have to either implement the V55K0004 user exit or the /SPE/BADI_IBDLV_CONTROL Business Add-In (BAdI) in the IDoc inbound processing of the SAP back-end system.

    In case you use the IDOC_INPUT_DESADV1 function module, implement the V55K0004 user exit. In case you use the /SPE/IDOC_INPUT_DESADV1 function module, implement the /SPE/BADI_IBDLV_CONTROL BAdI. The user exit or the BAdI should determine the inbound delivery number in the SAP back-end system from the SAP SNC delivery number and from the supplier, and write it to the IDoc.