---
id: object/codeunit/99000842
type: object
title: Codeunit 99000842 "Service Line-Reserve"
summary: Codeunit 99000842 "Service Line-Reserve" in Base Application (Microsoft.Service.Document). 22 public procedures, 13 events, 33 event subscribers. Present since at least BC23, still in BC30, changed in BC24-28, BC30.
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: 6b45068bd3146679aea3606f0bacf4a9d390f1aa950188a067f2c61a68ff667c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Document/ServiceLineReserve.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Document/ServiceLineReserve.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/12290
object_type: codeunit
object_id: 99000842
name: Service Line-Reserve
namespace: Microsoft.Service.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"
  - "25"
  - "26"
  - "27"
  - "28"
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 81
  events: 13
  subscribers: 33
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 10
  called_by: 14
  implements: 0
---

# Codeunit 99000842 "Service Line-Reserve"

> Codeunit 99000842 "Service Line-Reserve" in Base Application (Microsoft.Service.Document). 22 public procedures, 13 events, 33 event subscribers. Present since at least BC23, still in BC30, changed in BC24-28, BC30.

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

## Properties

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

## Events published

- `OnBeforeTransServLineToItemJnlLine(var ServLine: Record "Service Line"; var ItemJnlLine: Record "Item Journal Line"; TransferQty: Decimal; var CheckApplFromItemEntry: Boolean; var Result: Decimal; var IsHandled: Boolean)` (integration)
- `OnTransServLineToItemJnlLineOnBeforeTransferReservationEntry(var ReservationEntry: Record "Reservation Entry"; var ServiceLine: Record "Service Line"; var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnVerifyChangeOnBeforeHasError(NewServiceLine: Record "Service Line"; OldServiceLine: Record "Service Line"; var HasError: Boolean; var ShowError: Boolean)` (integration)
- `OnCallItemTrackingOnBeforeItemTrackingLinesRunModal(var ServiceLine: Record "Service Line"; var ItemTrackingLines: Page "Item Tracking Lines")` (integration)
- `OnBeforeVerifyChange(var NewServiceLine: Record "Service Line"; var OldServiceLine: Record "Service Line"; var IsHandled: Boolean)` (integration)
- `OnAfterReservQuantity(ServiceLine: Record "Service Line"; var QtyToReserve: Decimal; var QtyToReserveBase: Decimal)` (integration)
- `OnTransServLineToServLineOnBeforeCreateReservEntry(OldReservationEntry: Record "Reservation Entry"; OldServiceLine: Record "Service Line"; var TransferQty: Decimal; var IsHandled: Boolean)` (integration)
- `OnCreateReservationOnBeforeCreateReservEntry(var ServiceLine: Record "Service Line"; var Quantity: Decimal; var QuantityBase: Decimal; var ForReservEntry: Record "Reservation Entry"; var IsHandled: Boolean; var FromTrackingSpecification: Record "Tracking Specification"; ExpectedReceiptDate: Date; Description: Text[100]; ShipmentDate: Date)` (integration)
- `OnAfterCreateReservation(var ServiceLine: Record "Service Line")` (integration)
- `OnBeforeAutoReserveServLine(ReservSummEntryNo: Integer; var RemainingQtyToReserve: Decimal; var RemainingQtyToReserveBase: Decimal; Description: Text[100]; AvailabilityDate: Date; var IsReserved: Boolean; Search: Text[1]; NextStep: Integer; CalcReservEntry: Record "Reservation Entry")` (integration)
- `OnSetSourceForReservationOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry"; ServiceLine: Record "Service Line")` (integration, obsolete 27.0)
- `OnAfterInitFromServLine(var TrackingSpecification: Record "Tracking Specification"; ServiceLine: Record "Service Line")` (integration)
- `OnSetServLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry"; ServiceLine: Record Microsoft.Service.Document."Service Line")` (integration)

