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

# Codeunit 99000840 "Plng. Component-Reserve"

> Codeunit 99000840 "Plng. Component-Reserve" in Base Application (Microsoft.Inventory.Planning). 15 public procedures, 6 events, 17 event subscribers. Present since at least BC23, still in BC30, changed in BC24-30.

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

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Reservation Entry" = rimd, TableData "Action Message Entry" = rd |

## Events published

- `OnAfterCallItemTracking(var PlanningComponent: Record "Planning Component")` (integration)
- `OnVerifyChangeOnBeforeHasError(NewPlanningComponent: Record "Planning Component"; OldPlanningComponent: Record "Planning Component"; var HasError: Boolean; var ShowError: Boolean)` (integration)
- `OnSetSourceForReservationOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry"; PlanningComponent: Record "Planning Component")` (integration, obsolete 27.0)
- `OnAfterInitFromProdPlanningComp(var TrackingSpecification: Record "Tracking Specification"; PlanningComponent: Record "Planning Component")` (integration)
- `OnCreateReservationOnBeforeCreateReservEntry(var PlanningComponent: Record "Planning Component"; var Quantity: Decimal; var QuantityBase: Decimal; var ReservationEntry: Record "Reservation Entry"; var FromTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean; ExpectedReceiptDate: Date; Description: Text[100]; ShipmentDate: Date)` (integration)
- `OnUpdateDerivedTrackingOnAfterSetReservationEntryFilters(var ReservationEntry: Record "Reservation Entry"; PlanningComponent: Record "Planning Component")` (integration)
  - subscribers: [Codeunit 99000838 "Prod. Order Comp.-Reserve"](../codeunit/99000838.md) OnUpdateDerivedTrackingOnAfterSetReservationEntryFilters

## Event subscriptions

- OnGetQtyPerUOMFromSourceRecRef subscribes to Page "Reservation" OnGetQtyPerUOMFromSourceRecRef
- ReservationOnSetReservSource subscribes to Page "Reservation" OnSetReservSource
- ReservationOnDrillDownTotalQuantity subscribes to Page "Reservation" OnDrillDownTotalQuantity
- ReservationOnFilterReservEntry subscribes to Page "Reservation" OnFilterReservEntry
- ReservationOnRelatesToEntrySummary subscribes to Page "Reservation" OnAfterRelatesToSummEntry
- ItemLedgerEntryOnDrillDownTotalQuantity subscribes to Codeunit "Item Ledger Entry-Reserve" OnDrillDownTotalQuantity
- OnCreateReservation subscribes to Codeunit "Reservation Management" OnCreateReservation
- OnLookupDocument subscribes to Codeunit "Reservation Management" OnLookupDocument
- OnLookupLine subscribes to Codeunit "Reservation Management" OnLookupLine
- OnFilterReservFor subscribes to Codeunit "Reservation Management" OnFilterReservFor
- OnCalculateRemainingQty subscribes to Codeunit "Reservation Management" OnCalculateRemainingQty
- OnGetSourceRecordValue subscribes to Codeunit "Reservation Management" OnGetSourceRecordValue
- CheckSourceTypeSubtype subscribes to Codeunit "Create Reserv. Entry" OnCheckSourceTypeSubtype
- OnRevertDateToSourceDate subscribes to Codeunit "Reservation Engine Mgt." OnRevertDateToSourceDate
- OnGetActivePointerFieldsOnBeforeAssignArrayValues subscribes to Codeunit "Reservation Engine Mgt." OnGetActivePointerFieldsOnBeforeAssignArrayValues
- OnAfterCreateText subscribes to Codeunit "Reservation Engine Mgt." OnCreateText
- ReservationEntryOnUpdateSourceCost subscribes to Table "Reservation Entry" OnUpdateSourceCost

## Procedures

