---
id: object/codeunit/5985
type: object
title: Codeunit 5985 "Serv-Item Tracking Rsrv. Mgt."
summary: Codeunit 5985 "Serv-Item Tracking Rsrv. Mgt." in Base Application (Microsoft.Service.Posting). 12 public procedures, 3 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: 697507f9cfbeab55dec37ea10830da1749c40a1d39a3b96127be79fe2ceeeba6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Posting/ServItemTrackingRsrvMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Posting/ServItemTrackingRsrvMgt.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: 5985
name: Serv-Item Tracking Rsrv. Mgt.
namespace: Microsoft.Service.Posting
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: 17
  events: 3
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 2
  implements: 0
---

# Codeunit 5985 "Serv-Item Tracking Rsrv. Mgt."

> Codeunit 5985 "Serv-Item Tracking Rsrv. Mgt." in Base Application (Microsoft.Service.Posting). 12 public procedures, 3 events. Present since at least BC23, still in BC30, changed in BC25.

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

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Item Entry Relation" = ri, TableData "Value Entry Relation" = ri, TableData "Tracking Specification" = rimd |

## Events published

- `OnAfterCheckTrackingExists(var ReservEntry: Record "Reservation Entry"; var IsHandled: Boolean)` (integration)
- `OnBeforeTransferReservToItemJnlLine(var ServiceLine: Record "Service Line"; var ItemJnlLine: Record "Item Journal Line"; var QtyToBeShippedBase: Decimal; var CheckApplFromItemEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(ServLineToCheck: Record "Service Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean)` (integration)

## Procedures

- `CheckTrackingSpecification(ServHeader: Record "Service Header"; var ServLine: Record "Service Line")`
- `SaveInvoiceSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification")`
- `InsertTrackingSpecification(var ServHeader: Record "Service Header"; var TempTrackingSpecification: Record "Tracking Specification")`
- `InsertTempHandlngSpecification(SrcType: Integer; var ServLine: Record "Service Line"; var TempHandlingSpecification: Record "Tracking Specification"; var TempTrackingSpecification: Record "Tracking Specification"; var TempTrackingSpecificationInv: Record "Tracking Specification"; QtyToInvoiceNonZero: Boolean)`
- `RetrieveInvoiceSpecification(var ServLine: Record "Service Line"; var TempInvoicingSpecification: Record "Tracking Specification"; Consume: Boolean): Boolean`
- `DeleteInvoiceSpecFromHeader(var ServHeader: Record "Service Header")`
- `InsertShptEntryRelation(var ServiceShptLine: Record "Service Shipment Line"; var TempHandlingSpecification: Record "Tracking Specification"; var TempTrackingSpecificationInv: Record "Tracking Specification"; ItemLedgShptEntryNo: Integer): Integer`
- `InsertValueEntryRelation(var TempValueEntryRelation: Record "Value Entry Relation")`
- `TransServLineToItemJnlLine(var ServiceLine: Record "Service Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeShippedBase: Decimal; var CheckApplFromItemEntry: Boolean)`
- `TransferReservToItemJnlLine(var ServiceLine: Record "Service Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeShippedBase: Decimal; var CheckApplFromItemEntry: Boolean)`
- `SplitWhseJnlLine(var TempWhseJnlLine: Record "Warehouse Journal Line"; var TempWhseJnlLine2: Record "Warehouse Journal Line"; var TempTrackingSpecification: Record "Tracking Specification"; ToTransfer: Boolean)`
- `AdjustQuantityRounding(RemQtyToBeInvoiced: Decimal; QtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; QtyToBeInvoicedBase: Decimal)`

Plus 2 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 99000842 "Service Line-Reserve"](../codeunit/99000842.md) (5 calls: `DeleteInvoiceSpecFromHeader → DeleteInvoiceSpecFromHeader`, `InsertTrackingSpecification → UpdateItemTrackingAfterPosting`, `RetrieveInvoiceSpecification → RetrieveInvoiceSpecification`, …)
- [Codeunit 6500 "Item Tracking Management"](../codeunit/6500.md) (3 calls: `AdjustQuantityRounding → AdjustQuantityRounding`, `CheckTrackingSpecification → GetItemTrackingSetup`, `SplitWhseJnlLine → SplitWhseJnlLine`)
- [Codeunit 99000830 "Create Reserv. Entry"](../codeunit/99000830.md) (1 call: `CheckTrackingSpecification → SignFactor`)

## Called by

- [Codeunit 5988 "Serv-Documents Mgt."](../codeunit/5988.md) (9 calls: `CheckAndSetPostingConstants → CheckTrackingSpecification`, `FinalizeDeleteHeader → DeleteInvoiceSpecFromHeader`, `InsertValueEntryRelation → InsertValueEntryRelation`, …)
- [Codeunit 5987 "Serv-Posting Journals Mgt."](../codeunit/5987.md) (4 calls: `PostItemJnlLine → InsertTempHandlngSpecification`, `PostItemJnlLine → TransferReservToItemJnlLine`, `PostItemJnlLine → TransServLineToItemJnlLine`, …)

## 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: "Serv-Item Tracking Rsrv. Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
