{"title":"Codeunit 5995 Service Warehouse Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5995-service-warehouse-mgt/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":"codeunit","id":5995,"name":"Service Warehouse Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5995-service-warehouse-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5995-service-warehouse-mgt/source/","path":"src/Layers/W1/BaseApp/Service/Document/ServiceWarehouseMgt.Codeunit.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":{"page:5904":{"name":"Service Line List","url":"https://jonas-paprotka.de/ref/page/5904-service-line-list/"},"codeunit:5777":{"name":"Whse. Validate Source Line","url":"https://jonas-paprotka.de/ref/codeunit/5777-whse-validate-source-line/"},"page:5975":{"name":"Posted Service Shipment","url":"https://jonas-paprotka.de/ref/page/5975-posted-service-shipment/"},"page:5900":{"name":"Service Order","url":"https://jonas-paprotka.de/ref/page/5900-service-order/"},"codeunit:5781":{"name":"Whse. Validate Source Header","url":"https://jonas-paprotka.de/ref/codeunit/5781-whse-validate-source-header/"},"table:7321":{"name":"Warehouse Shipment Line","url":"https://jonas-paprotka.de/ref/table/7321-warehouse-shipment-line/"},"codeunit:5750":{"name":"Whse.-Create Source Document","url":"https://jonas-paprotka.de/ref/codeunit/5750-whse-create-source-document/"},"table:5902":{"name":"Service Line","url":"https://jonas-paprotka.de/ref/table/5902-service-line/"},"codeunit:5775":{"name":"Whse. Management","url":"https://jonas-paprotka.de/ref/codeunit/5775-whse-management/"},"codeunit:5780":{"name":"Whse. Cross-Dock Management","url":"https://jonas-paprotka.de/ref/codeunit/5780-whse-cross-dock-management/"},"report:5708":{"name":"Create Warehouse Shipment","url":"https://jonas-paprotka.de/ref/report/5708-create-warehouse-shipment/"},"codeunit:99000842":{"name":"Service Line-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/99000842-service-line-reserve/"},"codeunit:5700":{"name":"User Setup Management","url":"https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/"}},"procs":[{"name":"OnShowSourceDocLine","line":30,"kind":"procedure","access":"local","params":5,"steps":[[41,"event","OnBeforeShowServiceLines",1],[43,"call","ShowServiceLines",1]]},{"name":"OnShowSourceDocAttachedLines","line":48,"kind":"procedure","access":"local","params":4,"steps":[[59,"event","OnBeforeShowAttachedServiceLines",1],[61,"call","ShowServiceLines",1]]},{"name":"ShowServiceLines","line":65,"kind":"procedure","access":"local","params":1,"steps":[[67,"run","page",5904]]},{"name":"ServiceLineVerifyChange","line":80,"kind":"procedure","params":2,"steps":[[87,"event","OnBeforeServiceLineVerifyChange",1],[91,"ext","codeunit",5777,"WhseLinesExist",6],[99,"ext","codeunit",5777,"VerifyFieldNotChanged",3],[100,"ext","codeunit",5777,"VerifyFieldNotChanged",3],[101,"ext","codeunit",5777,"VerifyFieldNotChanged",3],[102,"ext","codeunit",5777,"VerifyFieldNotChanged",3],[103,"ext","codeunit",5777,"VerifyFieldNotChanged",3],[104,"ext","codeunit",5777,"VerifyFieldNotChanged",3],[106,"event","OnAfterServiceLineVerifyChange",0]]},{"name":"ServiceLineDelete","line":109,"kind":"procedure","params":1,"steps":[[111,"ext","codeunit",5777,"WhseLinesExist",6],[115,"ext","codeunit",5777,"RaiseCannotBeDeletedErr",1],[117,"event","OnAfterServiceLineDelete",0]]},{"name":"OnShowPostedSourceDoc","line":143,"kind":"procedure","access":"local","params":3,"steps":[[155,"run","page",5975]]},{"name":"OnShowSourceDocumentCard","line":160,"kind":"procedure","access":"local","params":1,"steps":[[168,"run","page",5900]]},{"name":"ServiceHeaderVerifyChange","line":173,"kind":"procedure","params":2,"steps":[[185,"ext","codeunit",5781,"ChangeWarehouseLines",6]]},{"name":"OnSetFiltersOnSourceTables","line":192,"kind":"procedure","access":"local","params":3,"steps":[[207,"event","OnSetFiltersOnSourceTablesOnBeforeSetServiceTableView",0]]},{"name":"FromServiceLine2ShptLine","line":212,"kind":"procedure","params":2,"steps":[[221,"event","OnBeforeFromService2ShptLine",1],[227,"event","OnBeforeFromService2ShptLineOnAfterGetServiceHeader",0],[229,"ext","table",7321,"InitNewLine",1],[230,"ext","table",7321,"SetSource",4],[232,"ext","table",7321,"SetItemData",9],[236,"event","OnFromServiceLine2ShptLineOnAfterInitNewLine",0],[237,"ext","codeunit",5750,"SetQtysOnShptLine",3],[240,"ext","table",5902,"GetDueDate",0],[242,"ext","table",5902,"GetShipmentDate",0],[252,"ext","codeunit",5750,"UpdateShipmentLine",2],[253,"event","OnFromServiceLine2ShptLineOnBeforeCreateShptLine",0],[254,"ext","codeunit",5750,"CreateShipmentLine",1],[255,"event","OnAfterCreateShptLineFromServiceLine",0],[256,"ext","table",7321,"HasErrorOccured",0]]},{"name":"CheckIfFromServiceLine2ShptLine","line":264,"kind":"procedure","params":2,"steps":[[266,"ext","table",5902,"CheckIfServiceLineMeetsReservedFromStockSetting",2]]},{"name":"CreatePickOnCheckSourceDocument","line":345,"kind":"procedure","access":"local","params":1,"steps":[[354,"ext","codeunit",5775,"GetSourceDocumentDoesNotExistErr",0]]},{"name":"OnCalcCrossDockToServiceOrder","line":359,"kind":"procedure","access":"local","params":9,"steps":[[361,"call","CalcCrossDockToServiceOrder",9]]},{"name":"CalcCrossDockToServiceOrder","line":364,"kind":"procedure","access":"local","params":9,"steps":[[373,"event","OnBeforeCalcCrossDockToServiceOrder",1],[384,"event","OnCalcCrossDockToServiceOrderOnAfterServiceLineSetFilters",0],[391,"ext","codeunit",5780,"CalculatePickQty",12],[395,"event","OnCalcCrossDockToServiceOrderOnBeforeInsertCrossDockLine",0],[396,"ext","codeunit",5780,"InsertCrossDockOpp",18],[403,"event","OnCalcCrossDockToServiceOrderOnAfterInsertCrossDockLine",0]]},{"name":"OnWarehouseRequestOnAfterGetRecord","line":438,"kind":"procedure","access":"local","params":2,"steps":[[449,"ext","report",5708,"CreateWarehouseShipmentFromWhseRequest",1]]},{"name":"OnCheckSourceDocLineQtyOnSetQtyOutstandingBase","line":455,"kind":"procedure","access":"local","params":4,"steps":[[464,"ext","table",7321,"CalcQty",1]]},{"name":"OnOpenItemTrackingLines","line":471,"kind":"procedure","access":"local","params":1,"steps":[[479,"ext","codeunit",99000842,"CallItemTracking",1]]},{"name":"OnSetFiltersOnAfterSetSourceFilters","line":499,"kind":"procedure","access":"local","params":2,"steps":[[503,"call","AddFilter",2]]},{"name":"OnAfterGetInvoicePostingPolicy","line":516,"kind":"procedure","access":"local","params":3,"steps":[[522,"ext","codeunit",5700,"GetServiceInvoicePostingPolicy",3]]}]}