---
id: object/codeunit/5920
type: object
title: Codeunit 5920 "ServItemManagement"
summary: Codeunit 5920 "ServItemManagement" in Base Application (Microsoft.Service.Item). 14 public procedures, 26 events, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC24-25, BC28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 8920a56c3a4591c2dce404a4059bffdda636ff2719adbb1be33c8e2f87c8daae
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Item/ServItemManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Item/ServItemManagement.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/10126
object_type: codeunit
object_id: 5920
name: ServItemManagement
namespace: Microsoft.Service.Item
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"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 46
  events: 26
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 5
  called_by: 5
  implements: 0
---

# Codeunit 5920 "ServItemManagement"

> Codeunit 5920 "ServItemManagement" in Base Application (Microsoft.Service.Item). 14 public procedures, 26 events, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC24-25, BC28.

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

## Events published

- `OnAddOrReplaceSIComponentPermanentTemporary(var ServItem: Record "Service Item"; var ServLine: Record "Service Line"; var IsHandled: Boolean)` (integration)
- `OnAfterInitNewServItemComponent(var ServItemComponent: Record "Service Item Component"; ServiceLine: Record "Service Line")` (integration)
- `OnBeforeCopyReservationEntry(SalesHeader: Record "Sales Header"; var TempReservationEntry: Record "Reservation Entry" temporary)` (integration)
- `OnBeforeCreateServItemOnSalesLineShpt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var TempReservEntry: Record "Reservation Entry"; var TempServiceItem: Record "Service Item" temporary; var TempServiceItemComponent: Record "Service Item Component" temporary)` (integration)
- `OnBeforeCreateServItemOnServItemLine(var ServItemLine: Record "Service Item Line")` (integration)
- `OnCreateServItemOnServItemLineOnBeforeConfirmCreateServItem(var ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean; var SkipConfirm: Boolean)` (integration)
- `OnBeforeDeleteServItemOnSaleCreditMemo(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)` (integration)
- `OnBeforeInsertServItemComponent(var ServiceItemComponent: Record "Service Item Component"; ServiceItem: Record "Service Item"; SalesHeader: Record "Sales Header"; SalesShipmentLine: Record "Sales Shipment Line"; BOMComponent: Record "BOM Component"; BOMComponent2: Record "BOM Component")` (integration)
- `OnBeforeInsertNewServItemComponent(var ServiceItemComponent: Record "Service Item Component"; ServiceLine: Record "Service Line")` (integration)
- `OnBeforeReplaceSIComponent(var ServiceLine: Record "Service Line"; ServiceHeader: Record "Service Header"; ServShptDocNo: Code[20]; ServShptLineNo: Integer; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean)` (integration)
- `OnAfterModifyServiceItem(var ServiceItem: Record "Service Item"; var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesShipmentLine: Record "Sales Shipment Line")` (integration)
- `OnCreateServItemOnSalesLineShpt(var ServiceItem: Record "Service Item"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line")` (integration)
- `OnCreateServItemOnServItemLine(var ServiceItem: Record "Service Item"; ServiceItemLine: Record "Service Item Line"; var IsHandled: Boolean)` (integration)
- `OnCreateServItemOnServItemLineOnBeforeServItemModify(var ServiceItem: Record "Service Item"; ServiceHeader: Record "Service Header"; ServiceItemLine: Record "Service Item Line")` (integration)
- `OnCreateServItemOnSalesLineShptOnAfterAddServItemComponents(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesShipmentLine: Record "Sales Shipment Line"; var ServiceItem: Record "Service Item"; var TempServiceItem: Record "Service Item" temporary; var TempServiceItemComp: Record "Service Item Component" temporary)` (integration)
- `OnCreateServItemOnSalesLineShptOnAfterCalcShouldCreateServiceItem(SalesLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line"; var SerialNo: Code[50]; var ServItem: Record "Service Item"; var ServItemWithSerialNoExist: Boolean; var ShouldCreateServiceItem: Boolean)` (integration)
- `CreateServItemOnSalesLineShptOnBeforeInsertServiceItemComponents(var ServItem: Record "Service Item"; var IsHandled: Boolean)` (integration)
- `OnCreateServItemOnSalesLineShptOnAfterInsertServiceItem(var ServiceItem: Record "Service Item"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line"; var TempReservEntry: Record "Reservation Entry" temporary; ServItemWithSerialNoExist: Boolean; var IsHandled: Boolean)` (integration)
- `OnAfterCreateServItemOnServItemLine(ServiceItemLine: Record "Service Item Line")` (integration)
- `OnBeforeCreateServItemOnSalesInvoice(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean)` (integration)
- `OnCopyReservationEntryLineOnBeforeReservationEntryFindSet(SalesLine: Record "Sales Line"; var ReservationEntry: Record "Reservation Entry")` (integration)
- `OnBeforeCopyReservationEntryLine(SalesLine: Record "Sales Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var IsHandled: Boolean)` (integration)
- `OnBeforeDoesSalesLineNeedServiceItemCreation(SalesLine: Record "Sales Line"; var SalesLineNeedsServiceItem: Boolean; var Item: Record Item; var ServItemGr: Record "Service Item Group"; var IsHandled: Boolean)` (integration)
- `OnBeforeDoesPurchaseLineNeedServiceItemCreation(PurchaseLine: Record "Purchase Line"; var PurchaseLineNeedsServiceItem: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeCopyReservationEntryLineAfterCheckSalesLineNeedsServiceItemCreation(var SalesLine: Record "Sales Line"; var SalesLineNeedServiceItemCreation: Boolean)` (integration)
- `OnCreateServItemOnServItemLineOnBeforeServiceItemInsert(var ServiceItem: Record "Service Item"; ServiceItemLine: Record "Service Item Line")` (integration)

