---
id: object/codeunit/99000875
type: object
title: Codeunit 99000875 "Prod. Order Availability Mgt."
summary: Codeunit 99000875 "Prod. Order Availability Mgt." in Base Application (Microsoft.Manufacturing.Document). 9 public procedures, 13 events, 32 event subscribers. Introduced in BC25, still in BC30, changed in BC26-28, BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "25"
  last_changed: "30"
  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: f307fa5bff60dd0095ba109e9ac6c4cc7de0f0657df77f7f438a53701d9a45ac
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/Document/ProdOrderAvailabilityMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Manufacturing/Document/ProdOrderAvailabilityMgt.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
    - change/bcapps/9075
object_type: codeunit
object_id: 99000875
name: Prod. Order Availability Mgt.
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"
  - "28"
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 68
  events: 13
  subscribers: 32
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 9
  called_by: 0
  implements: 0
---

# Codeunit 99000875 "Prod. Order Availability Mgt."

> Codeunit 99000875 "Prod. Order Availability Mgt." in Base Application (Microsoft.Manufacturing.Document). 9 public procedures, 13 events, 32 event subscribers. Introduced in BC25, still in BC30, changed in BC26-28, BC30.

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

## Events published

- `OnBeforeRunProductionOrderPage(var ProductionOrder: Record Microsoft.Manufacturing.Document."Production Order"; var IsHandled: Boolean)` (integration)
- `OnParentIsInPlanningOnAfterReqLineSetFilters(var RequisitionLine: Record "Requisition Line"; var ProdOrderComp: Record Microsoft.Manufacturing.Document."Prod. Order Component")` (integration)
- `OnBeforeShowItemAvailFromProdOrderLine(var Item: Record Item; var ProdOrderLine: Record "Prod. Order Line")` (integration)
- `OnBeforeShowItemAvailFromProdOrderComp(var Item: Record Item; var ProdOrderComp: Record "Prod. Order Component")` (integration)
- `OnAfterTransferProdOrderComp(var InventoryPageData: Record "Inventory Page Data"; var ProductionOrder: Record "Production Order")` (integration)
- `OnAfterTransferFromProdComp(var InventoryEventBuffer: Record "Inventory Event Buffer"; ProdOrderComponent: Record "Prod. Order Component")` (integration)
- `OnAfterTransferFromProdOrder(var InventoryEventBuffer: Record "Inventory Event Buffer"; ProdOrderLine: Record "Prod. Order Line")` (integration)
- `OnAfterTransferFromForecast(var InventoryEventBuffer: Record "Inventory Event Buffer"; ProdForecastEntry: Record "Production Forecast Entry")` (integration, obsolete 27.0)
- `OnBeforeUpdateSchedNeedAvail(var AvailabilityAtDate: Record "Availability at Date"; var Item: Record Item; var IsHandled: Boolean)` (integration)
- `OnBeforeUpdateSchedRcptAvail(var AvailabilityAtDate: Record "Availability at Date"; var Item: Record Item; var IsHandled: Boolean)` (integration)
- `OnBeforeReassignRefOrderNos(OrderPromisingID: Code[20]; var IsHandled: Boolean)` (integration)
- `OnReassignRefOrderNosOnAfterRequisitionLineModifyAll(var RequisitionLine: Record "Requisition Line")` (integration)
- `OnShowCustomProdItemAvailByBOMLevelOnBeforeRunModal(var ItemAvailabilityByBOMLevel: Page "Item Availability by BOM Level"; var ProdOrderLine: Record "Prod. Order Line"; FieldCaption: Text[80]; OldDate: Date)` (integration)

## Event subscriptions

