---
id: object/codeunit/5748
type: object
title: Codeunit 5748 "Transfer Whse. Post Shipment"
summary: Codeunit 5748 "Transfer Whse. Post Shipment" in Base Application (Microsoft.Warehouse.Posting). 14 events, 6 event subscribers. Introduced in BC25, still in BC30, changed in BC29.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "25"
  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: 3d1312894f63045609cc7651b743af34e2cb96daa81b72143848935a893d6bf5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Transfer/TransferWhsePostShipment.Codeunit.al
    title: src/Layers/W1/BaseApp/Inventory/Transfer/TransferWhsePostShipment.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: 5748
name: Transfer 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:
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 28
  events: 14
  subscribers: 6
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 0
  implements: 0
---

# Codeunit 5748 "Transfer Whse. Post Shipment"

> Codeunit 5748 "Transfer Whse. Post Shipment" in Base Application (Microsoft.Warehouse.Posting). 14 events, 6 event subscribers. Introduced in BC25, still in BC30, changed in BC29.

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

## Events published

- `OnBeforeHandleTransferLine(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var TransLine: Record Microsoft.Inventory.Transfer."Transfer Line"; WhseShptHeader: Record "Warehouse Shipment Header"; var ModifyLine: Boolean; var IsHandled: Boolean)` (integration)
- `OnAfterFindWhseShptLineForTransLine(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var TransferLine: Record Microsoft.Inventory.Transfer."Transfer Line"; var IsHandled: Boolean; var ModifyLine: Boolean)` (integration)
- `OnHandleTransferLineOnAfterCalcShouldModifyShipmentDate(WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var TransferLine: Record Microsoft.Inventory.Transfer."Transfer Line"; var ShouldModifyShipmentDate: Boolean)` (integration)
- `OnBeforeTransLineModify(var TransferLine: Record Microsoft.Inventory.Transfer."Transfer Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var ModifyLine: Boolean)` (integration)
- `OnBeforeValidateTransferLineQtyToShip(var TransferLine: Record Microsoft.Inventory.Transfer."Transfer Line"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var IsHandled: Boolean)` (integration)
- `OnAfterTransferPostShipment(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; TransferHeader: Record Microsoft.Inventory.Transfer."Transfer Header"; WhsePostParameters: Record "Whse. Post Parameters")` (integration)
- `OnPostSourceDocumentOnBeforeCaseTransferLine(var TransferHeader: Record Microsoft.Inventory.Transfer."Transfer Header"; WarehouseShipmentLine: Record "Warehouse Shipment Line")` (integration)
- `OnBeforeTryPostSourceTransferDocument(var TransferPostShipment: Codeunit Microsoft.Inventory.Transfer."TransferOrder-Post Shipment"; var TransHeader: Record Microsoft.Inventory.Transfer."Transfer Header"; var IsHandled: Boolean)` (integration)
- `OnAfterTryPostSourceTransferDocument(var CounterSourceDocOK: Integer; var TransferPostShipment: Codeunit Microsoft.Inventory.Transfer."TransferOrder-Post Shipment"; var TransHeader: Record Microsoft.Inventory.Transfer."Transfer Header"; Result: Boolean)` (integration)
- `OnAfterPostSourceTransferDocument(var CounterSourceDocOK: Integer; var TransferPostShipment: Codeunit Microsoft.Inventory.Transfer."TransferOrder-Post Shipment"; var TransHeader: Record Microsoft.Inventory.Transfer."Transfer Header")` (integration)
- `OnBeforePostSourceTransferDocument(var TransferPostShipment: Codeunit Microsoft.Inventory.Transfer."TransferOrder-Post Shipment"; var TransHeader: Record Microsoft.Inventory.Transfer."Transfer Header"; var CounterSourceDocOK: Integer; var IsHandled: Boolean)` (integration)
- `OnInitSourceDocumentHeaderOnBeforeTransferHeaderUpdatePostingDate(var TransferHeader: Record "Transfer Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var ModifyHeader: Boolean; IsHandled: Boolean)` (integration)
- `OnInitSourceDocumentHeaderOnBeforeTransHeaderModify(var TransferHeader: Record "Transfer Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var ModifyHeader: Boolean)` (integration)
- `OnPostSourceDocumentOnBeforePrintTransferShipment(var TransferHeader: Record "Transfer Header"; 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
- OnBeforeCheckWhseShptLines subscribes to Codeunit "Whse.-Post Shipment" OnBeforeCheckWhseShptLines
- OnPrintDocuments subscribes to Codeunit "Whse.-Post Shipment" OnPrintDocuments

## Procedures

8 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 5704 "TransferOrder-Post Shipment"](../codeunit/5704.md) (14 calls: `PostSourceDirectTransferDocument → RunWithCheck`, `PostSourceDirectTransferDocument → SetSuppressCommit`, `PostSourceDirectTransferDocument → SetWhseShptHeader`, …)
- [Codeunit 5856 "TransferOrder-Post Transfer"](../codeunit/5856.md) (6 calls: `PostSourceDirectTransferDocument → RunWithCheck`, `PostSourceDirectTransferDocument → SetSuppressCommit`, `PostSourceDirectTransferDocument → SetWhseShptHeader`, …)
- [Codeunit 5705 "TransferOrder-Post Receipt"](../codeunit/5705.md) (4 calls: `PostSourceDirectTransferDocument → (object)`, `PostSourceDirectTransferDocument → SetSuppressCommit`, `TryPostDirectTransferDocument → (object)`, …)

## Across versions

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