Cancel Post packing slip from all Shipments in D365 F&O through X++
Hi Viewers, To Cancel Post packing slip for Shipments. we first have to cancel the Packing slip, reverse the shipment, and then reopen the container. To Cancel Post packing slip: WHSLoadTableCustPackingSlipJour loadCustJour; CustPackingSlipJour custJour; WHSLoadTable loadTable; loadTable = whsshipmenttable::find(ShipmentID).whsLoadTable(); while select custJour where custJour.Qty exists join loadCustJour where loadCustJour.WHSLoadTableLoadId == loadTable.LoadId && loadCustJour.WHSLoadTableDataAreaId == loadTable.DataAreaId && loadCustJour.CustPa...