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

# Codeunit 5856 "TransferOrder-Post Transfer"

> Codeunit 5856 "TransferOrder-Post Transfer" in Base Application (Microsoft.Inventory.Transfer). 6 public procedures, 23 events, 3 event subscribers. Present since at least BC23, still in BC30, changed in BC24-27.

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

## Properties

| Property | Value |
|---|---|
| TableNo | Transfer Header |
| Permissions | tabledata "Direct Trans. Header" = i, tabledata "Direct Trans. Line" = i, tabledata "G/L Entry" = r, tabledata "Item Entry Relation" = i |

## Events published

- `OnAfterCreateItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; TransLine: Record "Transfer Line"; DirectTransHeader: Record "Direct Trans. Header"; DirectTransLine: Record "Direct Trans. Line")` (integration)
  - subscribers: [Codeunit 20547 "Subc. TransOrderPostTrans Ext"](../codeunit/20547.md) OnAfterCreateItemJnlLine
- `OnAfterInsertDirectTransHeader(var DirectTransHeader: Record "Direct Trans. Header"; TransferHeader: Record "Transfer Header")` (integration)
- `OnAfterInsertDirectTransLine(var DirectTransLine: Record "Direct Trans. Line"; DirectTransHeader: Record "Direct Trans. Header"; TransLine: Record "Transfer Line")` (integration)
  - subscribers: [Codeunit 20411 "Qlty. Receiving Integration"](../codeunit/20411.md) HandleOnAfterInsertDirectTransLine
- `OnAfterInsertShptEntryRelation(var ItemEntryRelation: Record "Item Entry Relation"; var DirectTransLine: Record "Direct Trans. Line"; var Result: Integer)` (integration)
- `OnAfterPostItemJnlLine(var TransferLine3: Record "Transfer Line"; DirectTransHeader2: Record "Direct Trans. Header"; DirectTransLine2: Record "Direct Trans. Line"; ItemJournalLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")` (integration)
  - subscribers: [Codeunit 20547 "Subc. TransOrderPostTrans Ext"](../codeunit/20547.md) OnAfterPostItemJnlLineDirectTransfer
- `OnBeforeCheckDim(var TransferHeader: Record "Transfer Header"; var TransferLife: Record "Transfer Line")` (integration)
- `OnBeforeInsertDirectTransLine(TransferLine: Record "Transfer Line")` (integration)
  - subscribers: [Codeunit 20547 "Subc. TransOrderPostTrans Ext"](../codeunit/20547.md) OnBeforeInsertDirectTransLine
- `OnBeforePostWhseJnlLine(ItemJnlLine: Record "Item Journal Line"; OriginalQuantity: Decimal; OriginalQuantityBase: Decimal; var TempHandlingSpecification: Record "Tracking Specification" temporary; Direction: Integer; var IsHandled: Boolean)` (integration)
- `OnBeforeTransferTracking(var FromTransLine: Record "Transfer Line"; var ToTransLine: Record "Transfer Line"; TransferQty: Decimal; var IsHandled: Boolean)` (integration)
- `OnInsertDirectTransLineOnAfterPopulateDirectTransLine(var DirectTransLine: Record "Direct Trans. Line"; DirectTransHeader: Record "Direct Trans. Header"; TransLine: Record "Transfer Line")` (integration)
- `OnInsertDirectTransHeaderOnBeforeDirectTransHeaderInsert(var DirectTransHeader: Record "Direct Trans. Header"; TransferHeader: Record "Transfer Header")` (integration)
  - subscribers: [Codeunit 20413 "Qlty. Transfer Integration"](../codeunit/20413.md) HandleOnInsertDirectTransHeaderOnBeforeDirectTransHeaderInsert
- `OnInsertDirectTransHeaderOnBeforeGetNextNo(var DirectTransHeader: Record "Direct Trans. Header"; TransferHeader: Record "Transfer Header")` (integration)
  - subscribers: [Codeunit 20547 "Subc. TransOrderPostTrans Ext"](../codeunit/20547.md) OnInsertDirectTransHeaderOnBeforeGetNextNo
