---
title: "Codeunit 5920 ServItemManagement"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5920-servitemmanagement/
type: codeunit
id: 5920
name: "ServItemManagement"
app: "Base Application"
namespace: Microsoft.Service.Item
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5920-servitemmanagement/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5920 ServItemManagement

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5920-servitemmanagement/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Service.Item |
| Versions | 17-28 |
| Source file | Service/Item/ServItemManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| AddOrReplaceSIComponent | (var Record Service Line, Record Service Header, Code[20], Integer, var Record Tracking Specification) | - | public | 17-28 | - | - |
| InsertServiceItemComponent | (var Record Service Item Component, Record BOM Component, Record BOM Component, Record Sales Header, Record Sales Shipment Line) | - | public | 17-28 | - | - |
| CreateServItemOnSalesLineShpt | (Record Sales Header, Record Sales Line, Record Sales Shipment Line) | - | public | 17-28 | - | - |
| CalcServiceWarrantyDates | (var Record Service Item, Date, DateFormula, DateFormula) | - | public | 17-28 | - | - |
| CreateServItemOnServItemLine | (var Record Service Item Line) | - | public | 17-28 | - | - |
| CalcAmountLCY | (Decimal, Decimal, Code[10], Date) | Decimal | public | 17-28 | - | - |
| CopyReservationEntry | (Record Sales Header) | - | public | 17-28 | - | - |
| CopyReservationEntryService | (Record Service Header) | - | public | 17-28 | - | - |
| CreateServItemOnSalesInvoice | (var Record Sales Header) | - | public | 17-28 | - | - |
| ReturnServItemComp | (var Record Service Item, var Record Service Item Component) | - | public | 17-28 | - | - |
| DeleteServItemOnSaleCreditMemo | (Record Sales Header) | - | public | 17-28 | - | - |
| CopyReservation | (Record Purchase Header) | - | public | 17-28 | - | - |
| DoesSalesLineNeedServiceItemCreation | (Record Sales Line, var Record Item, var Record Service Item Group) | Boolean | public | 24-28 | - | - |
| DoesPurchaseLineNeedServiceItemCreation | (Record Purchase Line) | Boolean | public | 24-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAddOrReplaceSIComponentPermanentTemporary | (var Record Service Item, var Record Service Line, var Boolean) | 17-28 | - | - |
| Integration event | OnAfterInitNewServItemComponent | (var Record Service Item Component, Record Service Line) | 17-28 | - | - |
| Integration event | OnBeforeCreateServItemOnSalesLineShpt | (Record Sales Header, Record Sales Line, Record Sales Shipment Line, var Boolean, var Record Reservation Entry) | 17-21 | - | - |
| Integration event | OnBeforeCreateServItemOnServItemLine | (var Record Service Item Line) | 17-28 | - | - |
| Integration event | OnBeforeDeleteServItemOnSaleCreditMemo | (Record Sales Header, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeInsertServItemComponent | (var Record Service Item Component, Record Service Item, Record Sales Header, Record Sales Shipment Line, Record BOM Component, Record BOM Component) | 17-28 | - | - |
| Integration event | OnBeforeInsertNewServItemComponent | (var Record Service Item Component, Record Service Line) | 17-28 | - | - |
| Integration event | OnBeforeReplaceSIComponent | (var Record Service Line, Record Service Header, Code[20], Integer, var Record Tracking Specification) | 17-22 | - | - |
| Integration event | OnCreateServItemOnSalesLineShpt | (var Record Service Item, Record Sales Header, Record Sales Line) | 17-28 | - | - |
| Integration event | OnCreateServItemOnServItemLine | (var Record Service Item, Record Service Item Line, var Boolean) | 17-28 | - | - |
| Integration event | OnCreateServItemOnServItemLineOnBeforeServItemModify | (var Record Service Item, Record Service Header, Record Service Item Line) | 17-28 | - | - |
| Integration event | OnCreateServItemOnSalesLineShptOnAfterAddServItemComponents | (var Record Sales Header, var Record Sales Line, var Record Sales Shipment Line, var Record Service Item, var Record Service Item, var Record Service Item Component) | 17-28 | - | - |
| Integration event | CreateServItemOnSalesLineShptOnBeforeInsertServiceItemComponents | (var Record Service Item, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCopyReservationEntry | (Record Sales Header, var Record Reservation Entry) | 20-28 | - | - |
| Integration event | OnCreateServItemOnSalesLineShptOnAfterCalcShouldCreateServiceItem | (Record Sales Line, Record Sales Shipment Line, var Code[50], var Record Service Item, var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnCreateServItemOnSalesLineShptOnAfterInsertServiceItem | (var Record Service Item, Record Sales Header, Record Sales Line, Record Sales Shipment Line, var Record Reservation Entry, Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeCreateServItemOnSalesLineShpt | (Record Sales Header, Record Sales Line, Record Sales Shipment Line, var Boolean, var Record Reservation Entry, var Record Service Item, var Record Service Item Component) | 22-28 | - | - |
| Integration event | OnAfterCreateServItemOnServItemLine | (Record Service Item Line) | 22-28 | - | - |
| Integration event | OnBeforeCreateServItemOnSalesInvoice | (var Record Sales Header, var Record Sales Line) | 22 | - | - |
| Integration event | OnCopyReservationEntryLineOnBeforeReservationEntryFindSet | (Record Sales Line, var Record Reservation Entry) | 22-28 | - | - |
| Integration event | OnBeforeReplaceSIComponent | (var Record Service Line, Record Service Header, Code[20], Integer, var Record Tracking Specification, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeCreateServItemOnSalesInvoice | (var Record Sales Header, var Record Sales Line, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeCopyReservationEntryLine | (Record Sales Line, var Record Reservation Entry, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeDoesSalesLineNeedServiceItemCreation | (Record Sales Line, var Boolean, var Record Item, var Record Service Item Group, var Boolean) | 24-28 | - | - |
| Integration event | OnBeforeDoesPurchaseLineNeedServiceItemCreation | (Record Purchase Line, var Boolean, var Boolean) | 24-28 | - | - |
| Integration event | OnBeforeCopyReservationEntryLineAfterCheckSalesLineNeedsServiceItemCreation | (var Record Sales Line, var Boolean) | 24-28 | - | - |
| Integration event | OnCreateServItemOnServItemLineOnBeforeServiceItemInsert | (var Record Service Item, Record Service Item Line) | 25-28 | - | - |
| Integration event | OnCreateServItemOnServItemLineOnBeforeConfirmCreateServItem | (var Record Service Item Line, var Boolean, var Boolean) | 28 | - | - |
| Integration event | OnAfterModifyServiceItem | (var Record Service Item, var Record Sales Header, var Record Sales Line, var Record Sales Shipment Line) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