- OnLookupDemandNo subscribes to Page "Demand Overview" OnLookupDemandNo
- OnSourceTypeTextOnFormat subscribes to Page "Demand Overview" OnSourceTypeTextOnFormat
- OnGetDemandDates subscribes to Codeunit "Calc. Availability Overview" OnGetDemandDates
- OnGetSupplyDates subscribes to Codeunit "Calc. Availability Overview" OnGetSupplyDates
- OnGetDemandEntries subscribes to Codeunit "Calc. Availability Overview" OnGetDemandEntries
- OnGetSupplyEntries subscribes to Codeunit "Calc. Availability Overview" OnGetSupplyEntries
- OnCheckItemInRange subscribes to Codeunit "Calc. Availability Overview" OnCheckItemInRange
- OnDemandExist subscribes to Codeunit "Calc. Availability Overview" OnDemandExist
- OnSupplyExist subscribes to Codeunit "Calc. Availability Overview" OnSupplyExist
- OnLookupAvailableInventory subscribes to Table "Availability Info. Buffer" OnLookupAvailableInventory
- OnLookupGrossRequirement subscribes to Table "Availability Info. Buffer" OnLookupGrossRequirement
- OnLookupPlannedOrderReceipt subscribes to Table "Availability Info. Buffer" OnLookupPlannedOrderReceipt
- OnLookupScheduledReceipt subscribes to Table "Availability Info. Buffer" OnLookupScheduledReceipt
- OnAfterGetDocumentEntries subscribes to Codeunit "Calc. Item Availability" OnAfterGetDocumentEntries
- OnAfterShowDocument subscribes to Codeunit "Calc. Item Availability" OnAfterShowDocument
- OnAfterGetSourceReferences subscribes to Codeunit "Calc. Item Availability" OnAfterGetSourceReferences
- OnParentIsInPlanning subscribes to Codeunit "Calc. Item Availability" OnParentIsInPlanning
- OnAfterCalcItemPlanningFields subscribes to Codeunit "Item Availability Forms Mgt" OnAfterCalcItemPlanningFields
- OnTransferToPeriodDetailsElseCase subscribes to Codeunit "Calc. Inventory Page Data" OnTransferToPeriodDetailsElseCase
- OnAfterMakeEntries subscribes to Page "Item Availability Line List" OnAfterMakeEntries
- OnAfterLookupEntries subscribes to Page "Item Availability Line List" OnAfterLookupEntries
- OnAfterCalculateAvailability subscribes to Codeunit "Available to Promise" OnAfterCalculateAvailability
- OnAfterCalcCapableToPromise subscribes to Codeunit "AvailabilityManagement" OnAfterCalcCapableToPromise
- OnCalcScheduledReceiptQty subscribes to Table "Item" OnCalcScheduledReceiptQty
- OnCalcQtyOnComponentLines subscribes to Table "Item" OnCalcQtyOnComponentLines
- OnCalcQtyOnProdOrder subscribes to Table "Item" OnCalcQtyOnProdOrder
- OnCalcPlannedOrderReceiptQty subscribes to Table "Item" OnCalcPlannedOrderReceiptQty
- OnCalcFPOrderReceiptQty subscribes to Table "Item" OnCalcFPOrderReceiptQty
- OnCalcRelOrderReceiptQty subscribes to Table "Item" OnCalcRelOrderReceiptQty
- OnCalcAllItemFieldsOnAfterItemCalcFields subscribes to Codeunit "Available to Promise" OnCalcAllItemFieldsOnAfterItemCalcFields
- OnCalcReservedQtyOnProdOrder subscribes to Table "Item" OnCalcReservedQtyOnProdOrder
- OnRequisitionLineOnBeforeTempPlanningBufferInsert subscribes to Report "Planning Availability" OnRequisitionLineOnBeforeTempPlanningBufferInsert

## Procedures