- `OnInsertDirectTransLineOnBeforeDirectTransHeaderInsert(var DirectTransHeader: Record "Direct Trans. Header"; TransLine: Record "Transfer Line"; var IsHandled: Boolean)` (integration)
- `OnPostWhseJnlLineOnBeforeSplitWhseJnlLine(var WhseJnlLine: Record "Warehouse Journal Line"; var TempWhseJnlLine2: Record "Warehouse Journal Line" temporary)` (integration)
- `OnRunOnAfterTransHeaderSetHideValidationDialog(var TransHeader: Record "Transfer Header"; var Rec: Record "Transfer Header"; var HideValidationDialog: Boolean)` (integration)
- `OnAfterTransferOrderPostTransfer(var TransferHeader: Record "Transfer Header"; var SuppressCommit: Boolean; PreviewMode: Boolean; var DirectTransHeader: Record "Direct Trans. Header"; InvtPickPutAway: Boolean)` (integration)
- `OnBeforeCheckItemVariantNotBlocked(TransLine: Record "Transfer Line"; ItemVariant: Record "Item Variant"; TransHeader: Record "Transfer Header"; Location: Record Location; WhseShip: Boolean; WhseReceive: Boolean; var IsHandled: Boolean)` (integration)
- `OnPostItemJnlLineBeforeItemJnlPostLineRunWithCheck(var ItemJournalLine: Record "Item Journal Line"; TransferLine: Record "Transfer Line"; DirectTransHeader: Record "Direct Trans. Header"; DirectTransLine: Record "Direct Trans. Line"; CommitIsSuppressed: Boolean; PreviewMode: Boolean)` (integration)
  - subscribers: [Codeunit 20541 "Subc. Transfer WIP Posting"](../codeunit/20541.md) HandleWipTransferOnPostItemJnlLineBeforeItemJnlPostLineRunWithCheck
- `OnBeforePostItemJnlLine(var DirectTransHeader: Record "Direct Trans. Header"; var TransferLine: Record "Transfer Line"; DirectTransLine: Record "Direct Trans. Line"; WhseShptHeader: Record "Warehouse Shipment Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; WhseShip: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeCreatePostedShptLineFromWhseShptLine(var TransferLine: Record "Transfer Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; var PostedWhseShipmentLine: Record "Posted Whse. Shipment Line"; var TempWhseSplitTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhsePostShipment: Codeunit "Whse.-Post Shipment")` (integration)
- `OnRunOnAfterTransLineSetFiltersForCheckShipmentLines(var TransferLine: Record "Transfer Line"; TransferHeader: Record "Transfer Header"; Location: Record Location; WhseShip: Boolean)` (integration)
- `OnRunOnAfterTransLineSetFiltersForInsertShipmentLines(var TransferLine: Record "Transfer Line"; TransferHeader: Record "Transfer Header"; Location: Record Location; WhseShip: Boolean)` (integration)
- `OnRunWithCheckOnBeforeTestRequireReceive(var Location: Record Location; var RequireReceiveValueToTest: Boolean)` (integration)

## Event subscriptions

- WarehouseShipmentLineOnValidateQtyToShip subscribes to Table "Warehouse Shipment Line" OnAfterValidateQtyToShip
- OnBeforePostValueEntryToGL subscribes to Codeunit "Item Jnl.-Post Line" OnBeforePostValueEntryToGL
- OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem subscribes to Codeunit "Item Jnl.-Post Line" OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem

## Procedures

- `RunWithCheck(var TransferHeader2: Record "Transfer Header")`
- `SetHideValidationDialog(NewHideValidationDialog: Boolean)`
- `TransferTracking(var FromTransLine: Record "Transfer Line"; var ToTransLine: Record "Transfer Line"; TransferQty: Decimal)`
- `SetWhseShptHeader(var WhseShptHeader2: Record "Warehouse Shipment Header")`
- `SetSuppressCommit(NewSuppressCommit: Boolean)`
- `SetPreviewMode(NewPreviewMode: Boolean)` (internal)

