Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info
titleNote

This event is specific to the "PostShipment"-RegistrationType. Do not confuse with other RegistrationTypes that is posting shipmens as well and got their own events i.e. OnPostAdhocRegistrationOnToteShipping_OnBeforeRunWhsePostShipment

...

Excerpt

Code to be executed prior to posting via standard posting routinesroutine for RegistratonType "PostShipment".


Description

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

...

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

Example

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

 

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "example" and label = "OnPostAdhocRegistrationOnPostShipment_OnBeforeRunWhsePostShipment"

...