OnPostAdhocRegistrationOnToteShipping_OnBeforeRunWhsePostShipment

Use this event to

Code to be executed prior to posting via standard posting routines.

Description

The event can be used to call functions on the standard posting codeunit before run to i.e. print document on posting.


Template

    // [Template]
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnToteShipping_OnBeforeRunWhsePostShipment''', true, true)]
    local procedure OnPostAdhocRegistrationOnToteShipping_OnBeforeRunWhsePostShipment(var _WhseShptLine: Record "Warehouse Shipment Line"; var _WhsePostShipment: Codeunit "Whse.-Post Shipment")
    begin
    end;
 

Example

    // [Example] 
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnToteShipping_OnBeforeRunWhsePostShipment''', true, true)]
    local procedure MyOnPostAdhocRegistrationOnToteShipping_OnBeforeRunWhsePostShipment(var _WhseShptLine: Record "Warehouse Shipment Line"; var _WhsePostShipment: Codeunit "Whse.-Post Shipment")
    begin
        _WhsePostShipment.SetPrint(true);
    end;

 

More examples

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


Version History

Version

Changes

MOB5.17Introduced