Plus 14 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 5740 "Transfer Header"](../table/5740.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 408 "DimensionManagement"](../codeunit/408.md) (4 calls: `CheckDimComb → CheckDimIDComb`, `CheckDimComb → GetDimCombErr`, `CheckDimValuePosting → CheckDimValuePosting`, …)
- [Codeunit 22 "Item Jnl.-Post Line"](../codeunit/22.md) (3 calls: `InsertShptEntryRelation → CollectTrackingSpecification`, `PostItemJnlLine → RunWithCheck`, `RunWithCheck → PostDeferredValueEntriesToGL`)
- [Codeunit 5763 "Whse.-Post Shipment"](../codeunit/5763.md) (3 calls: `CreatePostedShptLineFromWhseShptLine → CreatePostedShptLine`, `RunWithCheck → CreatePostedShptHeader`, `RunWithCheck → PostUpdateWhseDocuments`)
- [Codeunit 6500 "Item Tracking Management"](../codeunit/6500.md) (3 calls: `InsertShptEntryRelation → GetWhseItemTrkgSetup`, `PostItemJnlLine → RetrieveItemTracking`, `PostWhseJnlLine → SplitWhseJnlLine`)
- [Codeunit 7302 "WMS Management"](../codeunit/7302.md) (3 calls: `PostWhseJnlLine → CheckWhseJnlLine`, `PostWhseJnlLine → CreateWhseJnlLine`, `PostWhseJnlLine → SetTransferLine`)
- [Codeunit 99000836 "Transfer Line-Reserve"](../codeunit/99000836.md) (3 calls: `PostItemJnlLine → TransferTransferToItemJnlLine`, `TransferTracking → SynchronizeInboundTrackingForTransfer`, `TransferTracking → TransferTransferToTransfer`)
- [Codeunit 410 "Update Analysis View"](../codeunit/410.md) (1 call: `RunWithCheck → UpdateAll`)
- [Codeunit 447 "Record Link Management"](../codeunit/447.md) (1 call: `RunWithCheck → CopyLinks`)
- [Codeunit 5708 "Release Transfer Document"](../codeunit/5708.md) (1 call: `RunWithCheck → Release`)
- [Codeunit 5894 "Inventory Adjustment Handler"](../codeunit/5894.md) (1 call: `MakeInventoryAdjustment → MakeAutomaticInventoryAdjustment`)
- [Codeunit 7150 "Update Item Analysis View"](../codeunit/7150.md) (1 call: `RunWithCheck → UpdateAll`)
- [Codeunit 7301 "Whse. Jnl.-Register Line"](../codeunit/7301.md) (1 call: `PostWhseJnlLine → (object)`)
- [Codeunit 9070 "Document Errors Mgt."](../codeunit/9070.md) (1 call: `RunWithCheck → GetNothingToPostErrorMsg`)
- [Page 456 "No. Series"](../page/456.md) (1 call: `InsertDirectTransHeader → (object)`)

## Called by

- [Codeunit 5748 "Transfer Whse. Post Shipment"](../codeunit/5748.md) (6 calls: `PostSourceDirectTransferDocument → RunWithCheck`, `PostSourceDirectTransferDocument → SetSuppressCommit`, `PostSourceDirectTransferDocument → SetWhseShptHeader`, …)
- [Codeunit 7324 "Whse.-Activity-Post"](../codeunit/7324.md) (3 calls: `PostSourceDocument → (object)`, `PostSourceDocument → SetHideValidationDialog`, `PostSourceDocument → SetPreviewMode`)
- [Codeunit 5706 "TransferOrder-Post (Yes/No)"](../codeunit/5706.md) (2 calls: `PostTransferOrder → (object)`, `PostTransferOrder → SetPreviewMode`)
- [Codeunit 5707 "TransferOrder-Post + Print"](../codeunit/5707.md) (1 call: `Code → (object)`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-27

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