Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

TOR Cleanup Issue:

TO
Trip/UnTri Duration
Warehous
p (Hrs) ISSUE Item e OrderNo TRIP #  Trip No ERP
705091 110146126_9_708
TO Trip 24 Not In Source 7 15 110146126 70884 84
B227-
TO UnTrip 24 Not In Source 36 15 211127NLD NA NA

Script to clean TO’s in Datawarehouse:

DELETE FROM [Wholesale_OMS_Enh].[Shipment] WHERE SHIPMENTKEY IN ('', '', '');


DELETE FROM [Wholesale_OMS_Enh].[ShipmentLine] WHERE SHIPMENTKEY IN ('', '', '');

For TO# 110146126 : According to the script I need unique shipment Key to delete the TO# with
mentioned item id and quantity.

1)

2)For TO# 211127NLD

select * from yfs_order_header where order_no='211127NLD';

select * from yfs_shipment_line where order_header_key='202104100932329538119105';

You might also like