{"title":"Codeunit 1019 Job-Explode BOM, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1019-job-explode-bom/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":1019,"name":"Job-Explode BOM","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1019-job-explode-bom/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1019-job-explode-bom/source/","path":"src/Layers/W1/BaseApp/Projects/Project/Planning/JobExplodeBOM.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:904":{"name":"Assemble-to-Order Link","url":"https://jonas-paprotka.de/ref/table/904-assemble-to-order-link/"},"table:1003":{"name":"Job Planning Line","url":"https://jonas-paprotka.de/ref/table/1003-job-planning-line/"},"codeunit:378":{"name":"Transfer Extended Text","url":"https://jonas-paprotka.de/ref/codeunit/378-transfer-extended-text/"},"codeunit:5402":{"name":"Unit of Measure Management","url":"https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/"},"codeunit:99000845":{"name":"Reservation Management","url":"https://jonas-paprotka.de/ref/codeunit/99000845-reservation-management/"}},"procs":[{"name":"OnRun","line":20,"kind":"trigger","steps":[[27,"event","OnBeforeOnRun",1],[33,"call","CheckJobPlanningLine",1],[34,"call","DeleteReservEntries",1],[50,"call","AssingJobPlannigLineDataFromBOMComp",0],[59,"ext","table",904,"DeleteAsmFromJobPlanningLine",1],[61,"call","InitParentItemLine",1],[62,"call","AddExtText",0],[63,"call","ExplodeBOMCompLines",1]]},{"name":"CallExplodeBOMCompLines","line":84,"kind":"procedure","params":1,"steps":[[86,"call","ExplodeBOMCompLines",1]]},{"name":"ExplodeBOMCompLines","line":89,"kind":"procedure","access":"local","params":1,"steps":[[94,"call","SetFiltersOnJobPlanningLine",1],[99,"ext","table",1003,"IsExtendedText",0],[107,"call","GenerateLineSpacing",1],[116,"validate",1003,"Line Type"],[117,"call","AssignBOMCompType",0],[121,"call","ValidateJobPlanningLineData",1],[123,"call","AddDescriptionFromTranslationIfExist",0],[125,"write",1003,"Insert",1],[128,"validate",1003,"Qty. to Assemble"],[131,"ext","table",1003,"AutoReserve",0],[134,"ext","codeunit",378,"JobCheckIfAnyExtText",2],[135,"ext","codeunit",378,"InsertJobExtText",1],[140,"call","AddExtText",0]]},{"name":"ValidateJobPlanningLineData","line":143,"kind":"procedure","access":"local","params":1,"steps":[[145,"validate",1003,"Planning Date"],[146,"validate",1003,"Document No."],[147,"validate",1003,"No."],[148,"validate",1003,"Location Code"],[150,"validate",1003,"Variant Code"],[151,"call","ValidateQtyAndUoMForDifferentTypes",1]]},{"name":"AddExtText","line":161,"kind":"procedure","access":"local","params":0,"steps":[[163,"ext","codeunit",378,"JobCheckIfAnyExtText",2],[164,"ext","codeunit",378,"InsertJobExtText",1]]},{"name":"AssingJobPlannigLineDataFromBOMComp","line":179,"kind":"procedure","access":"local","params":0,"steps":[[185,"ext","codeunit",5402,"GetQtyPerUnitOfMeasure",2]]},{"name":"InitParentItemLine","line":195,"kind":"procedure","access":"local","params":1,"steps":[[204,"write",1003,"Modify"]]},{"name":"ValidateQtyAndUoMForDifferentTypes","line":207,"kind":"procedure","access":"local","params":1,"steps":[[215,"validate",1003,"Unit of Measure Code"],[216,"ext","codeunit",5402,"GetQtyPerUnitOfMeasure",2],[217,"ext","codeunit",5402,"GetQtyRoundingPrecision",2],[219,"ext","codeunit",5402,"QtyRndPrecision",0],[220,"validate",1003,"Quantity"],[225,"validate",1003,"Unit of Measure Code"],[226,"ext","codeunit",5402,"GetResQtyPerUnitOfMeasure",2],[227,"validate",1003,"Quantity"],[227,"ext","codeunit",5402,"QtyRndPrecision",0],[230,"validate",1003,"Quantity"]]},{"name":"DeleteReservEntries","line":253,"kind":"procedure","access":"local","params":1,"steps":[[255,"ext","codeunit",99000845,"SetReservSource",1],[256,"ext","codeunit",99000845,"SetItemTrackingHandling",1],[257,"ext","codeunit",99000845,"DeleteReservEntries",2]]}]}