---
id: object/codeunit/99001015
type: object
title: Codeunit 99001015 "Prod. Definition Version Mgmt."
summary: Codeunit 99001015 "Prod. Definition Version Mgmt." in Base Application (Microsoft.Manufacturing.Wizard). 14 public procedures. Introduced in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "30"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-07T23:32:29.863Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 9b61b9ddb656442f7b7fb54262304b26df6994a361f292bc872d938e4bab1188
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/f18567dc08e2bd162bf192e1da4d714b57eb099f/src/Layers/W1/BaseApp/Manufacturing/Wizard/ProdDefinitionVersionMgmt.Codeunit.al
    title: src/Layers/W1/BaseApp/Manufacturing/Wizard/ProdDefinitionVersionMgmt.Codeunit.al (main)
    date: null
    commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9067
object_type: codeunit
object_id: 99001015
name: Prod. Definition Version Mgmt.
namespace: Microsoft.Manufacturing.Wizard
app: Base Application
extends: null
first_version: "30"
last_version: "30"
present_in:
  - "30"
changed_in: []
source_major: "30"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 14
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 3
  implements: 0
---

# Codeunit 99001015 "Prod. Definition Version Mgmt."

> Codeunit 99001015 "Prod. Definition Version Mgmt." in Base Application (Microsoft.Manufacturing.Wizard). 14 public procedures. Introduced in BC30.

Base Application · Microsoft.Manufacturing.Wizard · BC30 · [source at f18567dc](https://github.com/microsoft/BCApps/blob/f18567dc08e2bd162bf192e1da4d714b57eb099f/src/Layers/W1/BaseApp/Manufacturing/Wizard/ProdDefinitionVersionMgmt.Codeunit.al) · facts from BC30

## Procedures

- `ShowBOMVersionSelection(ProductionBOMNo: Code[20]; var SelectedVersion: Code[20]): Boolean` (internal): Opens a lookup page for certified Production BOM versions and returns the selected version code.
- `ShowRoutingVersionSelection(RoutingNo: Code[20]; var SelectedVersion: Code[20]): Boolean` (internal): Opens a lookup page for certified routing versions and returns the selected version code.
- `GetDefaultBOMVersion(ProductionBOMNo: Code[20]): Code[20]` (internal): Returns the default active BOM version code for a given production BOM as of the work date.
- `GetDefaultRoutingVersion(RoutingNo: Code[20]): Code[20]` (internal): Returns the default active routing version code for a given routing as of the work date.
- `ShowBOMSelection(var SelectedBOMNo: Code[20]): Boolean` (internal): Opens a lookup page for certified production BOMs and returns the selected BOM number.
- `ShowRoutingSelection(var SelectedRoutingNo: Code[20]): Boolean` (internal): Opens a lookup page for certified routings and returns the selected routing number.
- `CheckRoutingExists(RoutingNo: Code[20]; RoutingVersionCode: Code[20]): Boolean` (internal): Checks whether a routing (or a specific routing version) exists in the database.
- `TestRoutingCertified(RoutingNo: Code[20]; RoutingVersionCode: Code[20])` (internal): Validates that the specified routing (or routing version) has Certified status. Throws an error if not certified.
- `CheckBOMExists(ProductionBOMNo: Code[20]; BOMVersionCode: Code[20]): Boolean` (internal): Checks whether a production BOM (or a specific BOM version) exists in the database.
- `TestBOMCertified(ProductionBOMNo: Code[20]; BOMVersionCode: Code[20])` (internal): Validates that the specified production BOM (or BOM version) has Certified status. Throws an error if not certified.
- `GetBOMVersionNoSeries(ProductionBOMNo: Code[20]): Code[20]` (internal): Returns the number series code used for BOM versions of the specified production BOM.
- `GetRoutingVersionNoSeries(RoutingNo: Code[20]): Code[20]` (internal): Returns the number series code used for routing versions of the specified routing.
- `ValidateBOMVersionNoSeries(BOMNo: Code[20])` (internal): Validates that the production BOM has a version number series configured. Raises an actionable error that opens the affected production BOM if not set.
- `ValidateRoutingVersionNoSeries(RoutingNo: Code[20])` (internal): Validates that the routing has a version number series configured. Raises an actionable error that opens the affected routing if not set.

## Calls

From the extracted call graph of BC30 (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) (2 calls: `GetDefaultBOMVersion → GetBOMVersion`, `GetDefaultRoutingVersion → GetRtngVersion`)

## Called by

- [Codeunit 99001017 "Production Definition Manager"](../codeunit/99001017.md) (8 calls: `CreateBOMIfNotExists → CheckBOMExists`, `CreateRoutingIfNotExists → CheckRoutingExists`, `PrepareBOMAndRoutingDataForScenario → GetDefaultBOMVersion`, …)
- [Page 99001021 "Production Definition Wizard"](../page/99001021.md) (4 calls: `LoadBOMLines → CheckBOMExists`, `LoadRoutingLines → CheckRoutingExists`, `SetBOMRoutingEditable → CheckBOMExists`, …)
- [Codeunit 99001016 "Prod. Definition Temp Data"](../codeunit/99001016.md) (3 calls: `CreateTemporaryComponentFromBOMLine → CheckBOMExists`, `CreateTemporaryComponentFromBOMLine → GetDefaultBOMVersion`, `LoadRoutingLines → GetDefaultRoutingVersion`)

## Recent changes

- 2026-08-16 [#9067 Production Definition Wizard - Implementation](../../changes/bcapps/9067.md) (main, BC30, feature, added)

## Across versions

- Present in: BC30
- Changed (declaration) in: none

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 BC30 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: "Prod. Definition Version Mgmt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
