Versions Compared

Key

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


Excerpt

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

...

Note
titleCommit

Database transactions in [...]OnBeforeRunWhseActivityPost is committed to database prior to calling standard "Whse.-Activity-Post" function. Your customized code must be structured accordingly.

You may subscribe to standard posting events to ensure rollback of your database transactions or trigger events on-after posting, if this is required for your code.


Template

[EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Put Away", 'OnPostPutAwayOrder_OnBeforeRunWhseActivityPost''', true, true)]
procedure OnPostPutAwayOrder_OnBeforeRunWhseActivityPost(var _WhseActLinesToPost: Record "Warehouse Activity Line"; var _WhseActPost: Codeunit "Whse.-Activity-Post")
begin
end;


See also: 
How-to: Subscribe to standard events in BC base app

Example: Print Document on Posting

[EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Put Away", 'OnPostPutAwayOrder_OnBeforeRunWhseActivityPost''', true, true)]
procedure MyOnPostPutAwayOrder_OnBeforeRunWhseActivityPost(var _WhseActLinesToPost: Record "Warehouse Activity Line"; var _WhseActPost: Codeunit "Whse.-Activity-Post")
begin
    _WhseActPost.PrintDocument(true);
end;


Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleExamples
excerptTypesimple
cqllabel = "bc" and label = "order" and label = "example" and label = "onbeforerun"


Version History

Version

Changes

MOB5.13Introduced

...