---
title: "Codeunit 99000793 Calculate Low-Level Code"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/99000793-calculate-low-level-code/
type: codeunit
id: 99000793
name: "Calculate Low-Level Code"
app: "Base Application"
namespace: Microsoft.Manufacturing.ProductionBOM
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/99000793-calculate-low-level-code/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 99000793 Calculate Low-Level Code

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/99000793-calculate-low-level-code/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Manufacturing.ProductionBOM |
| Versions | 17-28 |
| Source file | Manufacturing/ProductionBOM/CalculateLowLevelCode.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CalcLevels | (Option, Code[20], Integer, Integer) | Integer | public | 17-28 | - | - |
| RecalcLowerLevels | (Code[20], Integer, Boolean) | - | public | 17-28 | - | - |
| RecalcAsmLowerLevels | (Code[20], Integer, Boolean) | - | public | 17-28 | - | - |
| SetRecursiveLevelsOnItem | (var Record Item, Integer, Boolean) | - | public | 17-28 | - | - |
| SetRecursiveLevelsOnBOM | (var Record Production BOM Header, Integer, Boolean) | - | public | 17-28 | - | - |
| GetMax | (Integer, Integer) | Integer | public | 17-28 | - | - |
| SetActualProdBOM | (Record Production BOM Header) | - | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCalcLevels | (Option, Code[20], var Integer) | 17-20 | - | - |
| Integration event | OnBeforeItemModify | (var Record Item) | 17-28 | - | - |
| Integration event | OnCalcLevelsForProdBOM | (var Record Item, Code[20], Integer, Integer, var Integer) | 17-28 | - | - |
| Integration event | OnSetRecursiveLevelsOnItemOnBeforeCompItemModify | (var Record Item, Boolean) | 17-28 | - | - |
| Integration event | OnAfterCalcLevels | (Option, Code[20], var Integer, Integer) | 21 | - | - |
| Integration event | OnBeforeCalcLevels | (Option, Code[20], Integer, Integer, var Integer, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeSetRecursiveLevelsOnBOM | (var Record Production BOM Header, Integer, Boolean, var Boolean) | 21-28 | - | - |
| Integration event | OnAfterCalcLevels | (Option, Code[20], var Integer, Integer, Integer) | 22-28 | - | - |
| Integration event | OnBeforeSetRecursiveLevelsOnItem | (var Record Item, Integer, Boolean, var Boolean) | 24-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
