---
id: object/codeunit/5906
type: object
title: Codeunit 5906 "ServLogManagement"
summary: Codeunit 5906 "ServLogManagement" in Base Application (Microsoft.Service.Document). 38 public procedures, 8 events. Present since at least BC23, still in BC30, changed in BC24.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "24"
  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: 8e69d28ccc3b695bc71bf0227cf24640b672c788ccc3d6c7de77732eb6cdb221
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Document/ServLogManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Document/ServLogManagement.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: 5906
name: ServLogManagement
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"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 46
  events: 8
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 13
  implements: 0
---

# Codeunit 5906 "ServLogManagement"

> Codeunit 5906 "ServLogManagement" in Base Application (Microsoft.Service.Document). 38 public procedures, 8 events. Present since at least BC23, still in BC30, changed in BC24.

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

## Events published

- `OnBeforeServItemEventDescription(var EventNo: Integer)` (integration)
- `OnServItemEventDescription(EventNo: Integer; var Description: Text[50]; var Handled: Boolean)` (integration)
- `OnServHeaderCreateOnCaseElse(var ServOrderLog: Record "Service Document Log"; ServHeader: Record "Service Header")` (integration)
- `OnServOrderEventDescription(EventNo: Integer; var Description: Text[50]; var Handled: Boolean)` (integration)
- `OnServItemAddToContractOnBeforeServItemLogInsert(var ServiceItemLog: Record "Service Item Log"; ServiceContractLine: Record "Service Contract Line")` (integration)
- `OnServItemRemovedFromContractOnBeforeServItemLogInsert(var ServiceItemLog: Record "Service Item Log"; ServiceContractLine: Record "Service Contract Line")` (integration)
- `OnServItemToServOrderOnBeforeServItemLogInsert(var ServiceItemLog: Record "Service Item Log"; ServiceItemLine: Record "Service Item Line")` (integration)
- `OnServItemOffServOrderOnBeforeServItemLogInsert(var ServiceItemLog: Record "Service Item Log"; ServiceItemLine: Record "Service Item Line")` (integration)

## Procedures

- `ServOrderEventDescription(EventNo: Integer): Text[50]`
- `ServItemEventDescription(EventNo: Integer): Text[50]`
- `ServItemCreated(ServItem: Record "Service Item")`
- `ServItemAutoCreated(ServItem: Record "Service Item")`
- `ServItemAddToContract(ServContrLine: Record "Service Contract Line")`
- `ServItemRemovedFromContract(ServContrLine: Record "Service Contract Line")`
- `ServItemToServOrder(ServItemLine: Record "Service Item Line")`
- `ServItemOffServOrder(ServItemLine: Record "Service Item Line")`
- `ServItemComponentAdded(Component: Record "Service Item Component")`
- `ServItemComponentRemoved(Component: Record "Service Item Component")`
- `ServItemCustChange(ServItem: Record "Service Item"; OldServItem: Record "Service Item")`
- `ServItemShipToCodeChange(ServItem: Record "Service Item"; OldServItem: Record "Service Item")`
- `ServItemStatusChange(ServItem: Record "Service Item"; OldServItem: Record "Service Item")`
- `ServItemSerialNoChange(ServItem: Record "Service Item"; OldServItem: Record "Service Item")`
- `ServItemNoChange(ServItem: Record "Service Item"; OldServItem: Record "Service Item")`
- `ServItemItemNoChange(ServItem: Record "Service Item"; OldServItem: Record "Service Item")`
- `ServItemReplaced(ServItem: Record "Service Item"; NewServItem: Record "Service Item")`
- `ServItemBlockedChange(ServItem: Record "Service Item"; OldServItem: Record "Service Item")`
- `ServItemDeleted(ServItemNo: Code[20])`
- `ServHeaderStatusChange(ServHeader: Record "Service Header"; OldServHeader: Record "Service Header")`
- `ServHeaderCustomerChange(ServHeader: Record "Service Header"; OldServHeader: Record "Service Header")`
- `ServHeaderShiptoChange(ServHeader: Record "Service Header"; OldServHeader: Record "Service Header")`
- `ServHeaderAllocation(ResourceNo: Code[20]; DocumentType: Integer; DocumentNo: Code[20]; ServItemLineNo: Integer)`
- `ServHeaderCancelAllocation(ResourceNo: Code[20]; DocumentType: Integer; DocumentNo: Code[20]; ServItemLineNo: Integer)`
- `ServHeaderReallocationNeeded(ResourceNo: Code[20]; DocumentType: Integer; DocumentNo: Code[20]; ServItemLineNo: Integer)`
- `ServHeaderCreate(ServHeader: Record "Service Header")`
- `ServOrderShipmentPost(ServOrderNo: Code[20]; ShptNo: Code[20])`
- `ServOrderInvoicePost(ServOrderNo: Code[20]; InvoiceNo: Code[20])`
- `ServInvoicePost(ServOrderNo: Code[20]; InvoiceNo: Code[20])`
- `ServCrMemoPost(ServOrderNo: Code[20]; CrMemoNo: Code[20])`
- `ServHeaderManualDelete(ServHeader: Record "Service Header")`
- `ServHeaderContractNoChanged(ServHeader: Record "Service Header"; OldServHeader: Record "Service Header")`
- `ServOrderQuoteChanged(ServHeader: Record "Service Header"; OldServHeader: Record "Service Header")`
- `ServHeaderRepairStatusChange(ServItemLine: Record "Service Item Line"; OldServItemLine: Record "Service Item Line")`
- `LoanerLent(LoanerEntry: Record "Loaner Entry")`
- `LoanerReceived(LoanerEntry: Record "Loaner Entry")`
- `ServItemLineResponseDateChange(var ServItemLine: Record "Service Item Line"; var OldServItemLine: Record "Service Item Line")`
- `ServItemLineResponseTimeChange(var ServItemLine: Record "Service Item Line"; var OldServItemLine: Record "Service Item Line")`

