---
id: object/codeunit/99000770
type: object
title: Codeunit 99000770 "Where-Used Management"
summary: Codeunit 99000770 "Where-Used Management" in Base Application (Microsoft.Manufacturing.ProductionBOM). 5 public procedures, 9 events. Present since at least BC23, still in BC30, changed in BC25.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "25"
  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: b47d46ff5abc1c2912865c9261aa0ff35f15b720879ba1f041c5977d849ad0e7
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/ProductionBOM/WhereUsedManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Manufacturing/ProductionBOM/WhereUsedManagement.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: 99000770
name: Where-Used 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"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 19
  events: 9
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 1
  implements: 0
---

# Codeunit 99000770 "Where-Used Management"

> Codeunit 99000770 "Where-Used Management" in Base Application (Microsoft.Manufacturing.ProductionBOM). 5 public procedures, 9 events. Present since at least BC23, still in BC30, changed in BC25.

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

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Production BOM Header" = r, TableData "Production BOM Version" = r, TableData "Where-Used Line" = rimd |

## Events published

- `OnAfterBuildWhereUsedList(Type: Option " ",Item,"Production BOM"; No: Code[20]; CalcDate: Date; var WhereUsedList: Record "Where-Used Line" temporary; NextWhereUsedEntryNo: Integer; Level: Integer; Quantity: Decimal; MultiLevel: Boolean)` (integration)
- `OnBeforeIsActiveProductionBOM(ProductionBOMLine: Record "Production BOM Line"; var Result: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeBuildWhereUsedList(Type: Option; No: Code[20]; var Multilevel: Boolean; var CalcDate: Date; var Level: Integer; var Quantity: Decimal; var NextWhereUsedEntryNo: Integer; var TempWhereUsedLine: Record "Where-Used Line" temporary)` (integration)
- `OnBeforeWhereUsedListInsert(var WhereUsedLine: Record "Where-Used Line"; var ItemAssembly: Record Item; var CalcDate: Date; var Quantity: Decimal)` (integration)
- `OnBuildWhereUsedListOnLoopProdBomComponent(var ProductionBOMLine: Record "Production BOM Line"; var TempWhereUsedLine: Record "Where-Used Line" temporary; var NextWhereUsedEntryNo: Integer; No: Code[20]; CalcDate: Date; var Level: Integer)` (integration)
- `OnBuildWhereUsedListOnAfterItemAssemblySetFilters(var Item: Record Item; var No: Code[20])` (integration)
- `OnBuildWhereUsedListOnBeforeFindSetProdBOMComponent(var ProductionBOMLine: Record "Production BOM Line")` (integration)
- `OnBeforeBuildWhereUsedListWithCheck(ProductionBOMLineType: Enum "Production BOM Line Type"; No: Code[20]; CalcDate: Date; IsMultiLevel: Boolean; var TempWhereUsedLine: Record "Where-Used Line" temporary; var IsHandled: Boolean)` (integration)
- `OnBeforeGetItemBOMNo(ItemNo: Code[20]; var Item: Record Item; var IsHandled: Boolean)` (integration)

## Procedures

- `FindRecord(Which: Text[30]; var WhereUsedList2: Record "Where-Used Line"): Boolean`
- `NextRecord(Steps: Integer; var WhereUsedList2: Record "Where-Used Line"): Integer`
- `WhereUsedFromItem(Item: Record Item; CalcDate: Date; NewMultiLevel: Boolean)`
- `WhereUsedFromProdBOM(ProdBOM: Record "Production BOM Header"; CalcDate: Date; NewMultiLevel: Boolean)`
- `IsActiveProductionBOM(ProductionBOMLine: Record "Production BOM Line"): Boolean`

Plus 5 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) (3 calls: `BuildWhereUsedList → GetBOMUnitOfMeasure`, `BuildWhereUsedList → GetBOMVersion`, `BuildWhereUsedListWithCheck → GetBOMVersion`)
- [Codeunit 5402 "Unit of Measure Management"](../codeunit/5402.md) (1 call: `BuildWhereUsedList → GetQtyPerUnitOfMeasure`)
- [Codeunit 99000758 "Mfg. Cost Calculation Mgt."](../codeunit/99000758.md) (1 call: `BuildWhereUsedList → CalcCompItemQtyBase`)
- [Codeunit 99000769 "Production BOM-Check"](../codeunit/99000769.md) (1 call: `BuildWhereUsedListWithCheck → CheckBOM`)

## Called by

- [Page 99000811 "Prod. BOM Where-Used"](../page/99000811.md) (4 calls: `BuildForm → WhereUsedFromItem`, `BuildForm → WhereUsedFromProdBOM`, `OnFindRecord → FindRecord`, …)

## Across versions

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

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