---
title: "Codeunit 5912 ServLedgEntries-Post"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/
type: codeunit
id: 5912
name: "ServLedgEntries-Post"
app: "Base Application"
namespace: Microsoft.Service.Posting
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/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 5912 ServLedgEntries-Post

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5912-servledgentries-post/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InitServiceRegister | (var Integer, var Integer) | - | public | 17-28 | - | - |
| FinishServiceRegister | (var Integer, var Integer) | - | public | 17-28 | - | - |
| InsertServLedgerEntry | (var Integer, var Record Service Header, var Record Service Line, var Record Service Item Line, Decimal, Code[20]) | Integer | public | 17-28 | - | - |
| InsertServLedgerEntrySale | (var Integer, var Record Service Header, var Record Service Line, var Record Service Item Line, Decimal, Decimal, Code[20], Integer) | - | public | 17-28 | - | - |
| InsertWarrantyLedgerEntry | (var Integer, var Record Service Header, var Record Service Line, var Record Service Item Line, Decimal, Code[20]) | Integer | public | 17-28 | - | - |
| ReverseCnsmServLedgEntries | (Record Service Shipment Line) | - | public | 17-28 | - | - |
| ReverseServLedgEntry | (var Record Service Shipment Line) | - | public | 17-28 | - | - |
| ReverseWarrantyEntry | (var Record Service Shipment Line) | - | public | 17-28 | - | - |
| CreateCreditEntry | (var Integer, var Record Service Header, var Record Service Line, Code[20]) | - | public | 17-28 | - | - |
| CalcDivideAmount | (Decimal, var Record Service Header, var Record Service Line, var Record VAT Amount Line) | - | public | 17-28 | - | - |
| UnapplyOpenServiceLines | (var Record Service Line) | - | public | 24-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeCopyServicedInfoCrMemoUsage | (var Record Service Ledger Entry, var Record Service Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeServLedgerEntryInsert | (var Record Service Ledger Entry, Record Service Line, Record Service Item Line, Record Service Header) | 17-28 | - | - |
| Integration event | OnBeforeServLedgerEntrySaleInsert | (var Record Service Ledger Entry, Record Service Line, Record Service Item Line, Record Service Header) | 17-28 | - | - |
| Integration event | OnBeforeWarrantyLedgerEntryInsert | (var Record Warranty Ledger Entry, Record Service Line) | 17-28 | - | - |
| Integration event | OnInsertServLedgEntryCrMemoOnBeforeServLedgEntryInsert | (var Record Service Ledger Entry, Record Service Header, Record Service Line) | 17-28 | - | - |
| Integration event | OnInsertServLedgerEntryCrMUsageOnBeforeServLedgEntryInsert | (var Record Service Ledger Entry, Record Service Header, Record Service Line) | 17-28 | - | - |
| Integration event | OnInsertServLedgerEntryOnBeforeCopyServicedInfoFromServiceItemLine | (var Record Service Ledger Entry, var Record Service Line, var Boolean) | 17-28 | - | - |
| Integration event | OnCreateCreditEntryOnBeforeServLedgEntryInsert | (var Record Service Ledger Entry, Record Service Header, Record Service Line) | 17-28 | - | - |
| Integration event | OnCreateCreditEntryOnBeforeServLedgEntryInsertFromServiceHeader | (var Record Service Ledger Entry, Record Service Header, Record Service Line) | 17-28 | - | - |
| Integration event | OnCopyServicedInfoFromServiceItemLineOnAfterCopyServicedInfo | (var Record Service Ledger Entry, Record Service Item Line) | 17-28 | - | - |
| Integration event | OnCopyServicedInfoFromServiceItemOnAfterCopyServicedInfo | (var Record Service Ledger Entry, Record Service Item) | 17-28 | - | - |
| Integration event | OnCopyServicedInfoFromServiceLedgerEntryOnAfterCopyServicedInfo | (var Record Service Ledger Entry, Record Service Ledger Entry) | 17-28 | - | - |
| Integration event | OnInsertServLedgerEntrySaleOnBeforeCloseEntries | (var Record Service Ledger Entry, var Record Service Ledger Entry, var Record Service Line, var Record Service Header) | 17-28 | - | - |
| Integration event | OnInsertServLedgerEntrySaleOnAfterCopyFromServItemLine | (var Record Service Ledger Entry, var Record Service Item Line) | 17-28 | - | - |
| Integration event | OnReverseWarrantyEntryOnBeforeNewWarrantyLedgEntryInsert | (var Record Warranty Ledger Entry, var Record Warranty Ledger Entry) | 17-28 | - | - |
| Integration event | OnReverseServLedgEntryOnBeforeNewServLedgEntryInsert | (var Record Service Ledger Entry, var Record Service Ledger Entry) | 17-21 | - | - |
| Integration event | OnBeforeCreateCreditEntry | (var Record Service Document Register, var Record Service Line, var Record Service Header, var Record Service Ledger Entry, var Code[20], var Integer, var Integer, var Code[20]) | 20-21 | - | - |
| Integration event | OnCreateCreditEntryOnBeforeServDocRegServiceDocument | (var Record Service Ledger Entry, var Record Service Header, var Record Service Line) | 20-28 | - | - |
| Integration event | OnBeforeInsertServLedgerEntryCrMUsage | (var Integer, var Record Service Header, var Record Service Line, Code[20], var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeCreateCreditEntry | (var Record Service Document Register, var Record Service Line, var Record Service Header, var Record Service Ledger Entry, var Code[20], var Integer, var Integer, var Code[20], var Boolean) | 22-28 | - | - |
| Integration event | OnReverseServLedgEntryOnBeforeNewServLedgEntryInsert | (var Record Service Ledger Entry, var Record Service Ledger Entry, Record Service Shipment Line) | 22-28 | - | - |
| Integration event | OnBeforeInsertServLedgerEntry | (var Integer, var Record Service Header, var Record Service Line, var Record Service Item Line, Decimal, Code[20], var Integer, var Boolean) | 22-28 | - | - |
| Integration event | OnBeforeInsertServLedgerEntrySale | (var Integer, var Record Service Header, var Record Service Line, var Record Service Item Line, var Record Service Ledger Entry, Decimal, Decimal, Code[20], Integer, var Boolean) | 22-28 | - | - |
| Integration event | OnBeforeInsertServLedgEntryCrMemo | (var Integer, var Record Service Header, var Record Service Line, Code[20], var Boolean) | 22-28 | - | - |
| Integration event | OnAfterInitServiceRegister | (var Record Service Register) | 25-28 | - | - |
| Integration event | OnBeforeFinishServiceRegister | (var Record Service Register) | 25-28 | - | - |
| Integration event | OnAfterReverseOpenServiceLedgerEntry | (var Record Service Ledger Entry, var Integer) | 26-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.
