---
id: change/bcapps/10030
type: change
title: "#10030 [main]planning worksheet requires second runof calculate regenerative plan"
summary: The low-level code calculation engine now processes SKU-level production BOMs correctly, ensuring planning worksheets generate all required planning lines in a single run for multi-level assemblies when BOMs are defined at the SKU level rather than the item card.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - tableextension mfg. stockkeeping unit
  - codeunit calculate low-level code
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:27.278Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ccf52a0998cd61c1da721fc25125276adcc000ef
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10030
    title: "microsoft/BCApps#10030: [main]planning worksheet requires second runof calculate regenerative plan"
    date: "2026-08-27"
    commit: ccf52a0998cd61c1da721fc25125276adcc000ef
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/tableextension/99000759
    - object/codeunit/99000793
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 10030
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10030
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-27T15:12:28Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 241
  deletions: 2
  al: 2
apps:
  - Base Application
objects_touched:
  - key: tableextension/99000759
    page: tableextension/99000759
    type: tableextension
    id: 99000759
    name: Mfg. Stockkeeping Unit
    app: Base Application
    status: modified
  - key: codeunit/99000793
    page: codeunit/99000793
    type: codeunit
    id: 99000793
    name: Calculate Low-Level Code
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 646101
systems:
  - inventory
  - manufacturing
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #10030 [main]planning worksheet requires second runof calculate regenerative plan

> The low-level code calculation engine now processes SKU-level production BOMs correctly, ensuring planning worksheets generate all required planning lines in a single run for multi-level assemblies when BOMs are defined at the SKU level rather than the item card.

[Pull request](https://github.com/microsoft/BCApps/pull/10030) · merged into `main` (BC30) on 2026-08-27 by Shikhverma · 3 files (+241 -2), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- CalcLevels procedure now traverses SKU-level BOMs in addition to item-card BOMs when computing low-level codes
- New RecalcSKULowerLevels procedure propagates low-level codes downward through SKU-referenced BOMs
- SKU Production BOM No. OnValidate now persists the recalculated low-level code instead of only computing it
- Eliminates the need for users to run Calculate Regenerative Plan twice for SKU-only multi-level BOM structures
- Behaviour changes for users or extensions.

## AL objects touched

- [Table extension 99000759 "Mfg. Stockkeeping Unit"](../../objects/tableextension/99000759.md), Base Application: modified
- [Codeunit 99000793 "Calculate Low-Level Code"](../../objects/codeunit/99000793.md), Base Application: modified

## Context

- Work items: AB#646101
- Labels: Team: SCM
- Systems: inventory, manufacturing

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