- `ShowItemAvailFromProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; AvailabilityType: Enum "Item Availability Type")`
- `ShowItemAvailFromProdOrderComp(var ProdOrderComp: Record "Prod. Order Component"; AvailabilityType: Enum "Item Availability Type")`
- `ShowSchedReceipt(var Item: Record Item)`
- `ShowSchedNeed(var Item: Record Item)`
- `TransferFromProdComp(var InventoryEventBuffer: Record "Inventory Event Buffer"; ProdOrderComp: Record "Prod. Order Component")`
- `TransferFromProdOrder(var InventoryEventBuffer: Record "Inventory Event Buffer"; ProdOrderLine: Record "Prod. Order Line")`
- `TransferFromForecast(var InventoryEventBuffer: Record "Inventory Event Buffer"; ProdForecastEntry: Record "Production Forecast Entry"; UnconsumedQtyBase: Decimal; ForecastOnLocation: Boolean)` (obsolete 27.0: Moved back to InventoryEventBuffer)
- `TransferFromForecast(var InventoryEventBuffer: Record "Inventory Event Buffer"; ProdForecastEntry: Record "Production Forecast Entry"; UnconsumedQtyBase: Decimal; ForecastOnLocation: Boolean; ForecastOnVariant: Boolean)` (obsolete 27.0: Moved back to InventoryEventBuffer)
- `ReassignRefOrderNos(OrderPromisingID: Code[20])`

Plus 14 local procedures.

## 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 353 "Item Availability Forms Mgt"](../codeunit/353.md) (13 calls: `ShowItemAvailFromProdOrderComp → FilterItem`, `ShowItemAvailFromProdOrderComp → ShowItemAvailabilityByBOMLevel`, `ShowItemAvailFromProdOrderComp → ShowItemAvailabilityByEvent`, …)
- [Codeunit 5830 "Calc. Availability Overview"](../codeunit/5830.md) (4 calls: `OnGetDemandDates → InsertAvailabilityEntry`, `OnGetDemandEntries → InsertAvailabilityEntry`, `OnGetSupplyDates → InsertAvailabilityEntry`, …)
- [Codeunit 5530 "Calc. Item Availability"](../codeunit/5530.md) (2 calls: `TryGetProdOrderCompDemandEntries → InsertEntry`, `TryGetProdOrderSupplyEntries → InsertEntry`)
- [Codeunit 5790 "Available to Promise"](../codeunit/5790.md) (2 calls: `UpdateSchedNeedAvail → UpdateGrossRequirement`, `UpdateSchedRcptAvail → UpdateScheduledReceipt`)
- [Page 456 "No. Series"](../page/456.md) (1 call: `ReassignRefOrderNos → (object)`)
- [Page 99000813 "Planned Production Order"](../page/99000813.md) (1 call: `RunProductionOrderPage → (object)`)
- [Page 99000829 "Firm Planned Prod. Order"](../page/99000829.md) (1 call: `RunProductionOrderPage → (object)`)
- [Page 99000831 "Released Production Order"](../page/99000831.md) (1 call: `RunProductionOrderPage → (object)`)
- [Page 99000867 "Finished Production Order"](../page/99000867.md) (1 call: `RunProductionOrderPage → (object)`)

## Recent changes

- 2026-10-02 [#12066 Bugs/remove asm inv mfg clean27 tags for wave2 2026](../../changes/bcapps/12066.md) (main, BC30, obsoletion)
- 2026-08-04 [#9075 Bug 598820: Item Availability by Event from Prod. Order ignores demand after Due Date](../../changes/bcapps/9075.md) (main, BC30, fix)

## Across versions

- Present in: BC25-30
- Changed (declaration) in: BC26-28, BC30

## Deprecations

- procedure OnRequisitionLineOnBeforeTempPlanningBufferInsert: guarded (#if not CLEAN27)
- procedure OnAfterTransferFromForecast: Pending 27.0 (#if not CLEAN27), "Moved back to InventoryEventBuffer"
- procedure TransferFromForecast: Pending 27.0 (#if not CLEAN27), "Moved back to InventoryEventBuffer"
- procedure TransferFromForecast: Pending 27.0 (#if not CLEAN27), "Moved back to InventoryEventBuffer"

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