- `CreateReservation(PlanningComponent: Record "Planning Component"; Description: Text[100]; ExpectedReceiptDate: Date; Quantity: Decimal; QuantityBase: Decimal; ForReservEntry: Record "Reservation Entry")`
- `CreateBindingReservation(PlanningComponent: Record "Planning Component"; Description: Text[100]; ExpectedReceiptDate: Date; Quantity: Decimal; QuantityBase: Decimal)`
- `CreateReservationSetFrom(TrackingSpecification: Record "Tracking Specification")`
- `SetBinding(Binding: Enum "Reservation Binding")`
- `Caption(PlanningComponent: Record "Planning Component"): Text`
- `FindReservEntry(PlanningComponent: Record "Planning Component"; var ReservationEntry: Record "Reservation Entry"): Boolean`
- `VerifyChange(var NewPlanningComponent: Record "Planning Component"; var OldPlanningComponent: Record "Planning Component")`
- `VerifyQuantity(var NewPlanningComponent: Record "Planning Component"; var OldPlanningComponent: Record "Planning Component")`
- `TransferReservations(var OldPlanningComponent: Record "Planning Component"; var OldReservationEntry: Record "Reservation Entry"; TransferAll: Boolean; TransferQty: Decimal; QtyPerUOM: Decimal; SrcType: Integer; SrcSubtype: Option; SrcID: Code[20]; SrcBatchName: Code[10]; SrcProdOrderLine: Integer; SrcRefNo: Integer)`
- `DeleteLine(var PlanningComponent: Record "Planning Component")`
- `UpdateDerivedTracking(var PlanningComponent: Record "Planning Component")`
- `Block(SetBlocked: Boolean)`
- `CallItemTracking(var PlanningComponent: Record "Planning Component")`
- `BindToTracking(PlanningComponent: Record "Planning Component"; TrackingSpecification: Record "Tracking Specification"; Description: Text[100]; ExpectedDate: Date; ReservQty: Decimal; ReservQtyBase: Decimal)`
- `InitFromProdPlanningComp(var TrackingSpecification: Record "Tracking Specification"; var PlanningComponent: Record "Planning Component")`

Plus 5 local procedures.

## Triggers

OnRun

## 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 99000845 "Reservation Management"](../codeunit/99000845.md) (12 calls: `DeleteLine → DeleteReservEntries`, `DeleteLine → SetItemTrackingHandling`, `DeleteLine → SetReservSource`, …)
- [Codeunit 99000830 "Create Reserv. Entry"](../codeunit/99000830.md) (5 calls: `CreateReservation → CreateReservEntry`, `CreateReservation → CreateReservEntryFor`, `CreateReservation → CreateReservEntryFrom`, …)
- [Codeunit 5402 "Unit of Measure Management"](../codeunit/5402.md) (1 call: `InitFromProdPlanningComp → QtyRndPrecision`)
- [Codeunit 99000841 "Item Ledger Entry-Reserve"](../codeunit/99000841.md) (1 call: `ItemLedgerEntryOnDrillDownTotalQuantity → DrillDownTotalQuantity`)
- [Page 517 "Requisition Lines"](../page/517.md) (1 call: `OnLookupDocument → (object)`)

## Called by

- [Table 99000829 "Planning Component"](../table/99000829.md) (5 calls: `BlockDynamicTracking → Block`, `OnDelete → DeleteLine`, `OnInsert → VerifyQuantity`, …)
- [Codeunit 926 "Assembly Line-Reserve"](../codeunit/926.md) (2 calls: `TransferPlanningCompToAsmLine → FindReservEntry`, `TransferPlanningCompToAsmLine → TransferReservations`)
- [Codeunit 99000838 "Prod. Order Comp.-Reserve"](../codeunit/99000838.md) (2 calls: `TransferPlanningCompToPOComp → FindReservEntry`, `TransferPlanningCompToPOComp → TransferReservations`)
- [Codeunit 945 "Asm. Carry Out Action"](../codeunit/945.md) (1 call: `AsmOrderChgAndReshedule → UpdateDerivedTracking`)
- [Codeunit 99000809 "Planning Line Management"](../codeunit/99000809.md) (1 call: `CheckMultiLevelStructure → BindToTracking`)
- [Codeunit 99000815 "Reservation-Check Date Confl."](../codeunit/99000815.md) (1 call: `PlanningComponentCheck → FindReservEntry`)
- [Codeunit 99000886 "Capable to Promise"](../codeunit/99000886.md) (1 call: `BindToRequisition → BindToTracking`)

## 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: BC23-30
- Changed (declaration) in: BC24-30

## Deprecations

- procedure OnSetSourceForReservationOnBeforeUpdateReservation: Pending 27.0 (#if not CLEAN27), "This event is never raised."

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: "Plng. Component-Reserve")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
