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

# Codeunit 300 "Reservation Worksheet Mgt."

> Codeunit 300 "Reservation Worksheet Mgt." in Base Application (Microsoft.Inventory.Tracking). 18 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC25.

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

## Events published

- `OnBeforeCreateSourceDocumentText(var ReservationWkshLine: Record "Reservation Wksh. Line"; var LineText: Text[100])` (integration)
  - subscribers: [Codeunit 6485 "Serv. Get Demand To Reserve"](../codeunit/6485.md) OnBeforeCreateSourceDocumentText, [Codeunit 929 "Asm. Get Demand To Reserve"](../codeunit/929.md) OnBeforeCreateSourceDocumentText, [Codeunit 99000839 "Sales Get Demand To Reserve"](../codeunit/99000839.md) OnBeforeCreateSourceDocumentText, [Codeunit 99000846 "Trans. Get Demand To Reserve"](../codeunit/99000846.md) OnBeforeCreateSourceDocumentText, [Codeunit 99000847 "Job Planning Line Get Demand"](../codeunit/99000847.md) OnBeforeCreateSourceDocumentText, [Codeunit 99000858 "Mfg. Get Demand To Reserve"](../codeunit/99000858.md) OnBeforeCreateSourceDocumentText
- `OnGetSourceDocumentLine(var ReservationWkshLine: Record "Reservation Wksh. Line"; var RecordVariant: Variant; var MaxQtyToReserve: Decimal; var MaxQtyToReserveBase: Decimal; var AvailabilityDate: Date)` (integration)
  - subscribers: [Codeunit 6485 "Serv. Get Demand To Reserve"](../codeunit/6485.md) OnGetSourceDocumentLine, [Codeunit 929 "Asm. Get Demand To Reserve"](../codeunit/929.md) OnGetSourceDocumentLine, [Codeunit 99000839 "Sales Get Demand To Reserve"](../codeunit/99000839.md) OnGetSourceDocumentLine, [Codeunit 99000846 "Trans. Get Demand To Reserve"](../codeunit/99000846.md) OnGetSourceDocumentLine, [Codeunit 99000847 "Job Planning Line Get Demand"](../codeunit/99000847.md) OnGetSourceDocumentLine, [Codeunit 99000858 "Mfg. Get Demand To Reserve"](../codeunit/99000858.md) OnGetSourceDocumentLine
- `OnGetSourceDocumentLineQuantities(var ReservationWkshLine: Record "Reservation Wksh. Line"; var OutstandingQty: Decimal; var ReservedQty: Decimal; var ReservedFromStockQty: Decimal)` (integration)
  - subscribers: [Codeunit 6485 "Serv. Get Demand To Reserve"](../codeunit/6485.md) OnGetSourceDocumentLineQuantities, [Codeunit 929 "Asm. Get Demand To Reserve"](../codeunit/929.md) OnGetSourceDocumentLineQuantities, [Codeunit 99000839 "Sales Get Demand To Reserve"](../codeunit/99000839.md) OnGetSourceDocumentLineQuantities, [Codeunit 99000846 "Trans. Get Demand To Reserve"](../codeunit/99000846.md) OnGetSourceDocumentLineQuantities, [Codeunit 99000847 "Job Planning Line Get Demand"](../codeunit/99000847.md) OnGetSourceDocumentLineQuantities, [Codeunit 99000858 "Mfg. Get Demand To Reserve"](../codeunit/99000858.md) OnGetSourceDocumentLineQuantities
- `OnShowSourceDocument(var ReservationWkshLine: Record "Reservation Wksh. Line")` (integration)
  - subscribers: [Codeunit 6485 "Serv. Get Demand To Reserve"](../codeunit/6485.md) OnShowSourceDocument, [Codeunit 929 "Asm. Get Demand To Reserve"](../codeunit/929.md) OnShowSourceDocument, [Codeunit 99000839 "Sales Get Demand To Reserve"](../codeunit/99000839.md) OnShowSourceDocument, [Codeunit 99000846 "Trans. Get Demand To Reserve"](../codeunit/99000846.md) OnShowSourceDocument, [Codeunit 99000847 "Job Planning Line Get Demand"](../codeunit/99000847.md) OnShowSourceDocument, [Codeunit 99000858 "Mfg. Get Demand To Reserve"](../codeunit/99000858.md) OnShowSourceDocument
