{"title":"Codeunit 99000793 Calculate Low-Level Code, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/99000793-calculate-low-level-code/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":99000793,"name":"Calculate Low-Level Code","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/99000793-calculate-low-level-code/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/99000793-calculate-low-level-code/source/","path":"src/Layers/W1/BaseApp/Manufacturing/ProductionBOM/CalculateLowLevelCode.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:27":{"name":"Item","url":"https://jonas-paprotka.de/ref/table/27-item/"},"table:99000771":{"name":"Production BOM Header","url":"https://jonas-paprotka.de/ref/table/99000771-production-bom-header/"}},"procs":[{"name":"OnRun","line":19,"kind":"trigger","steps":[[26,"call","CalcLevels",4],[28,"call","SetRecursiveLevelsOnBOM",3],[29,"call","RecalcSKULowerLevels",3],[30,"event","OnBeforeItemModify",0],[31,"write",27,"Modify"]]},{"name":"CalcLevels","line":43,"kind":"procedure","params":4,"steps":[[56,"event","OnBeforeCalcLevels",1],[88,"event","OnCalcLevelsForProdBOM",0],[116,"call","CalcDeeperLevel",3],[124,"event","OnAfterCalcLevels",0]]},{"name":"RecalcLowerLevels","line":128,"kind":"procedure","params":3,"steps":[[160,"call","SetRecursiveLevelsOnItem",3],[166,"call","SetRecursiveLevelsOnBOM",3]]},{"name":"RecalcSKULowerLevels","line":172,"kind":"procedure","access":"local","params":3,"steps":[[189,"call","SetRecursiveLevelsOnBOM",3],[196,"write",99000771,"Insert"]]},{"name":"RecalcAsmLowerLevels","line":202,"kind":"procedure","params":3,"steps":[[218,"call","SetRecursiveLevelsOnItem",3]]},{"name":"SetRecursiveLevelsOnItem","line":222,"kind":"procedure","params":3,"steps":[[229,"event","OnBeforeSetRecursiveLevelsOnItem",1],[235,"call","GetMax",2],[239,"call","RecalcAsmLowerLevels",3],[244,"call","SetRecursiveLevelsOnBOM",3],[247,"call","RecalcSKULowerLevels",3],[248,"event","OnSetRecursiveLevelsOnItemOnBeforeCompItemModify",0],[249,"write",27,"Modify"]]},{"name":"SetRecursiveLevelsOnBOM","line":253,"kind":"procedure","params":3,"steps":[[259,"event","OnBeforeSetRecursiveLevelsOnBOM",1],[266,"call","GetMax",2],[268,"call","RecalcLowerLevels",3],[269,"write",99000771,"Modify"]]}]}