---
id: object/codeunit/5982
type: object
title: Codeunit 5982 "Service-Post+Print"
summary: Codeunit 5982 "Service-Post+Print" in Base Application (Microsoft.Service.Posting). 2 public procedures, 11 events. Present since at least BC23, still in BC30, changed in BC24, BC29.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: d6a8d84dfa44ad153fad6e4c326770e7a7eea01ddd9a945218ac0df623507c3d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Posting/ServicePostPrint.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Posting/ServicePostPrint.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: 5982
name: Service-Post+Print
namespace: Microsoft.Service.Posting
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 15
  events: 11
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 0
---

# Codeunit 5982 "Service-Post+Print"

> Codeunit 5982 "Service-Post+Print" in Base Application (Microsoft.Service.Posting). 2 public procedures, 11 events. Present since at least BC23, still in BC30, changed in BC24, BC29.

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

## Properties

| Property | Value |
|---|---|
| TableNo | Service Header |

## Events published

- `OnAfterConfirmPost(var ServiceHeader: Record "Service Header"; Ship: Boolean; Consume: Boolean; Invoice: Boolean)` (integration)
- `OnAfterPost(var ServiceHeader: Record "Service Header")` (integration)
- `OnBeforeConfirmPost(var ServiceHeader: Record "Service Header"; var HideDialog: Boolean; var Ship: Boolean; var Consume: Boolean; var Invoice: Boolean; var IsHandled: Boolean; var PassedServLine: Record "Service Line")` (integration)
- `OnBeforeGetReport(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)` (integration)
- `OnBeforeServiceCrMemoHeaderPrintRecords(var ServiceCrMemoHeader: Record "Service Cr.Memo Header"; var IsHandled: Boolean)` (integration)
- `OnBeforeServiceInvoiceHeaderPrintRecords(var ServiceInvoiceHeader: Record "Service Invoice Header"; var IsHandled: Boolean)` (integration)
- `OnBeforeServiceShipmentHeaderPrintRecords(var ServiceShipmentHeader: Record "Service Shipment Header"; var IsHandled: Boolean)` (integration)
- `OnBeforePostDocument(var ServiceHeader: Record "Service Header")` (integration)
- `OnBeforeConfirmPostAndPrint(var ServiceHeader: Record "Service Header"; var Ship: Boolean; var Consume: Boolean; var Invoice: Boolean; var DefaultOption: Integer; var Result: Boolean; var IsHandled: Boolean)` (integration)
- `OnGetReportOnBeforeExportServiceInvoice(var ServiceInvoiceHeader: Record "Service Invoice Header"; var ServiceHeader: Record "Service Header")` (integration)
- `OnGetReportOnBeforeExportServiceCrMemo(var ServiceCrMemoHeader: Record "Service Cr.Memo Header"; var ServiceHeader: Record "Service Header")` (integration)

## Procedures

- `PostDocument(var Rec: Record "Service Header")`
- `GetReport(var ServiceHeader: Record "Service Header")`

Plus 2 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 5900 "Service Header"](../table/5900.md)

## 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 5957 "Serv. Posting Selection Mgt."](../codeunit/5957.md) (1 call: `ConfirmPostAndPrint → ConfirmPostServiceDocument`)
- [Codeunit 5980 "Service-Post"](../codeunit/5980.md) (1 call: `Code → PostWithLines`)

## Across versions

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

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