---
id: object/codeunit/5854
type: object
title: Codeunit 5854 "Invt. Doc. Line-Reserve"
summary: Codeunit 5854 "Invt. Doc. Line-Reserve" in Base Application (Microsoft.Inventory.Document). 16 public procedures, 2 events, 18 event subscribers. Present since at least BC23, still in BC30, changed in BC25-26.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "26"
  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: f729a2f002cc2ef1930923f87ac62fbfb49180cdd13205db40d5563a984ea000
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Document/InvtDocLineReserve.Codeunit.al
    title: src/Layers/W1/BaseApp/Inventory/Document/InvtDocLineReserve.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ru
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 5854
name: Invt. Doc. Line-Reserve
namespace: Microsoft.Inventory.Document
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
  - "26"
source_major: "29"
obsolete: null
countries:
  - ru
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 45
  events: 2
  subscribers: 18
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 8
  called_by: 6
  implements: 0
---

# Codeunit 5854 "Invt. Doc. Line-Reserve"

> Codeunit 5854 "Invt. Doc. Line-Reserve" in Base Application (Microsoft.Inventory.Document). 16 public procedures, 2 events, 18 event subscribers. Present since at least BC23, still in BC30, changed in BC25-26.

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

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Reservation Entry" = rimd |

## Events published

- `OnBeforeVerifyChange(var NewInvtDocumentLine: Record "Invt. Document Line"; var OldInvtDocumentLine: Record "Invt. Document Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeDeleteLine(var InvtDocumentLine: Record "Invt. Document Line"; DeleteItemTracking: Boolean; Blocked: Boolean; var IsHandled: Boolean)` (integration)

## Event subscriptions

- OnGetQtyPerUOMFromSourceRecRef subscribes to Page "Reservation" OnGetQtyPerUOMFromSourceRecRef
- OnSetReservSource subscribes to Page "Reservation" OnSetReservSource
- OnDrillDownTotalQuantity subscribes to Page "Reservation" OnDrillDownTotalQuantity
- OnFilterReservEntry subscribes to Page "Reservation" OnFilterReservEntry
- OnRelatesToEntrySummary subscribes to Page "Reservation" OnAfterRelatesToSummEntry
- OnDrillDownTotalQuantityElseCase subscribes to Codeunit "Item Ledger Entry-Reserve" OnDrillDownTotalQuantityElseCase
- 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
- OnUpdateStatistics subscribes to Codeunit "Reservation Management" OnUpdateStatistics
- OnLookupReserved subscribes to Page "Reservation Entries" OnLookupReserved
- OnAfterAutoReserveOneLine subscribes to Codeunit "Reservation Management" OnAfterAutoReserveOneLine
- OnGetActivePointerFieldsOnBeforeAssignArrayValues subscribes to Codeunit "Reservation Engine Mgt." OnGetActivePointerFieldsOnBeforeAssignArrayValues
- OnAfterCreateText subscribes to Codeunit "Reservation Engine Mgt." OnCreateText
- OnBeforeCheckApplyFromItemEntrySourceType subscribes to Table "Tracking Specification" OnBeforeCheckApplyFromItemEntrySourceType

## Procedures