## Event subscriptions

- ItemVariantOnAfterOnDelete subscribes to Table "Item Variant" OnAfterOnDelete

## Procedures

- `AddOrReplaceSIComponent(var ServLine: Record "Service Line"; ServHeader: Record "Service Header"; ServShptDocNo: Code[20]; ServShptLineNo: Integer; var TempTrackingSpecification: Record "Tracking Specification" temporary)`
- `InsertServiceItemComponent(var ServiceItemComponent: Record "Service Item Component"; BOMComponent: Record "BOM Component"; BOMComponent2: Record "BOM Component"; SalesHeader: Record "Sales Header"; SalesShipmentLine: Record "Sales Shipment Line")`
- `CreateServItemOnSalesLineShpt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line")`
- `CalcServiceWarrantyDates(var ServiceItem: Record "Service Item"; StartingWarrantyDate: Date; ItemTrackingWarrantyDateFormula: DateFormula; ServMgtSetupDefaultWarrantyDuration: DateFormula)`
- `CreateServItemOnServItemLine(var ServItemLine: Record "Service Item Line")`
- `CalcAmountLCY(FCAmount: Decimal; CurrencyFactor: Decimal; CurrencyCode: Code[10]; CurrencyDate: Date): Decimal`
- `CopyReservationEntry(SalesHeader: Record "Sales Header")`
- `CopyReservationEntryService(ServHeader: Record "Service Header")`
- `CreateServItemOnSalesInvoice(var SalesHeader: Record "Sales Header")`
- `ReturnServItemComp(var TempServItem: Record "Service Item" temporary; var TempServItemComp: Record "Service Item Component" temporary)`
- `DeleteServItemOnSaleCreditMemo(SalesHeader: Record "Sales Header")`
- `CopyReservation(PurchaseHeader: Record "Purchase Header")`
- `DoesSalesLineNeedServiceItemCreation(SalesLine: Record "Sales Line"; var Item: Record Item; var ServItemGr: Record "Service Item Group"): Boolean`
- `DoesPurchaseLineNeedServiceItemCreation(PurchaseLine: Record "Purchase Line"): Boolean`

Plus 5 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 5906 "ServLogManagement"](../codeunit/5906.md) (5 calls: `AddOrReplaceSIComponent → ServItemComponentAdded`, `AddOrReplaceSIComponent → ServItemComponentRemoved`, `CreateServItemOnSalesLineShpt → ServItemAutoCreated`, …)
- [Codeunit 5931 "Resource Skill Mgt."](../codeunit/5931.md) (2 calls: `CreateServItemOnSalesLineShpt → AssignServItemResSkills`, `CreateServItemOnServItemLine → AssignServItemResSkills`)
- [Page 456 "No. Series"](../page/456.md) (2 calls: `CreateServItemOnSalesLineShpt → (object)`, `CreateServItemOnServItemLine → (object)`)
- [Codeunit 27 "Confirm Management"](../codeunit/27.md) (1 call: `CreateServItemOnServItemLine → GetResponseOrDefault`)
- [Codeunit 5900 "ServOrderManagement"](../codeunit/5900.md) (1 call: `AddOrReplaceSIComponent → ReplacementCreateServItem`)

## Called by

- [Codeunit 6455 "Serv. Sales-Post"](../codeunit/6455.md) (5 calls: `CreateServItemOnSalesInvoice → CopyReservationEntry`, `CreateServItemOnSalesInvoice → CreateServItemOnSalesInvoice`, `OnAfterInsertShipmentLine → CreateServItemOnSalesLineShpt`, …)
- [Codeunit 5988 "Serv-Documents Mgt."](../codeunit/5988.md) (2 calls: `PostDocumentLines → AddOrReplaceSIComponent`, `PrepareShipmentHeader → CopyReservationEntryService`)
- [Codeunit 6454 "Serv. Purch.-Post"](../codeunit/6454.md) (2 calls: `OnAfterInsertReceiptHeader → CopyReservation`, `OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine → CreateServItemOnSalesLineShpt`)
- [Page 5902 "Service Order Subform"](../page/5902.md) (1 call: `CreateServiceItem → CreateServItemOnServItemLine`)
- [Page 5965 "Service Quote Subform"](../page/5965.md) (1 call: `CreateServItemOnServItemLine → CreateServItemOnServItemLine`)

## Recent changes

- 2026-08-13 [#10126 [Extensibility Request] issue 30389: allow skipping service item confirmation](../../changes/bcapps/10126.md) (main, BC30, feature)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25, BC28

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