cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jay_Kamdar
Participant
0 Kudos

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 .

Jay_Kamdar
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Jelena
Active Contributor

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.

Jay_Kamdar
Participant
0 Kudos

Thanks.

So, If i fill the Qualifier fields then i will be able to accomplish my requirement ?

Jelena
Active Contributor
0 Kudos

As was clearly stated in the answer, I have not tried it and can't possibly provide such assurance. Is anything preventing you from trying?

Jay_Kamdar
Participant
0 Kudos

Thanks.

Is anything preventing you from being a bit polite ?

Jelena
Active Contributor

Sorry, I'm not interested in this kind of dialogue. Maybe you could use the suggestions already given, try something and share the results with the Community. That would be something more productive.

Jay_Kamdar
Participant
0 Kudos

Will KINDLY do it .

Kindness is missing in this materialistic world.

Lakshmipathi
Active Contributor
0 Kudos

Yes and also add that field in BD52 for SHPMNT

Jay_Kamdar
Participant
0 Kudos

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).