---
id: object/codeunit/99000857
type: object
title: Codeunit 99000857 "Prod. Order Line-Planning"
summary: Codeunit 99000857 "Prod. Order Line-Planning" in Base Application (Microsoft.Manufacturing.Document). 6 events, 12 event subscribers. Introduced in BC25, still in BC30, changed in BC26-27.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "25"
  last_changed: "27"
  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: 1d608cebeebb7b7e0a3c99bf1e5f349e2000a412583af438c0bce301247e34e1
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/Document/ProdOrderLinePlanning.Codeunit.al
    title: src/Layers/W1/BaseApp/Manufacturing/Document/ProdOrderLinePlanning.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12066
object_type: codeunit
object_id: 99000857
name: Prod. Order Line-Planning
namespace: Microsoft.Manufacturing.Document
app: Base Application
extends: null
first_version: "25"
last_version: "30"
present_in:
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "26"
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 21
  events: 6
  subscribers: 12
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 6
  called_by: 0
  implements: 0
---

# Codeunit 99000857 "Prod. Order Line-Planning"

> Codeunit 99000857 "Prod. Order Line-Planning" in Base Application (Microsoft.Manufacturing.Document). 6 events, 12 event subscribers. Introduced in BC25, still in BC30, changed in BC26-27.

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

## Properties

| Property | Value |
|---|---|
| Permissions | tabledata "Production Order" = r, tabledata "Prod. Order Component" = r, tabledata "Prod. Order Capacity Need" = r |

## Events published

- `OnBeforeGetUnplannedProdOrderComp(var UnplannedDemand: Record "Unplanned Demand"; var ProdOrderComponent: Record Microsoft.Manufacturing.Document."Prod. Order Component")` (integration)
- `OnGetUnplannedProdOrderCompOnAfterCalcNeedInsertUnplannedDemand(var UnplannedDemand: Record "Unplanned Demand"; var ProdOrderComp: Record Microsoft.Manufacturing.Document."Prod. Order Component"; var NeedInsertUnplannedDemand: Boolean)` (integration)
- `OnGetUnplannedProdOrderCompOnAfterInsertUnplannedDemand(var UnplannedDemand: Record "Unplanned Demand"; var ProdOrderComp: Record Microsoft.Manufacturing.Document."Prod. Order Component")` (integration)
- `OnInsertProdOrderCompLineOnBeforeInsert(var UnplannedDemand: Record "Unplanned Demand"; ProdOrderComponent: Record Microsoft.Manufacturing.Document."Prod. Order Component")` (integration)
- `OnGetUnplannedProdOrderCompOnAfterInsertProdOrderCompLine(var UnplannedDemand: Record "Unplanned Demand"; var ProdOrderComp: Record Microsoft.Manufacturing.Document."Prod. Order Component")` (integration)
- `OnBeforeGetProdOrderCompNeededQty(ProdOrderComponent: Record Microsoft.Manufacturing.Document."Prod. Order Component"; var NeededQty: Decimal; var IsHandled: Boolean)` (integration)

## Event subscriptions

- ReqLineOnSetDemandTypeFromUnplannedDemand subscribes to Table "Requisition Line" OnSetDemandTypeFromUnplannedDemand
- OnValidateDemandOrderNoOnGetSourceFields subscribes to Table "Unplanned Demand" OnValidateDemandOrderNoOnGetSourceFields
- CarryOutActionMsgPlanOnCheckDemandType subscribes to Report "Carry Out Action Msg. - Plan." OnCheckDemandType
- OnInsertDemandLinesOnCopyItemTracking subscribes to Codeunit "Order Planning Mgt." OnInsertDemandLinesOnCopyItemTracking
- OrderPlanningOnBeforeShowDemandOrder subscribes to Page "Order Planning" OnBeforeShowDemandOrder
- OnSetRecDemandFilter subscribes to Page "Order Planning" OnSetRecDemandFilter
- OnAfterStatusTextOnFormat subscribes to Page "Order Planning" OnAfterStatusTextOnFormat
- OnAfterDemandTypeTextOnFormat subscribes to Page "Order Planning" OnAfterDemandTypeTextOnFormat
- OnAfterDemandSubtypeTextOnFormat subscribes to Page "Order Planning" OnAfterDemandSubtypeTextOnFormat
- OnBeforeOpenPlanningWindow subscribes to Codeunit "Get Unplanned Demand" OnBeforeOpenWindow
- OnAfterGetUnplanned subscribes to Codeunit "Get Unplanned Demand" OnAfterGetUnplanned
- OnInsertAltSupplyLocationOnAfterSelectSubstitution subscribes to Codeunit "Order Planning Mgt." OnInsertAltSupplyLocationOnAfterSelectSubstitution

## Procedures

3 local procedures, no public ones.

## 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 5520 "Get Unplanned Demand"](../codeunit/5520.md) (2 calls: `GetUnplannedProdOrderComp → InsertUnplannedDemand`, `GetUnplannedProdOrderComp → UpdateWindow`)
- [Codeunit 6500 "Item Tracking Management"](../codeunit/6500.md) (1 call: `OnInsertDemandLinesOnCopyItemTracking → CopyItemTracking`)
- [Codeunit 99000898 "Mfg. Item Substitution"](../codeunit/99000898.md) (1 call: `OnInsertAltSupplyLocationOnAfterSelectSubstitution → UpdateProdOrderComp`)
- [Page 99000813 "Planned Production Order"](../page/99000813.md) (1 call: `OrderPlanningOnBeforeShowDemandOrder → (object)`)
- [Page 99000829 "Firm Planned Prod. Order"](../page/99000829.md) (1 call: `OrderPlanningOnBeforeShowDemandOrder → (object)`)
- [Page 99000831 "Released Production Order"](../page/99000831.md) (1 call: `OrderPlanningOnBeforeShowDemandOrder → (object)`)

## Recent changes

- 2026-10-02 [#12066 Bugs/remove asm inv mfg clean27 tags for wave2 2026](../../changes/bcapps/12066.md) (main, BC30, obsoletion)

## Across versions

- Present in: BC25-30
- Changed (declaration) in: BC26-27

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: "Prod. Order Line-Planning")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