- `OnShowReservationEntries(var ReservationWkshLine: Record "Reservation Wksh. Line")` (integration)
  - subscribers: [Codeunit 6485 "Serv. Get Demand To Reserve"](../codeunit/6485.md) OnShowReservationEntries, [Codeunit 929 "Asm. Get Demand To Reserve"](../codeunit/929.md) OnShowReservationEntries, [Codeunit 99000839 "Sales Get Demand To Reserve"](../codeunit/99000839.md) OnShowReservationEntries, [Codeunit 99000846 "Trans. Get Demand To Reserve"](../codeunit/99000846.md) OnShowReservationEntries, [Codeunit 99000847 "Job Planning Line Get Demand"](../codeunit/99000847.md) OnShowReservationEntries, [Codeunit 99000858 "Mfg. Get Demand To Reserve"](../codeunit/99000858.md) OnShowReservationEntries
- `OnShowStatistics(var ReservationWkshLine: Record "Reservation Wksh. Line")` (integration)
  - subscribers: [Codeunit 6485 "Serv. Get Demand To Reserve"](../codeunit/6485.md) OnShowStatistics, [Codeunit 929 "Asm. Get Demand To Reserve"](../codeunit/929.md) OnShowStatistics, [Codeunit 99000839 "Sales Get Demand To Reserve"](../codeunit/99000839.md) OnShowStatistics, [Codeunit 99000846 "Trans. Get Demand To Reserve"](../codeunit/99000846.md) OnShowStatistics, [Codeunit 99000847 "Job Planning Line Get Demand"](../codeunit/99000847.md) OnShowStatistics, [Codeunit 99000858 "Mfg. Get Demand To Reserve"](../codeunit/99000858.md) OnShowStatistics
- `OnCalculateDemandOnAfterSync(BatchName: Code[10]; var GetDemandToReserve: Report "Get Demand To Reserve")` (integration)
  - subscribers: [Codeunit 6485 "Serv. Get Demand To Reserve"](../codeunit/6485.md) SyncServiceOrderLines, [Codeunit 929 "Asm. Get Demand To Reserve"](../codeunit/929.md) SyncAssemblyOrderLines, [Codeunit 99000839 "Sales Get Demand To Reserve"](../codeunit/99000839.md) SyncSalesOrderLines, [Codeunit 99000846 "Trans. Get Demand To Reserve"](../codeunit/99000846.md) SyncTransferOrderLines, [Codeunit 99000847 "Job Planning Line Get Demand"](../codeunit/99000847.md) SyncJobPlanningLines, [Codeunit 99000858 "Mfg. Get Demand To Reserve"](../codeunit/99000858.md) SyncProdOrderComponents

## Procedures