## 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
- OnUpdateStatistics subscribes to Codeunit "Reservation Management" OnUpdateStatistics
- OnLookupReserved subscribes to Page "Reservation Entries" OnLookupReserved
- OnAfterAutoReserveOneLine subscribes to Codeunit "Reservation Management" OnAfterAutoReserveOneLine
- OnAutoTrackOnCheckSourceType subscribes to Codeunit "Reservation Management" OnAutoTrackOnCheckSourceType
- OnTestItemType subscribes to Codeunit "Reservation Management" OnTestItemType
- OnAutoReserveOnBeforeStopReservation subscribes to Codeunit "Reservation Management" OnAutoReserveOnBeforeStopReservation
- OnRevertDateToSourceDate subscribes to Codeunit "Reservation Engine Mgt." OnRevertDateToSourceDate
- OnGetActivePointerFieldsOnBeforeAssignArrayValues subscribes to Codeunit "Reservation Engine Mgt." OnGetActivePointerFieldsOnBeforeAssignArrayValues
- OnAfterCreateText subscribes to Codeunit "Reservation Engine Mgt." OnCreateText
- OnBeforeCheckApplyFromItemEntrySourceType subscribes to Table "Tracking Specification" OnBeforeCheckApplyFromItemEntrySourceType
- OnBeforeSummEntryNo subscribes to Table "Reservation Entry" OnAfterSummEntryNo
- ReservationEntryOnUpdateSourceCost subscribes to Table "Reservation Entry" OnUpdateSourceCost
- OnReserveBindingOrder subscribes to Table "Requisition Line" OnReserveBindingOrder
- OnReserveBindingOrderToPurch subscribes to Codeunit "Req. Wksh.-Make Order" OnReserveBindingOrderToPurch
- OrderTrackingManagementOnSetSourceRecord subscribes to Codeunit "OrderTrackingManagement" OnSetSourceRecord
- OnInsertOrderTrackingEntry subscribes to Codeunit "OrderTrackingManagement" OnInsertOrderTrackingEntry
- OnCarryOutReservationOtherDemandType subscribes to Report "Carry Out Reservation" OnCarryOutReservationOtherDemandType
- OnGetSourceShipmentDate subscribes to Table "Tracking Specification" OnGetSourceShipmentDate
- OnAfterSetValueArrayForReservation subscribes to Codeunit "Reservation Management" OnAfterSetValueArrayForReservation
- OnAfterSetValueArrayForOrderTracking subscribes to Codeunit "Reservation Management" OnAfterSetValueArrayForOrderTracking
- OnSetSourceForServiceLine subscribes to Codeunit "Reservation Management" OnSetSourceForServiceLine

## Procedures

- `CreateReservation(ServiceLine: Record "Service Line"; Description: Text[100]; ExpectedReceiptDate: Date; Quantity: Decimal; QuantityBase: Decimal; ForReservationEntry: Record "Reservation Entry")`
- `CreateBindingReservation(ServiceLine: Record "Service Line"; Description: Text[100]; ExpectedReceiptDate: Date; Quantity: Decimal; QuantityBase: Decimal)`
- `CreateReservationSetFrom(TrackingSpecification: Record "Tracking Specification")`
- `SetBinding(Binding: Enum "Reservation Binding")`
- `Caption(ServiceLine: Record "Service Line"): Text`
- `FindReservEntry(ServiceLine: Record "Service Line"; var ReservationEntry: Record "Reservation Entry"): Boolean`
- `ReservQuantity(ServiceLine: Record "Service Line"; var QtyToReserve: Decimal; var QtyToReserveBase: Decimal)`
- `GetReservedQtyFromInventory(ServiceLine: Record "Service Line"): Decimal`
- `GetReservedQtyFromInventory(ServiceHeader: Record "Service Header"): Decimal`
- `VerifyChange(var NewServiceLine: Record "Service Line"; var OldServiceLine: Record "Service Line")`
- `VerifyQuantity(var NewServiceLine: Record "Service Line"; var OldServiceLine: Record "Service Line")`
- `DeleteLineConfirm(var ServiceLine: Record "Service Line"): Boolean`
- `DeleteLine(var ServiceLine: Record "Service Line")`
- `CallItemTracking(var ServiceLine: Record "Service Line")`
- `TransServLineToServLine(var OldServiceLine: Record "Service Line"; var NewServiceLine: Record "Service Line"; TransferQty: Decimal)`
- `RetrieveInvoiceSpecification(var ServiceLine: Record "Service Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; Consume: Boolean): Boolean`
- `DeleteInvoiceSpecFromHeader(ServiceHeader: Record "Service Header")`
- `TransServLineToItemJnlLine(var ServiceLine: Record "Service Line"; var ItemJournalLine: Record "Item Journal Line"; TransferQty: Decimal; var CheckApplFromItemEntry: Boolean): Decimal`
- `UpdateItemTrackingAfterPosting(ServiceHeader: Record "Service Header")`
- `BindToTracking(ServiceLine: Record "Service Line"; TrackingSpecification: Record "Tracking Specification"; Description: Text[100]; ExpectedDate: Date; ReservQty: Decimal; ReservQtyBase: Decimal)`
- `InitFromServLine(var TrackingSpecification: Record "Tracking Specification"; var ServiceLine: Record "Service Line"; Consume: Boolean)`
- `ServiceInvLineCheck(ServiceLine: Record "Service Line"; ForceRequest: Boolean)`

