{"title":"Codeunit 73 Purch.-Explode BOM, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/73-purch-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":73,"name":"Purch.-Explode BOM","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/73-purch-explode-bom/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/73-purch-explode-bom/source/","path":"src/Layers/W1/BaseApp/Purchases/Document/PurchExplodeBOM.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:38":{"name":"Purchase Header","url":"https://jonas-paprotka.de/ref/table/38-purchase-header/"},"codeunit:378":{"name":"Transfer Extended Text","url":"https://jonas-paprotka.de/ref/codeunit/378-transfer-extended-text/"},"table:39":{"name":"Purchase Line","url":"https://jonas-paprotka.de/ref/table/39-purchase-line/"},"codeunit:5402":{"name":"Unit of Measure Management","url":"https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/"},"table:37":{"name":"Sales Line","url":"https://jonas-paprotka.de/ref/table/37-sales-line/"}},"procs":[{"name":"OnRun","line":19,"kind":"trigger","steps":[[24,"event","OnBeforeOnRun",1],[29,"ext","table",38,"TestStatusOpen",0],[30,"call","CheckPurchaseLine",1],[34,"event","OnRunOnAfterSetNoOfBOMComp",0],[40,"call","GetSelection",1],[44,"call","InitParentItemLine",1],[45,"ext","codeunit",378,"PurchCheckIfAnyExtText",2],[46,"ext","codeunit",378,"InsertPurchExtText",1],[48,"call","ExplodeBOMCompLines",1],[49,"call","ClearSpecialSalesOrderLineValuesOnExplodeBOM",1],[51,"event","OnAfterOnRun",0]]},{"name":"GetSelection","line":75,"kind":"procedure","access":"local","params":1,"steps":[[80,"event","OnBeforeGetSelection",1]]},{"name":"CallExplodeBOMCompLines","line":87,"kind":"procedure","params":1,"steps":[[89,"call","ExplodeBOMCompLines",1]]},{"name":"ExplodeBOMCompLines","line":92,"kind":"procedure","access":"local","params":1,"steps":[[106,"ext","table",39,"IsExtendedText",0],[122,"event","OnExplodeBOMCompLinesOnBeforeLoopFromBOMComp",0],[125,"event","OnExplodeBOMCompLinesOnBeforeCreatePurchLine",0],[137,"validate",39,"No."],[138,"validate",39,"Variant Code"],[139,"validate",39,"Unit of Measure Code"],[140,"ext","codeunit",5402,"GetQtyPerUnitOfMeasure",2],[141,"validate",39,"Quantity"],[141,"ext","codeunit",5402,"QtyRndPrecision",0],[147,"validate",39,"No."],[148,"validate",39,"Variant Code"],[149,"validate",39,"Unit of Measure Code"],[150,"ext","codeunit",5402,"GetResQtyPerUnitOfMeasure",2],[151,"validate",39,"Quantity"],[151,"ext","codeunit",5402,"QtyRndPrecision",0],[158,"validate",39,"Expected Receipt Date"],[166,"event","OnBeforeInsertExplodedPurchLine",0],[167,"write",39,"Insert"],[168,"event","OnAfterInsertExplodedPurchLine",0],[174,"write",39,"Modify"],[178,"ext","codeunit",378,"PurchCheckIfAnyExtText",2],[179,"ext","codeunit",378,"InsertPurchExtText",1],[185,"ext","codeunit",378,"PurchCheckIfAnyExtText",2],[186,"ext","codeunit",378,"InsertPurchExtText",1],[187,"event","OnAfterExplodeBOMCompLines",0]]},{"name":"ClearSpecialSalesOrderLineValuesOnExplodeBOM","line":190,"kind":"procedure","access":"local","params":1,"steps":[[201,"write",37,"Modify"]]},{"name":"CheckPurchaseLine","line":206,"kind":"procedure","access":"local","params":1,"steps":[[216,"event","OnAfterCheckPurchaseLine",0]]},{"name":"InitParentItemLine","line":219,"kind":"procedure","access":"local","params":1,"steps":[[225,"event","OnRunOnBeforeToPurchLineModify",0],[226,"write",39,"Modify"]]}]}