Solution:
Outbound Delivery is created with reference to Stock Transport Order in STO with Delivery business process. If you have any requirement to get the STO document based on the Delivery number, you can use the below logic.
You can link the STO Number with Outbound Delivery Number as shown below.
Option 1:
As the Outbound Delivery is stored in PO History, you can also use EKBE table where outbound Delivery is stored.
EKBE-EBELN is for STO and EKBE-VBELN_ST for STO number. This logic can be used to get the Outbound Delivery based on the STO number.

Option 2:
EKPO-EBELN = LIPS-VGBEL= Stock Transport Order


Thanks, and Best Regards,
Ganesh Padala
Discover more from GANESH SAP SCM
Subscribe to get the latest posts sent to your email.