OnPostPackingOnBeforePostWarehouseShipment

Use this event to

Create "Transport Orders" (or similar) in 3rd party Shipping App

Description

This event is triggered prior to a Warehouse Shipment being posted. You may use the event to:

  • Update values at the Whse. Shipments (header or lines) prior to posting
  • Create transport orders (or similar) for the Whse. Shipment  (or use OnPostPackingOnAfterPostWarehouseShipment event if you want the Transport Order to be created after posting)
    • Create transport order packages (or similar) based on untransferred license plates
    • Mark untransferred license plates as now already Transferred to Shipping.


Note: This event is similar to standard event "Whse.-Post Shipment.OnAfterCheckWhseShptLine". But more accessible (all neccessary events are in one codeunit).

See also: Write Transaction Data to 3rd party Shipping App

Template

    /// <remarks>
    /// Redirected from standard event OnAfterCheckWhseShptLine to new local event for more accessible "interface" (all neccessary events in Codeunit MOS Pack API)
    /// </remarks>
    [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB Pack API", 'OnPostPackingOnBeforePostWarehouseShipment', '', false, false)]
    local procedure OnPostPackingOnBeforePostWarehouseShipment(var WhseShptHeader: Record "Warehouse Shipment Header"; var WhseShptLine: Record "Warehouse Shipment Line")
    begin
    end;

Example - Create Transport Order, Transport Order Packages and mark untransferred License Plates as now already Transferred to Shipping


TODO


More examples

There are no items with the selected labels at this time.

Version History

VersionChanges
MOB5.42Introduced