## Triggers

OnRun

## Called by

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.

- [Table 5901 "Service Item Line"](../table/5901.md) (7 calls: `OnDelete → ServItemOffServOrder`, `OnInsert → ServItemToServOrder`, `OnModify → ServItemOffServOrder`, …)
- [Table 5900 "Service Header"](../table/5900.md) (6 calls: `OnDelete → ServItemOffServOrder`, `OnInsert → ServHeaderCreate`, `UpdateServiceOrderChangeLog → ServHeaderContractNoChanged`, …)
- [Codeunit 5920 "ServItemManagement"](../codeunit/5920.md) (5 calls: `AddOrReplaceSIComponent → ServItemComponentAdded`, `AddOrReplaceSIComponent → ServItemComponentRemoved`, `CreateServItemOnSalesLineShpt → ServItemAutoCreated`, …)
- [Codeunit 5988 "Serv-Documents Mgt."](../codeunit/5988.md) (4 calls: `PrepareCrMemoHeader → ServCrMemoPost`, `PrepareInvoiceHeader → ServInvoicePost`, `PrepareInvoiceHeader → ServOrderInvoicePost`, …)
- [Table 5964 "Service Contract Line"](../table/5964.md) (4 calls: `OnDelete → ServItemRemovedFromContract`, `OnInsert → ServItemAddToContract`, `OnModify → ServItemAddToContract`, …)
- [Codeunit 5901 "ServLoanerManagement"](../codeunit/5901.md) (3 calls: `LendLoaner → LoanerLent`, `ReceiveLoaner → LoanerReceived`, `ReceiveLoanerShipment → LoanerReceived`)
- [Table 5940 "Service Item"](../table/5940.md) (3 calls: `OnDelete → ServItemDeleted`, `OnInsert → ServItemCreated`, `OnRename → ServItemNoChange`)
- [Codeunit 5900 "ServOrderManagement"](../codeunit/5900.md) (2 calls: `ReplacementCreateServItem → ServItemAutoCreated`, `ReplacementCreateServItem → ServItemReplaced`)
- [Codeunit 5940 "ServContractManagement"](../codeunit/5940.md) (2 calls: `ChangeCustNoOnServItem → ServItemCustChange`, `ChangeCustNoOnServItem → ServItemShipToCodeChange`)
- [Codeunit 5923 "Service-Quote to Order"](../codeunit/5923.md) (1 call: `MakeOrder → ServOrderQuoteChanged`)
- [Page 5900 "Service Order"](../page/5900.md) (1 call: `OnDeleteRecord → ServHeaderManualDelete`)
- [Page 5933 "Service Invoice"](../page/5933.md) (1 call: `OnDeleteRecord → ServHeaderManualDelete`)
- [Page 5935 "Service Credit Memo"](../page/5935.md) (1 call: `OnDeleteRecord → ServHeaderManualDelete`)

## Across versions

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

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