---
id: object/codeunit/5749
type: object
title: Codeunit 5749 "Serv. Whse Post-Shipment"
summary: Codeunit 5749 "Serv. Whse Post-Shipment" in Base Application (Microsoft.Warehouse.Posting). 11 events, 7 event subscribers. Introduced in BC25, still in BC30, changed in BC28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "25"
  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: 4759ed8bc886b4866d073a114ff0c21209aa2a2bf3154e5b27dee4df3bc7c71d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Warehouse/ServWhsePostShipment.Codeunit.al
    title: src/Layers/W1/BaseApp/Service/Warehouse/ServWhsePostShipment.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: 5749
name: Serv. Whse Post-Shipment
namespace: Microsoft.Warehouse.Posting
app: Base Application
extends: null
first_version: "25"
last_version: "30"
present_in:
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 21
  events: 11
  subscribers: 7
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 0
---

# Codeunit 5749 "Serv. Whse Post-Shipment"

> Codeunit 5749 "Serv. Whse Post-Shipment" in Base Application (Microsoft.Warehouse.Posting). 11 events, 7 event subscribers. Introduced in BC25, still in BC30, changed in BC28.

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

## Events published

- `OnPostSourceDocumentBeforeRunServicePost(var ServiceHeader: Record "Service Header")` (integration)
- `OnPostSourceDocumentAfterRunServicePost(var ServiceHeader: Record "Service Header")` (integration)
- `OnPostSourceDocumentOnBeforePrintServiceShipment(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)` (integration)
- `OnPostSourceDocumentOnBeforePrintServiceInvoice(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)` (integration)
- `OnAfterServicePost(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; ServiceHeader: Record "Service Header"; WhsePostParameters: Record "Whse. Post Parameters")` (integration)
- `OnInitSourceDocumentHeaderOnBeforeServiceHeaderUpdatePostingDate(var ServiceHeader: Record Microsoft.Service.Document."Service Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var ModifyHeader: Boolean; var ValidatePostingDate: Boolean; var IsHandled: Boolean)` (integration)
- `OnInitSourceDocumentHeaderOnBeforeServiceHeaderModify(var ServiceHeader: Record Microsoft.Service.Document."Service Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var ModifyHeader: Boolean)` (integration)
- `OnBeforeServiceLineModify(var ServiceLine: Record Microsoft.Service.Document."Service Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var ModifyLine: Boolean; WhsePostParameters: Record "Whse. Post Parameters")` (integration)
- `OnHandleServiceLineOnNonWhseLineOnAfterCalcModifyLine(var ServiceLine: Record Microsoft.Service.Document."Service Line"; var ModifyLine: Boolean; WarehouseShipmentLine: Record "Warehouse Shipment Line")` (integration)
- `OnHandleServiceLineOnSourceDocumentServiceOrderOnBeforeModifyLine(var ServiceLine: Record Microsoft.Service.Document."Service Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; WhsePosrParameters: Record "Whse. Post Parameters")` (integration)
- `OnBeforeHandleServiceLine(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var ServiceLine: Record Microsoft.Service.Document."Service Line"; var ModifyLine: Boolean; var IsHandled: Boolean)` (integration)

## Event subscriptions

- OnGetSourceDocument subscribes to Codeunit "Whse.-Post Shipment" OnGetSourceDocumentOnElseCase
- OnInitSourceDocumentHeader subscribes to Codeunit "Whse.-Post Shipment" OnInitSourceDocumentHeader
- OnAfterInitSourceDocumentLines subscribes to Codeunit "Whse.-Post Shipment" OnAfterInitSourceDocumentLines
- OnPostSourceDocument subscribes to Codeunit "Whse.-Post Shipment" OnPostSourceDocument
- OnPrintDocuments subscribes to Codeunit "Whse.-Post Shipment" OnPrintDocuments
- OnCreatePostedShptLineOnBeforePostedWhseShptLineInsert subscribes to Codeunit "Whse.-Post Shipment" OnCreatePostedShptLineOnBeforePostedWhseShptLineInsert
- OnCreateWhseJnlLineOnSetSourceCode subscribes to Codeunit "Whse.-Post Shipment" OnCreateWhseJnlLineOnSetSourceCode

## Procedures

3 local procedures, no public ones.

## 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 416 "Release Service Document"](../codeunit/416.md) (3 calls: `OnInitSourceDocumentHeader → (object)`, `OnInitSourceDocumentHeader → Reopen`, `OnInitSourceDocumentHeader → SetSkipWhseRequestOperations`)
- [Codeunit 5980 "Service-Post"](../codeunit/5980.md) (3 calls: `OnPostSourceDocument → (object)`, `OnPostSourceDocument → SetPostingOptions`, `OnPostSourceDocument → SetSuppressCommit`)

## Across versions

- Present in: BC25-30
- Changed (declaration) in: 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: "Serv. Whse Post-Shipment")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
