Skip to Content
0
May 27, 2017 at 10:26 PM

Failed to distribute inbound delivery to EWM in Background task

2031 Views

Hi All,

All settings are correct because transaction VL06i is working properly.

We developed a custom program where we do some processing to the inbound deliveries and then we have to distribute them to EWM.

I debugged VL06i and I see that standard SAP is using function module /SCWM/INB_DLV_SAVEREPLICA. So I took that FM to use it in our custom program like below image (Same way as VL06i). I'm also passing to the FM the same data as VL06i.

I'm calling BAPI_TRANSACTION_COMMIT after the FM to execute it.

The problem is that INB delivery is not getting distributed to EWM. If I check the queue (SMQ1 and SMQ2) on ERP side, I cannot find it. Then if I check table ARFCSSTATE for my execution, I see the entry is with status SYSFAIL with the following message: EWM delivery for (delnum) from (DEVSYS) was found.

Then If I check transaction /SCWM/PRDI I find the delivery but with in an error state. Distribution status of the delivery is still D(planned for distribution) on ERP side.

Any clues on what might the problem be?

Thanks in advance!

Regards!!

Emanuel.

Attachments

image1.jpg (12.4 kB)
image2.jpg (73.0 kB)
image3.jpg (47.3 kB)
image3.jpg (76.9 kB)