{"title":"Codeunit 99000808 PlanningRoutingManagement, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/99000808-planningroutingmanagement/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":99000808,"name":"PlanningRoutingManagement","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/99000808-planningroutingmanagement/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/99000808-planningroutingmanagement/source/","path":"src/Layers/W1/BaseApp/Manufacturing/Routing/PlanningRoutingManagement.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":{"table:99000830":{"name":"Planning Routing Line","url":"https://jonas-paprotka.de/ref/table/99000830-planning-routing-line/"},"codeunit:5402":{"name":"Unit of Measure Management","url":"https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/"},"table:246":{"name":"Requisition Line","url":"https://jonas-paprotka.de/ref/table/246-requisition-line/"},"codeunit:99000810":{"name":"Calculate Planning Route Line","url":"https://jonas-paprotka.de/ref/codeunit/99000810-calculate-planning-route-line/"},"codeunit:99000809":{"name":"Planning Line Management","url":"https://jonas-paprotka.de/ref/codeunit/99000809-planning-line-management/"},"codeunit:99000755":{"name":"Shop Calendar Management","url":"https://jonas-paprotka.de/ref/codeunit/99000755-shop-calendar-management/"}},"procs":[{"name":"SetRtngLineSequenceBack","line":74,"kind":"procedure","params":5,"steps":[[79,"event","OnBeforeSetRtngLineSequenceBack",0],[83,"call","ErrorInRouting",4],[106,"write",99000830,"Modify"],[132,"write",99000830,"Modify"]]},{"name":"SetRtngLineSequenceForward","line":138,"kind":"procedure","params":5,"steps":[[143,"event","OnBeforeSetRtngLineSequenceForward",0],[147,"call","ErrorInRouting",4],[170,"write",99000830,"Modify"],[196,"write",99000830,"Modify"]]},{"name":"CalcSequenceBack","line":202,"kind":"procedure","access":"local","params":1,"steps":[[211,"write",99000830,"ModifyAll"],[212,"write",99000830,"ModifyAll"],[213,"write",99000830,"ModifyAll"],[219,"call","SetRtngLineSequenceBack",5]]},{"name":"CalcSequenceForward","line":222,"kind":"procedure","access":"local","params":1,"steps":[[231,"write",99000830,"ModifyAll"],[237,"call","SetRtngLineSequenceForward",5]]},{"name":"CalcSequenceFromActual","line":240,"kind":"procedure","params":3,"steps":[[245,"event","OnBeforeCalcSequenceFromActual",0],[247,"call","NeedsCalculation",3],[252,"call","Calculate",1],[257,"write",99000830,"ModifyAll"],[263,"call","SetRtngLineSequenceForward",5],[265,"call","SetRtngLineSequenceBack",5]]},{"name":"Calculate","line":269,"kind":"procedure","params":1,"steps":[[278,"call","CalcSequenceBack",1],[279,"call","CalcSequenceForward",1],[312,"ext","codeunit",5402,"QtyRndPrecision",0],[315,"ext","codeunit",5402,"QtyRndPrecision",0],[319,"write",99000830,"Modify"],[322,"write",99000830,"ModifyAll"],[323,"call","Check",1]]},{"name":"Check","line":326,"kind":"procedure","access":"local","params":1,"steps":[[341,"call","InsertInErrList",1],[355,"call","InsertInErrList",1],[368,"call","InsertInErrList",1],[380,"call","InsertInErrList",1]]},{"name":"CalculatePlanningLineDates","line":428,"kind":"procedure","params":1,"steps":[[454,"ext","table",246,"UpdateDatetime",0],[455,"write",246,"Modify"],[458,"event","OnAfterCalculatePlanningLineDates",0]]},{"name":"OnGetResiliencyErrorOnRouting","line":462,"kind":"procedure","access":"local","params":2,"steps":[[464,"ext","codeunit",99000810,"GetResiliencyError",1]]},{"name":"OnBeforeRecalculateWithOptionalModify","line":469,"kind":"procedure","access":"local","params":2,"steps":[[471,"call","CalculateRouting",2]]},{"name":"CalculateRouting","line":474,"kind":"procedure","params":2,"steps":[[481,"call","NeedsCalculation",3],[486,"call","Calculate",1],[506,"ext","table",246,"CalcEndingDate",0],[508,"ext","table",246,"CalcStartingDate",0],[509,"ext","table",246,"UpdateDatetime",0],[510,"event","OnCalculateRoutingOnAfterUpdateReqLine",0],[512,"ext","codeunit",99000809,"RunOnCalculateRoutingOnAfterUpdateReqLine",2],[524,"call","CalculateRoutingFromActual",5],[526,"call","CalculatePlanningLineDates",1]]},{"name":"CalculateRoutingFromActual","line":529,"kind":"procedure","params":5,"steps":[[541,"call","NeedsCalculation",3],[546,"call","Calculate",1],[577,"ext","codeunit",99000755,"GetMaxDate",0],[581,"ext","codeunit",99000810,"SetResiliencyOn",3],[583,"ext","codeunit",99000810,"CalculateRouteLine",4]]}]}