{"title":"Table 5766 Warehouse Activity Header, extension points 29","url":"https://jonas-paprotka.de/ref/table/5766-warehouse-activity-header/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"table","id":5766,"name":"Warehouse Activity Header","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/5766-warehouse-activity-header/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/5766-warehouse-activity-header/source/","path":"src/Layers/W1/BaseApp/Warehouse/Activity/WarehouseActivityHeader.Table.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"codeunit:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"codeunit:7302":{"name":"WMS Management","url":"https://jonas-paprotka.de/ref/codeunit/7302-wms-management/"},"table:14":{"name":"Location","url":"https://jonas-paprotka.de/ref/table/14-location/"},"table:5766":{"name":"Warehouse Activity Header","url":"https://jonas-paprotka.de/ref/table/5766-warehouse-activity-header/"},"codeunit:7321":{"name":"Create Inventory Put-away","url":"https://jonas-paprotka.de/ref/codeunit/7321-create-inventory-put-away/"},"codeunit:7322":{"name":"Create Inventory Pick/Movement","url":"https://jonas-paprotka.de/ref/codeunit/7322-create-inventory-pick-movement/"},"table:5767":{"name":"Warehouse Activity Line","url":"https://jonas-paprotka.de/ref/table/5767-warehouse-activity-line/"},"table:5770":{"name":"Warehouse Comment Line","url":"https://jonas-paprotka.de/ref/table/5770-warehouse-comment-line/"},"codeunit:99":{"name":"Posting Selection Management","url":"https://jonas-paprotka.de/ref/codeunit/99-posting-selection-management/"},"table:5740":{"name":"Transfer Header","url":"https://jonas-paprotka.de/ref/table/5740-transfer-header/"}},"procs":[{"name":"No..OnValidate","line":43,"kind":"trigger","steps":[[46,"ext","codeunit",310,"TestManual",1],[46,"call","GetNoSeriesCode",0]]},{"name":"Location Code.OnValidate","line":57,"kind":"trigger","steps":[[62,"call","LineExist",0],[66,"ext","codeunit",7302,"LocationIsAllowed",1],[69,"call","GetLocation",1],[72,"call","ProdWhseHandlingIsInventoryPutaway",1],[73,"ext","table",14,"RequireReceive",1],[75,"validate",5766,"Source Document"],[77,"ext","table",14,"RequireShipment",1]]},{"name":"Sorting Method.OnValidate","line":119,"kind":"trigger","steps":[[122,"call","SortWhseDoc",0]]},{"name":"Registering No. Series.OnLookup","line":205,"kind":"trigger","steps":[[209,"call","TestNoSeries",0],[210,"ext","codeunit",310,"LookupRelatedNoSeries",2],[210,"call","GetRegisteringNoSeriesCode",0],[211,"validate",5766,"Registering No. Series"]]},{"name":"Registering No. Series.OnValidate","line":215,"kind":"trigger","steps":[[219,"call","TestNoSeries",0],[220,"ext","codeunit",310,"TestAreRelated",2],[220,"call","GetRegisteringNoSeriesCode",0]]},{"name":"Breakbulk Filter.OnValidate","line":240,"kind":"trigger","steps":[[243,"call","SetBreakbulkFilter",0]]},{"name":"Source No..OnValidate","line":251,"kind":"trigger","steps":[[258,"call","LineExist",0],[264,"call","ClearDestinationFields",0],[271,"ext","codeunit",7321,"SetWhseRequest",2],[272,"run","codeunit",7321],[278,"ext","codeunit",7322,"SetWhseRequest",2],[279,"run","codeunit",7322],[285,"ext","codeunit",7322,"SetInvtMovement",1],[286,"ext","codeunit",7322,"SetWhseRequest",2],[287,"run","codeunit",7322]]},{"name":"Source Document.OnValidate","line":299,"kind":"trigger","steps":[[304,"call","LineExist",0],[307,"call","ClearDestinationFields",0],[309,"call","GetLocation",1],[310,"ext","table",14,"RequireReceive",1],[357,"event","OnValidateSourceDocumentOnAssignSourceType",0]]},{"name":"OnDelete","line":445,"kind":"trigger","steps":[[447,"call","DeleteWhseActivHeader",0]]},{"name":"OnInsert","line":450,"kind":"trigger","steps":[[453,"call","TestNoSeries",0],[454,"call","GetNoSeriesCode",0],[455,"ext","codeunit",310,"AreRelated",2],[457,"ext","codeunit",310,"GetNextNo",2],[461,"ext","codeunit",310,"IsAutomatic",1],[461,"call","GetRegisteringNoSeriesCode",0],[462,"call","GetRegisteringNoSeriesCode",0]]},{"name":"AssistEdit","line":488,"kind":"procedure","params":1,"steps":[[491,"call","TestNoSeries",0],[492,"ext","codeunit",310,"LookupRelatedNoSeries",3],[492,"call","GetNoSeriesCode",0],[494,"ext","codeunit",310,"GetNextNo",1]]},{"name":"GetNoSeriesCode","line":500,"kind":"procedure","access":"local","params":0,"steps":[[535,"event","OnAfterGetNoSeriesCode",0]]},{"name":"GetRegisteringNoSeriesCode","line":575,"kind":"procedure","access":"local","params":0,"steps":[[584,"event","OnBeforeGetRegisteringNoSeriesCode",1]]},{"name":"SortWhseDoc","line":603,"kind":"procedure","params":0,"steps":[[611,"event","OnBeforeSortWhseDoc",1],[622,"call","SortWhseDocByShelfOrBin",2],[629,"call","SortWhseDocByBinRanking",2],[631,"call","SortWhseDocByActionType",2],[633,"event","OnCaseSortWhseDoc",0],[641,"call","SetActivityFilter",2],[645,"write",5767,"Modify"],[650,"write",5767,"Modify"],[656,"event","OnAfterSortWhseDoc",0]]},{"name":"SortWhseDocByShelfOrBin","line":659,"kind":"procedure","params":2,"steps":[[665,"call","GetLocation",1],[678,"write",5767,"Insert"],[688,"event","OnSortWhseDocByShelfOrBinOnBeforeWhseActivLine2Find",0],[691,"call","SortTakeLines",2],[696,"write",5767,"Modify"],[701,"call","SortLinesBinShelf",3],[705,"call","SortLinesBinShelf",3]]},{"name":"SortWhseDocByBinRanking","line":710,"kind":"procedure","access":"local","params":2,"steps":[[722,"call","SetActivityFilter",2],[726,"write",5767,"Modify"],[734,"write",5767,"Modify"],[739,"write",5767,"Modify"],[747,"write",5767,"Modify"]]},{"name":"SortWhseDocByActionType","line":753,"kind":"procedure","access":"local","params":2,"steps":[[763,"write",5767,"Modify"],[772,"write",5767,"Modify"],[783,"write",5767,"Modify"]]},{"name":"SortTakeLines","line":788,"kind":"procedure","access":"local","params":2,"steps":[[800,"write",5767,"Modify"],[806,"write",5767,"Modify"]]},{"name":"SortLinesBinShelf","line":811,"kind":"procedure","params":3,"steps":[[817,"write",5767,"DeleteAll"],[830,"write",5767,"Insert"],[847,"write",5767,"Modify"],[852,"write",5767,"Modify"]]},{"name":"SetBreakbulkFilter","line":858,"kind":"procedure","access":"local","params":0,"steps":[[866,"write",5767,"ModifyAll"],[868,"write",5767,"ModifyAll"]]},{"name":"DeleteWhseActivHeader","line":881,"kind":"procedure","access":"local","params":0,"steps":[[889,"ext","table",5767,"DeleteRelatedWhseActivLines",2],[894,"write",5770,"DeleteAll"],[896,"event","OnAfterDeleteWhseActivHeader",0]]},{"name":"FindFirstAllowedRec","line":933,"kind":"procedure","params":1,"steps":[[941,"ext","codeunit",7302,"LocationIsAllowedToView",1],[948,"ext","codeunit",7302,"LocationIsAllowedToView",1]]},{"name":"FindNextAllowedRec","line":960,"kind":"procedure","params":1,"steps":[[972,"ext","codeunit",7302,"LocationIsAllowedToView",1]]},{"name":"ErrorIfUserIsNotWhseEmployee","line":983,"kind":"procedure","params":0,"steps":[[989,"event","OnBeforeErrorIfUserIsNotWhseEmployee",1],[993,"ext","codeunit",7302,"CheckUserIsWhseEmployee",0]]},{"name":"GetUserLocation","line":996,"kind":"procedure","params":0,"steps":[[1003,"event","OnBeforeGetUserLocation",1]]},{"name":"BinCodeMandatory","line":1030,"kind":"procedure","params":0,"steps":[[1032,"call","GetLocation",1]]},{"name":"IsInvoiceNoMandatory","line":1036,"kind":"procedure","access":"internal","params":0,"steps":[[1040,"ext","codeunit",99,"IsPostingInvoiceMandatoryPurchase",0]]},{"name":"AssignToCurrentUser","line":1043,"kind":"procedure","access":"internal","params":0,"steps":[[1048,"validate",5766,"Assigned User ID"],[1049,"write",5766,"Modify"]]},{"name":"ProdWhseHandlingIsInventoryPutaway","line":1052,"kind":"procedure","access":"internal","params":1,"steps":[[1054,"event","OnProdWhseHandlingIsInventoryPutaway",0]]},{"name":"PostInboundTransferInOneStep","line":1061,"kind":"procedure","access":"internal","params":0,"steps":[[1072,"ext","table",5740,"ShouldPostReceiptWithShipment",0]]}]}