---
title: "Codeunit 5884 Phys. Invt. Order-Post"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5884-phys-invt-order-post/
type: codeunit
id: 5884
name: "Phys. Invt. Order-Post"
app: "Base Application"
namespace: Microsoft.Inventory.Counting.Document
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5884-phys-invt-order-post/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 5884 Phys. Invt. Order-Post

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5884-phys-invt-order-post/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Inventory.Counting.Document |
| Versions | 17-28 |
| Source file | Inventory/Counting/Document/PhysInvtOrderPost.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Code | () | - | public | 17-28 | - | - |
| SetSuppressCommit | (Boolean) | - | public | 18-28 | - | - |
| SetHideProgressWindow | (Boolean) | - | public | 20-28 | - | - |
| SetPreviewMode | (Boolean) | - | internal | 22-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterOnRun | (var Record Phys. Invt. Order Header, var Record Pstd. Phys. Invt. Order Hdr) | 17-28 | - | - |
| Integration event | OnBeforeCode | (var Record Phys. Invt. Order Header) | 17-19 | - | - |
| Integration event | OnBeforeItemJnlPostLine | (var Record Item Journal Line, Record Phys. Invt. Order Line) | 17-19 | - | - |
| Integration event | OnCheckOrderLineOnBeforeGetSamePhysInvtOrderLine | (Record Phys. Invt. Order Header, Record Phys. Invt. Order Line, var Record Phys. Invt. Order Line, var Text[250], var Boolean) | 17-28 | - | - |
| Integration event | OnInsertEntryRelationOnBeforeInsert | (var Record Item Entry Relation, Record Tracking Specification, Record Pstd. Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnBeforeInsertPostedHeader | (var Record Phys. Invt. Order Header) | 17-28 | - | - |
| Integration event | OnBeforeInsertPostedLine | (Record Pstd. Phys. Invt. Order Hdr, Record Phys. Invt. Order Line, var Record Pstd. Phys. Invt. Order Line, var Boolean) | 17-28 | - | - |
| Integration event | OnInsertPostedHeaderOnAfterTransferfields | (Record Phys. Invt. Order Header, var Record Pstd. Phys. Invt. Order Hdr) | 17-28 | - | - |
| Integration event | OnInsertPostedHeaderOnBeforeInsert | (Record Phys. Invt. Order Header, var Record Pstd. Phys. Invt. Order Hdr, var Boolean) | 17-28 | - | - |
| Integration event | OnInsertPostedRecordingsOnBeforeInsertHdr | (Record Phys. Invt. Record Header, var Record Pstd. Phys. Invt. Record Hdr, var Boolean) | 17-28 | - | - |
| Integration event | OnInsertPostedRecordingsOnBeforeInsertLine | (Record Pstd. Phys. Invt. Record Hdr, Record Phys. Invt. Record Line, var Record Pstd. Phys. Invt. Record Line, var Boolean) | 17-28 | - | - |
| Integration event | OnPostWhseJnlLineOnBeforeCheckWhseJnlLine | (var Record Warehouse Journal Line, Boolean, Record Location, Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnPostPhysInventoryOrderLineOnBeforePostPositiveItemJnlLine | (var Record Phys. Invt. Order Line, Boolean, var Record Item Journal Line, var Record Pstd. Phys. Invt. Order Hdr, var Record Pstd. Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnBeforeChecLocationDirectedPutAwayAndPick | (Record Phys. Invt. Order Line, var Boolean) | 18-28 | - | - |
| Integration event | OnCodeOnAfterSetFilters | (var Record Phys. Invt. Order Line) | 18-28 | - | - |
| Integration event | OnPostPhysInventoryOrderLineOnAfterInsertPostedLine | (Record Phys. Invt. Order Line, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforePostWhseJnlLine | (var Record Item Journal Line, var Record Phys. Invt. Order Line, var Record Pstd. Phys. Invt. Order Hdr, var Decimal, var Decimal, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeCode | (var Record Phys. Invt. Order Header, var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeItemJnlPostLine | (var Record Item Journal Line, Record Phys. Invt. Order Line, var Codeunit Item Jnl.-Post Line, Boolean) | 20-28 | - | - |
| Integration event | OnAfterIsDifference | (Record Phys. Invt. Order Line) | 20-28 | - | - |
| Integration event | OnThrowDifferenceError | (Record Phys. Invt. Order Line, var Text) | 20-28 | - | - |
| Integration event | OnCheckOrderLineOnBeforeTestFieldItemBlocked | (Record Item, var Boolean) | 20-28 | - | - |
| Integration event | OnCheckOrderLineOnBeforeTestFieldItemVariantBlocked | (Record Item Variant, var Boolean) | 23-28 | - | - |
| Integration event | OnCodeOnAferPostPhysInventoryOrderLineNonNegative | (var Record Phys. Invt. Order Header, var Record Phys. Invt. Order Line, var Codeunit Item Jnl.-Post Line) | 23-28 | - | - |
| Integration event | OnAfterCode | (var Record Phys. Invt. Order Header, var Record Pstd. Phys. Invt. Order Hdr) | 23-28 | - | - |
| Integration event | OnCodeOnBeforeCheckLinesToPost | (var Record Phys. Invt. Order Header, var Boolean, var Boolean) | 23-28 | - | - |
| Integration event | OnCodeOnAfterMakeInventoryAdjustment | (var Record Phys. Invt. Order Header) | 23-28 | - | - |
| Integration event | OnPostItemJnlLineOnBeforeTransferResEntry | (var Record Item Journal Line, Record Phys. Invt. Order Line, Decimal, Boolean) | 27-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.
