---
id: object/codeunit/99000772
type: object
title: Codeunit 99000772 "Prod. Order Route Management"
summary: Codeunit 99000772 "Prod. Order Route Management" in Base Application (Microsoft.Manufacturing.Document). 6 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "24"
  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: bfd6b820e1184b2ab9e5786837d2bb383a1fbf3654efa7d49f4e8328b07dfa3c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/Document/ProdOrderRouteManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Manufacturing/Document/ProdOrderRouteManagement.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: 99000772
name: Prod. Order Route Management
namespace: Microsoft.Manufacturing.Document
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 24
  events: 7
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 0
  called_by: 3
  implements: 0
---

# Codeunit 99000772 "Prod. Order Route Management"

> Codeunit 99000772 "Prod. Order Route Management" in Base Application (Microsoft.Manufacturing.Document). 6 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC24.

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

## Events published

- `OnBeforeCalcPreviousOperations(ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeSetNextOperations(ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeUpdateComponentsBin(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var SkipUpdate: Boolean; var ErrorOccured: Boolean; var AutoUpdateCompBinCode: Boolean)` (integration)
- `OnCalculateOnAfterCalcScrapQtyAndFactor(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var ScrapQty: Decimal; var ScrapFactor: Decimal)` (integration)
- `OnCalculateOnBeforeProdOrderRtngLineLoopIteration(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)` (integration)
  - subscribers: [Codeunit 20520 "Subc. Prod. Order Rtng. Ext."](../codeunit/20520.md) CheckSubcontractingOnCalculateOnBeforeProdOrderRtngLineLoopIteration
- `OnNeedsCalculationOnBeforeFindProdOrderRtngLine(var ProdOrderRoutingLine: Record "Prod. Order Routing Line")` (integration)
- `OnBeforeCheckProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)` (integration)

## Procedures

- `NeedsCalculation(ProductionOrderStatus: Enum "Production Order Status"; ProdOrderNo: Code[20]; RoutingRefNo: Integer; RoutingNo: Code[20]): Boolean`
- `SetNextOperations(ProdOrderLine: Record "Prod. Order Line")`
- `CalcSequenceFromActual(ProdOrderRtngLine: Record "Prod. Order Routing Line"; Direction: Option Forward,Backward)`
- `Calculate(ProdOrderLine: Record "Prod. Order Line")`
- `Check(ProdOrderLine: Record "Prod. Order Line")`
- `UpdateComponentsBin(var FilteredProdOrderRtngLineSet: Record "Prod. Order Routing Line"; IgnoreErrors: Boolean): Boolean`

Plus 11 local procedures.

## Triggers

OnRun

## Called by

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 99000773 "Calculate Prod. Order"](../codeunit/99000773.md) (5 calls: `Calculate → UpdateComponentsBin`, `CalculateRouting → Calculate`, `CalculateRouting → NeedsCalculation`, …)
- [Table 5409 "Prod. Order Routing Line"](../table/5409.md) (4 calls: `CalcStartingEndingDates → CalcSequenceFromActual`, `CalculateRoutingBack → CalcSequenceFromActual`, `CalculateRoutingForward → CalcSequenceFromActual`, …)
- [Codeunit 99000766 "Mfg. Whse. Activity Post"](../codeunit/99000766.md) (1 call: `CheckProdOrderLine → Check`)

## Across versions

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

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