SAP Sales and Distribution

Incorrect Inbound Delivery Date For Two Step STO

Incorrect delivery date in inbound delivery related to a two-step stock transfer order

Symptom

An inbound delivery is created via SPED output from the outbound delivery in a standard SAP cross company stock transport order. The delivery date in the inbound delivery does not reflect accurately if the goods issue is posted earlier or later than the outbound delivery planned goods issue date.

Reproducing the Issue

  1. Create stock transport order (two-step stock transfer)
  2. Create an outbound delivery and post goods issue
  3. Create inbound delivery by using output type SPED

Cause

By creation an inbound delivery via SPED output, the system copies the data from the outbound delivery to the inbound delivery.

LIKP-LFDAT of the outbound delivery is copied to the communication structure XKOMDLGN-LFDAT. This is done in standard coding. This cannot be changed.

Later, XKOMDLGN-LFDAT is copied to the LIKP-LFDAT of inbound delivery. This is done in the header copy routine of the inbound delivery.

Delivery STO

Resolution

This is standard system behavior.

This behavior can be modified by customer's own copy routine. If it is necessary to set delivery date in inbound delivery according to the transit time of route, the logic can be developed in copy routine. The route is also available in XKOMDLGN-ROUTE.

Also Read