- `CreateReservation(var InvtDocumentLine: Record "Invt. Document Line"; Description: Text[100]; ExpectedReceiptDate: Date; Quantity: Decimal; QuantityBase: Decimal; ForReservationEntry: Record "Reservation Entry")`
- `CreateReservationSetFrom(TrackingSpecification: Record "Tracking Specification")`
- `FilterReservFor(var FilterReservationEntry: Record "Reservation Entry"; InvtDocumentLine: Record "Invt. Document Line")`
- `Caption(InvtDocumentLine: Record "Invt. Document Line"): Text`
- `FindReservEntry(InvtDocumentLine: Record "Invt. Document Line"; var ReservationEntry: Record "Reservation Entry"): Boolean`
- `VerifyChange(var NewInvtDocumentLine: Record "Invt. Document Line"; var OldInvtDocumentLine: Record "Invt. Document Line")`
- `VerifyQuantity(var NewInvtDocumentLine: Record "Invt. Document Line"; var OldInvtDocumentLine: Record "Invt. Document Line")`
- `TransferInvtDocToItemJnlLine(var InvtDocumentLine: Record "Invt. Document Line"; var ItemJournalLine: Record "Item Journal Line"; ReceiptQty: Decimal)`
- `RenameLine(var NewInvtDocumentLine: Record "Invt. Document Line"; var OldInvtDocumentLine: Record "Invt. Document Line")`
- `DeleteLine(var InvtDocumentLine: Record "Invt. Document Line")`
- `AssignForPlanning(var InvtDocumentLine: Record "Invt. Document Line")`
- `Block(SetBlocked: Boolean)`
- `CallItemTracking(var InvtDocumentLine: Record "Invt. Document Line")`
- `CallItemTracking2(var InvtDocumentLine: Record "Invt. Document Line"; var SecondSourceQuantityArray: array[3] of Decimal)`
- `DeleteLineConfirm(var InvtDocumentLine: Record "Invt. Document Line"): Boolean`
- `InitFromInvtDocLine(var TrackingSpecification: Record "Tracking Specification"; var InvtDocLine: Record "Invt. Document Line")`

Plus 9 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) (16 calls: `AutoInvtDocLineReserve → CopySign`, `AutoInvtDocLineReserve → CreateReservation`, `AutoInvtDocLineReserve → GetAvailabilityFilter`, …)
- [Codeunit 99000830 "Create Reserv. Entry"](../codeunit/99000830.md) (4 calls: `CreateReservation → CreateReservEntry`, `CreateReservation → CreateReservEntryFor`, `CreateReservation → CreateReservEntryFrom`, …)
- [Codeunit 99000831 "Reservation Engine Mgt."](../codeunit/99000831.md) (3 calls: `RenameLine → RenamePointer`, `TransferInvtDocToItemJnlLine → InitRecordSet`, `TransferInvtDocToItemJnlLine → NEXTRecord`)
- [Codeunit 5402 "Unit of Measure Management"](../codeunit/5402.md) (1 call: `AutoInvtDocLineReserve → QtyRndPrecision`)
- [Codeunit 7312 "Create Pick"](../codeunit/7312.md) (1 call: `OnDrillDownTotalQuantityElseCase → CheckOutBound`)
- [Page 6561 "Invt. Receipt"](../page/6561.md) (1 call: `OnLookupDocument → (object)`)
- [Page 6564 "Invt. Shipment"](../page/6564.md) (1 call: `OnLookupDocument → (object)`)
- [Page 6774 "Invt. Document Lines"](../page/6774.md) (1 call: `ShowSourceLines → (object)`)

## Called by

- [Table 5851 "Invt. Document Line"](../table/5851.md) (4 calls: `OnDelete → DeleteLine`, `OnInsert → VerifyQuantity`, `OnModify → VerifyChange`, …)
- [Page 6562 "Invt. Receipt Subform"](../page/6562.md) (2 calls: `OnDeleteRecord → DeleteLine`, `OnDeleteRecord → DeleteLineConfirm`)
- [Page 6565 "Invt. Shipment Subform"](../page/6565.md) (2 calls: `OnDeleteRecord → DeleteLine`, `OnDeleteRecord → DeleteLineConfirm`)
- [Codeunit 5850 "Invt. Doc.-Post Receipt"](../codeunit/5850.md) (1 call: `PostItemJnlLine → TransferInvtDocToItemJnlLine`)
- [Codeunit 5851 "Invt. Doc.-Post Shipment"](../codeunit/5851.md) (1 call: `PostItemJnlLine → TransferInvtDocToItemJnlLine`)
- [Codeunit 99000815 "Reservation-Check Date Confl."](../codeunit/99000815.md) (1 call: `InvtDocLineCheck → FindReservEntry`)

## Across versions

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

## Countries that replace it

[RU](../../localizations/ru.md)

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