Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Use this event to

Perform logic after posting. For example, printing a label.

Description

The event is executed:

  • After all other OnPost...-events
  • Only if posting succeeds


... for all source documents:

  • Warehouse Receipt
  • Purchase Order
  • Sales Return Order
  • Transfer Order


Commit

Database posting transactions are committed to the database prior to this event.

This event is furthermore run as an isolated process. 

  • _ResultMessage therefore contains both a posting success message and any error message that has occurred in subscribers to this event. 

Template

   [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS receive", 'OnPostReceiveOrder_OnAfterPostAnyOrder''', true, true)]
    local procedure OnPostReceiveOrder_OnAfterPostAnyOrder(var _OrderValues: Record "MOB Common Element"; _RecRef: RecordRefvar _ResultMessage: Text)
    begin
    end;

Parameters

  • _OrderValues: Header steps
  • _RecRef: Reference to..
    • the last line "Warehouse Receipt Line" being posted
    • the "Purchase Header" being posted
    • the "Sales Header" being posted
    • the "Transfer Header" being posted
  • _ResultMessage: The message shown on mobile after posting


Examples


Version History

Version

Changes

MOB5.22Introduced
  • No labels