Plus 13 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) (20 calls: `AutoReserveServLine → GetAvailabilityFilter`, `AutoReserveServLine → InsertReservationEntries`, `AutoReserveServLine → SetQtyToReserveDownToTrackedQuantity`, …)
- [Codeunit 99000830 "Create Reserv. Entry"](../codeunit/99000830.md) (10 calls: `CreateReservation → CreateReservEntry`, `CreateReservation → CreateReservEntryFor`, `CreateReservation → CreateReservEntryFrom`, …)
- [Codeunit 6500 "Item Tracking Management"](../codeunit/6500.md) (3 calls: `DeleteInvoiceSpecFromHeader → DeleteInvoiceSpecFromHeader`, `DeleteInvoiceSpecFromLine → DeleteInvoiceSpecFromLine`, `RetrieveInvoiceSpecification → RetrieveInvoiceSpecWithService`)
- [Codeunit 99000815 "Reservation-Check Date Confl."](../codeunit/99000815.md) (3 calls: `ServiceInvLineCheck → DateConflict`, `ServiceInvLineCheck → IssueError`, `ServiceInvLineCheck → UpdateDate`)
- [Codeunit 99000831 "Reservation Engine Mgt."](../codeunit/99000831.md) (2 calls: `TransServLineToItemJnlLine → InitRecordSet`, `TransServLineToItemJnlLine → NEXTRecord`)
- [Codeunit 5402 "Unit of Measure Management"](../codeunit/5402.md) (1 call: `RetrieveInvoiceSpecification2 → QtyRndPrecision`)
- [Codeunit 99000841 "Item Ledger Entry-Reserve"](../codeunit/99000841.md) (1 call: `ItemLedgerEntryOnDrillDownTotalQuantity → DrillDownTotalQuantity`)
- [Page 5900 "Service Order"](../page/5900.md) (1 call: `OnLookupDocument → (object)`)
- [Page 5904 "Service Line List"](../page/5904.md) (1 call: `ShowSourceLines → (object)`)
- [Page 5964 "Service Quote"](../page/5964.md) (1 call: `OnLookupDocument → (object)`)

## Called by

- [Table 5902 "Service Line"](../table/5902.md) (10 calls: `CheckIfServiceLineMeetsReservedFromStockSetting → GetReservedQtyFromInventory`, `InsertItemTracking → DeleteLine`, `OnDelete → DeleteLine`, …)
- [Codeunit 5985 "Serv-Item Tracking Rsrv. Mgt."](../codeunit/5985.md) (5 calls: `DeleteInvoiceSpecFromHeader → DeleteInvoiceSpecFromHeader`, `InsertTrackingSpecification → UpdateItemTrackingAfterPosting`, `RetrieveInvoiceSpecification → RetrieveInvoiceSpecification`, …)
- [Codeunit 6452 "Serv. Availability Mgt."](../codeunit/6452.md) (3 calls: `OnCreateReservationsOnBindToTracking → BindToTracking`, `OnUpdateSourceLine → ReservQuantity`, `TransferFromServiceNeed → ReservQuantity`)
- [Codeunit 5923 "Service-Quote to Order"](../codeunit/5923.md) (2 calls: `MakeOrder → TransServLineToServLine`, `TransferQuoteToOrderLines → TransServLineToServLine`)
- [Codeunit 6484 "Serv. Undo Posting Mgt."](../codeunit/6484.md) (2 calls: `ServiceLineCnsmReserveVerifyQuantity → VerifyQuantity`, `ServiceLineReserveVerifyQuantity → VerifyQuantity`)
- [Page 5905 "Service Lines"](../page/5905.md) (2 calls: `OnDeleteRecord → DeleteLine`, `OnDeleteRecord → DeleteLineConfirm`)
- [Page 5907 "Service Item Worksheet Subform"](../page/5907.md) (2 calls: `OnDeleteRecord → DeleteLine`, `OnDeleteRecord → DeleteLineConfirm`)
- [Page 5934 "Service Invoice Subform"](../page/5934.md) (2 calls: `OnDeleteRecord → DeleteLine`, `OnDeleteRecord → DeleteLineConfirm`)
- [Page 5936 "Service Credit Memo Subform"](../page/5936.md) (2 calls: `OnDeleteRecord → DeleteLine`, `OnDeleteRecord → DeleteLineConfirm`)
- [Page 5966 "Service Quote Lines"](../page/5966.md) (2 calls: `OnDeleteRecord → DeleteLine`, `OnDeleteRecord → DeleteLineConfirm`)
- [Codeunit 5995 "Service Warehouse Mgt."](../codeunit/5995.md) (1 call: `OnOpenItemTrackingLines → CallItemTracking`)
- [Codeunit 6474 "Serv. Item Substitution"](../codeunit/6474.md) (1 call: `ItemServiceSubstGet → DeleteLine`)
- [Codeunit 6485 "Serv. Get Demand To Reserve"](../codeunit/6485.md) (1 call: `OnGetSourceDocumentLineQuantities → GetReservedQtyFromInventory`)
- [Table 5900 "Service Header"](../table/5900.md) (1 call: `GetQtyReservedFromStockState → GetReservedQtyFromInventory`)

## Recent changes

- 2026-10-06 [#12290 Remove CLEAN27 from Service Management](../../changes/bcapps/12290.md) (main, BC30, refactor)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-28, BC30

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