Skip to Content
-1

How to add delivery in existing shipment via IDOC - msg type SHPMNT Basic type- SHPMNT05?

We receive an IDOC in ECC after PGI action in EWM.

At first instance suppose the shipment ABC is created in ECC with 10 deliveries.

The users add one more (11'th)delivery in the TU in EWM and perform PGI action.

So, we again receive an IDOC in ECC for the shipment ABC saved earlier.

The IDOC throws an error “Shipment XXXXXX already used”..

We want to bypass this error and add the new (11'th) delivery in the shipment ABC

Message type: SHPMNT

Basic Type: SHPMNT05

Process code: SHPM

Identification/Function Module : IDOC_INPUT_SHPMNT

How can i achieve this ?

Please mention the BADI or Customer exits if any .

Add comment
10|10000 characters needed characters exceeded

  • It is not possible to add new delivery once the Shipment is scheduled.

    Work around is to delete the shipment by calling BAPI_SHIPMENT_CHANGE

    in customer exit EXIT_SAPLV55K_020 and let the IDOC_INPUT_SHPMNT perform

    its standard processing

  • Get RSS Feed

2 Answers

  • Jan 19 at 07:29 PM

    I haven't used it this way personally but this IDoc has Qualifier field in the segments, so at minimum it needs to be filled in with the correct values for change operation. When you add new delivery you change a shipment. We can't just send the same IDoc with an additional delivery and expect SAP to understand we're trying to append delivery to an existing shipment.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 22 at 08:40 AM

    Yes and also add that field in BD52 for SHPMNT

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      I am a rookie in the Idoc area.

      can you please help on why do we need and how can we do it ?

      and also where do i need to change the Function Module : IDOC_INPUT_SHPMNT (if possible).