---
id: object/codeunit/99000771
type: object
title: Codeunit 99000771 "BOM Matrix Management"
summary: Codeunit 99000771 "BOM Matrix Management" in Base Application (Microsoft.Manufacturing.ProductionBOM). 5 public procedures, 9 events. Present since at least BC23, still in BC30, changed in BC25, BC27-28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 2b6d167af39e3c8de49afc3379a7f69ee9d8883f8aa9893d118303a5d06f2f4f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/ProductionBOM/BOMMatrixManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Manufacturing/ProductionBOM/BOMMatrixManagement.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: 99000771
name: BOM Matrix Management
namespace: Microsoft.Manufacturing.ProductionBOM
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
  - "27"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 16
  events: 9
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 3
  implements: 0
---

# Codeunit 99000771 "BOM Matrix Management"

> Codeunit 99000771 "BOM Matrix Management" in Base Application (Microsoft.Manufacturing.ProductionBOM). 5 public procedures, 9 events. Present since at least BC23, still in BC30, changed in BC25, BC27-28.

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

## Properties

| Property | Value |
|---|---|
| Permissions | TableData Item = r, TableData "Production BOM Header" = r, TableData "Production BOM Version" = r, TableData "Production Matrix BOM Line" = rimd, TableData "Production Matrix BOM Entry" = rimd |

## Events published

- `OnBuildMatrixForItemOnAfterGetItem(var ProductionBOMLine: Record "Production BOM Line")` (integration)
- `OnBuildMatrixForItemOnBeforeRecursion(var ProductionBOMLine: Record "Production BOM Line")` (integration)
- `OnBuildMatrixForItemOnBeforeComponentListFind(var ProductionBOMLine: Record "Production BOM Line"; var ProductionMatrixBOMLine: Record "Production Matrix BOM Line")` (integration)
- `OnBeforeCompareTwoItems(Item1: Record Item; Item2: Record Item; CalcDate: Date; NewMultiLevel: Boolean; var VersionCode1: Code[20]; var VersionCode2: Code[20]; var UnitOfMeasureCode1: Code[10]; var UnitOfMeasureCode2: Code[10]; var IsHandled: Boolean)` (integration)
- `OnBeforeBOMMatrixFromBOM(ProductionBOMHeader: Record "Production BOM Header"; NewMultiLevel: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeBuildMatrix(ProductionBOMNo: Code[20]; var VersionCode: Code[20]; Level: Integer; Quantity: Decimal; var IsHandled: Boolean)` (integration)
- `OnBuildMatrixForProductionBOMOnAfterGetHeader(var ProductionBOMLine: Record "Production BOM Line")` (integration)
- `OnAfterCompareTwoItems(Item1: Record Item; Item2: Record Item; CalcDate: Date; NewMultiLevel: Boolean; VersionCode1: Code[20]; VersionCode2: Code[20]; UnitOfMeasureCode1: Code[10]; UnitOfMeasureCode2: Code[10])` (integration)
- `OnAfterBOMMatrixFromBOM(ProductionBOMHeader: Record "Production BOM Header"; NewMultiLevel: Boolean)` (integration)

## Procedures

- `FindRecord(Which: Text[30]; var ComponentList2: Record "Production Matrix BOM Line"): Boolean`
- `NextRecord(Steps: Integer; var ComponentList2: Record "Production Matrix BOM Line"): Integer`
- `GetComponentNeed(No: Code[20]; VariantCode: Code[10]; ID: Code[20]): Decimal`
- `CompareTwoItems(Item1: Record Item; Item2: Record Item; CalcDate: Date; NewMultiLevel: Boolean; var VersionCode1: Code[20]; var VersionCode2: Code[20]; var UnitOfMeasureCode1: Code[10]; var UnitOfMeasureCode2: Code[10])`
- `BOMMatrixFromBOM(ProductionBOMHeader: Record "Production BOM Header"; NewMultiLevel: Boolean)`

Plus 2 local procedures.

## Triggers

OnRun

## 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 99000756 "VersionManagement"](../codeunit/99000756.md) (4 calls: `BuildMatrix → GetBOMUnitOfMeasure`, `BuildMatrix → GetBOMVersion`, `CompareTwoItems → GetBOMUnitOfMeasure`, …)
- [Codeunit 5402 "Unit of Measure Management"](../codeunit/5402.md) (2 calls: `BuildMatrix → GetQtyPerUnitOfMeasure`, `CompareTwoItems → GetQtyPerUnitOfMeasure`)

## Called by

- [Page 9288 "Prod. BOM Version Comparison"](../page/9288.md) (5 calls: `BuildMatrix → BOMMatrixFromBOM`, `Matrix_OnAfterGetRecord → GetComponentNeed`, `OnAfterGetRecord → GetComponentNeed`, …)
- [Page 9287 "Prod. BOM Mat. per Ver. Matrix"](../page/9287.md) (4 calls: `MATRIX_OnAfterGetRecord → GetComponentNeed`, `OnFindRecord → FindRecord`, `OnNextRecord → NextRecord`, …)
- [Page 99000812 "Prod. BOM Matrix per Version"](../page/99000812.md) (1 call: `BuildMatrix → BOMMatrixFromBOM`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25, BC27-28

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: "BOM Matrix Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
