---
id: object/codeunit/63
type: object
title: Codeunit 63 "Sales-Explode BOM"
summary: Codeunit 63 "Sales-Explode BOM" in Base Application (Microsoft.Sales.Document). 1 public procedures, 16 events. Present since at least BC23, still in BC30, changed in BC27.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "27"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 6a711427f3258faea601584606f813b2b9951479c20131ab75454832b7b01e2f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Document/SalesExplodeBOM.Codeunit.al
    title: src/Layers/W1/BaseApp/Sales/Document/SalesExplodeBOM.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 63
name: Sales-Explode BOM
namespace: Microsoft.Sales.Document
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 20
  events: 16
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 4
  called_by: 6
  implements: 0
---

# Codeunit 63 "Sales-Explode BOM"

> Codeunit 63 "Sales-Explode BOM" in Base Application (Microsoft.Sales.Document). 1 public procedures, 16 events. Present since at least BC23, still in BC30, changed in BC27.

Base Application · Microsoft.Sales.Document · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Document/SalesExplodeBOM.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Sales Line |

## Events published

- `OnAfterConfirmExplosion(var SalesLine: Record "Sales Line"; var Selection: Integer; var HideDialog: Boolean)` (integration)
- `OnAfterExplodeBOMCompLines(var SalesLine: Record "Sales Line"; Selection: Integer; LineSpacing: Integer; var ToSalesLine: Record "Sales Line")` (integration)
- `OnBeforeOnRun(var SalesLine: Record "Sales Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeConfirmExplosion(var SalesLine: Record "Sales Line"; var Selection: Integer; var HideDialog: Boolean; var NoOfBOMComp: Integer)` (integration)
- `OnBeforeCopyFromBOMToSalesLine(var SalesLine: Record "Sales Line"; BOMComponent: Record "BOM Component")` (integration)
- `OnExplodeBOMCompLinesOnAfterFromBOMCompSetFilters(var BOMComponent: Record "BOM Component"; SalesLine: Record "Sales Line"; var LineSpacing: Integer; var NextLineNo: Integer)` (integration)
- `OnBeforeToSalesLineModify(var ToSalesLine: Record "Sales Line"; FromSalesLine: Record "Sales Line")` (integration)
- `OnInsertOfExplodedBOMLineToSalesLine(var ToSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; BOMComponent: Record "BOM Component"; var SalesHeader: Record "Sales Header"; LineSpacing: Integer)` (integration)
- `OnRunOnBeforeItemCheckAvailSalesLineCheck(var ToSalesLine: Record "Sales Line"; FromBOMComp: Record "BOM Component"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var HideDialog: Boolean)` (integration)
- `OnExplodeBOMCompLinesOnAfterToSalesLineInsert(ToSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; FromBOMComp: Record "BOM Component"; SalesHeader: Record "Sales Header"; var NextLineNo: Integer)` (integration)
  - subscribers: [Codeunit 8069 "Sales Subscription Line Mgmt."](../codeunit/8069.md) AddSalesServiceCommitmentsForSalesLineOnAfterExplodeBOM
- `OnExplodeBOMCompLinesOnAfterAssignType(var ToSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; BOMComponent: Record "BOM Component"; var SalesHeader: Record "Sales Header")` (integration)
- `OnAfterOnRun(ToSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line")` (integration)
- `OnRunOnBeforeCalcNoOfBOMComp(var BOMComponent: Record "BOM Component"; SalesLine: Record "Sales Line")` (integration)
- `OnRunOnAfterFromBOMCompSetFilters(var BOMComponent: Record "BOM Component"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var ToSalesLine: Record "Sales Line")` (integration)
- `OnRunOnBeforeExplodeBOMCompLines(var SalesLine: Record "Sales Line"; var ToSalesLine: Record "Sales Line"; var NoOfBOMComp: Integer; var Selection: Integer; var IsHandled: Boolean; var BOMItemNo: Code[20])` (integration)
- `OnAfterCheckSalesLine(SalesLine: Record "Sales Line")` (integration)

## Procedures

- `CallExplodeBOMCompLines(SalesLine: Record "Sales Line")`: Explodes the BOM component lines for the specified sales line.

Plus 3 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 37 "Sales Line"](../table/37.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 5402 "Unit of Measure Management"](../codeunit/5402.md) (5 calls: `ExplodeBOMCompLines → GetQtyPerUnitOfMeasure`, `ExplodeBOMCompLines → GetResQtyPerUnitOfMeasure`, `ExplodeBOMCompLines → QtyRndPrecision`, …)
- [Codeunit 378 "Transfer Extended Text"](../codeunit/378.md) (4 calls: `ExplodeBOMCompLines → InsertSalesExtText`, `ExplodeBOMCompLines → SalesCheckIfAnyExtText`, `OnRun → InsertSalesExtText`, …)
- [Codeunit 99000845 "Reservation Management"](../codeunit/99000845.md) (3 calls: `OnRun → DeleteReservEntries`, `OnRun → SetItemTrackingHandling`, `OnRun → SetReservSource`)
- [Codeunit 311 "Item-Check Avail."](../codeunit/311.md) (2 calls: `OnRun → RaiseUpdateInterruptedError`, `OnRun → SalesLineCheck`)

## Called by

- [Page 46 "Sales Order Subform"](../page/46.md) (1 call: `ExplodeBOM → (object)`)
- [Page 47 "Sales Invoice Subform"](../page/47.md) (1 call: `ExplodeBOM → (object)`)
- [Page 508 "Blanket Sales Order Subform"](../page/508.md) (1 call: `ExplodeBOM → (object)`)
- [Page 6631 "Sales Return Order Subform"](../page/6631.md) (1 call: `ExplodeBOM → (object)`)
- [Page 95 "Sales Quote Subform"](../page/95.md) (1 call: `ExplodeBOM → (object)`)
- [Page 96 "Sales Cr. Memo Subform"](../page/96.md) (1 call: `ExplodeBOM → (object)`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC27

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Sales-Explode BOM")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
