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

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5982-service-post-print/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| PostDocument | (var Record Service Header) | - | public | 17-28 | - | - |
| GetReport | (var Record Service Header) | - | public | 21-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterConfirmPost | (var Record Service Header, Boolean, Boolean, Boolean) | 17-28 | - | - |
| Integration event | OnAfterPost | (var Record Service Header) | 17-28 | - | - |
| Integration event | OnBeforeConfirmPost | (var Record Service Header, var Boolean, var Boolean, var Boolean, var Boolean, var Boolean, var Record Service Line) | 17-28 | - | - |
| Integration event | OnBeforeGetReport | (var Record Service Header, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeServiceCrMemoHeaderPrintRecords | (var Record Service Cr.Memo Header, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeServiceInvoiceHeaderPrintRecords | (var Record Service Invoice Header, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeServiceShipmentHeaderPrintRecords | (var Record Service Shipment Header, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforePostDocument | (var Record Service Header) | 17-28 | - | - |
| Integration event | OnBeforeConfirmPostAndPrint | (var Record Service Header, var Boolean, var Boolean, var Boolean, var Integer, var Boolean, var Boolean) | 24-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.