- `LookupName(var CurrentJnlBatchName: Code[10]; var ReservationWkshLine: Record "Reservation Wksh. Line")`
- `SetName(CurrentJnlBatchName: Code[10]; var ReservationWkshLine: Record "Reservation Wksh. Line")`
- `CheckName(CurrentJnlBatchName: Code[10])`
- `OpenJnl(var CurrentJnlBatchName: Code[10]; var ReservationWkshLine: Record "Reservation Wksh. Line")`
- `CalculateDemand(BatchName: Code[10])`
- `CreateSourceDocumentText(ReservationWkshLine: Record "Reservation Wksh. Line"): Text[100]`
- `GetSourceDocumentLine(ReservationWkshLine: Record "Reservation Wksh. Line"; var RecordVariant: Variant; var MaxQtyToReserve: Decimal; var MaxQtyToReserveBase: Decimal; var AvailabilityDate: Date)`
- `GetSourceDocumentLineQuantities(ReservationWkshLine: Record "Reservation Wksh. Line"; var OutstandingQty: Decimal; var ReservedQty: Decimal; var ReservedFromStockQty: Decimal)`
- `ShowSourceDocument(ReservationWkshLine: Record "Reservation Wksh. Line")`
- `ShowReservationEntries(ReservationWkshLine: Record "Reservation Wksh. Line")`
- `ShowStatistics(ReservationWkshLine: Record "Reservation Wksh. Line")`
- `GetAvailRemainingQtyOnItemLedgerEntry(var AvailableQtyBase: Decimal; var InventoryQtyBase: Decimal; var ReservedQtyBase: Decimal; var WarehouseQtyBase: Decimal; ItemNo: Code[20]; VariantCode: Code[10]; LocationCode: Code[10])`
- `CarryOutAction(var ReservationWkshLine: Record "Reservation Wksh. Line")`
- `LogChanges(ReservationWkshLine: Record "Reservation Wksh. Line"; Qty: Decimal)`
- `AllocateQuantity(var ReservationWkshLine: Record "Reservation Wksh. Line")`
- `DeleteAllocation(var ReservationWkshLine: Record "Reservation Wksh. Line")`
- `AcceptSelected(var ReservationWkshLine: Record "Reservation Wksh. Line")`
- `CreateTransferOrder(var TransferHeader: Record "Transfer Header"; ReservationWkshLine: Record "Reservation Wksh. Line"; LocationFromCode: Code[10])`

Plus 4 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 7314 "Warehouse Availability Mgt."](../codeunit/7314.md) (3 calls: `GetAvailRemainingQtyOnItemLedgerEntry → CalcQtyOnOutboundBins`, `GetAvailRemainingQtyOnItemLedgerEntry → CalcQtyOnSpecialBinsOnLocation`, `GetAvailRemainingQtyOnItemLedgerEntry → GetOutboundBinsOnBasicWarehouseLocation`)

## Called by

- [Page 305 "Reservation Worksheet"](../page/305.md) (3 calls: `CurrentWkshBatchNameOnAfterValidate → SetName`, `OnOpenPage → OpenJnl`, `SetCurrentWkshBatchName → SetName`)
- [Report 300 "Carry Out Reservation"](../report/300.md) (2 calls: `Reserve → GetSourceDocumentLine`, `Reserve → LogChanges`)
- [Codeunit 6485 "Serv. Get Demand To Reserve"](../codeunit/6485.md) (1 call: `SyncServiceOrderLines → GetAvailRemainingQtyOnItemLedgerEntry`)
- [Codeunit 929 "Asm. Get Demand To Reserve"](../codeunit/929.md) (1 call: `SyncAssemblyOrderLines → GetAvailRemainingQtyOnItemLedgerEntry`)
- [Codeunit 99000839 "Sales Get Demand To Reserve"](../codeunit/99000839.md) (1 call: `SyncSalesOrderLines → GetAvailRemainingQtyOnItemLedgerEntry`)
- [Codeunit 99000846 "Trans. Get Demand To Reserve"](../codeunit/99000846.md) (1 call: `SyncTransferOrderLines → GetAvailRemainingQtyOnItemLedgerEntry`)
- [Codeunit 99000847 "Job Planning Line Get Demand"](../codeunit/99000847.md) (1 call: `SyncJobPlanningLines → GetAvailRemainingQtyOnItemLedgerEntry`)
- [Codeunit 99000858 "Mfg. Get Demand To Reserve"](../codeunit/99000858.md) (1 call: `SyncProdOrderComponents → GetAvailRemainingQtyOnItemLedgerEntry`)
- [Page 330 "Reservation Wksh. Factbox"](../page/330.md) (1 call: `OnAfterGetRecord → GetSourceDocumentLineQuantities`)

## Across versions

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

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