---
title: "Codeunit 5845 Get Inventory Report"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5845-get-inventory-report/
type: codeunit
id: 5845
name: "Get Inventory Report"
app: "Base Application"
namespace: Microsoft.Inventory.Reconciliation
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5845-get-inventory-report/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 5845 Get Inventory Report

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5845-get-inventory-report/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Inventory.Reconciliation |
| Versions | 17-28 |
| Source file | Inventory/Reconciliation/GetInventoryReport.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| DrillDownDirectCostApplActual | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownOverheadAppliedActual | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownPurchaseVariance | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownInventoryAdjmt | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownInvtAccrualInterim | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownCOGS | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownCOGSInterim | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownWIPInventory | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownMaterialVariance | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownCapVariance | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownSubcontractedVariance | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownCapOverheadVariance | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownMfgOverheadVariance | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownInventoryInterim | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownOverheadAppliedToWIP | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownDirectCostApplToWIP | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownWIPToInvtInterim | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownInvtToWIP | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownInventory | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownDirectCostApplied | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| DrillDownOverheadApplied | (var Record Inventory Report Entry) | - | public | 17-28 | - | - |
| SetReportHeader | (var Record Inventory Report Header) | - | public | 17-28 | - | - |
| DrillDownMaterialNonInventoryVariance | (var Record Inventory Report Entry) | - | public | 27-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeIsGLNotTheSameHandled | (var Record Inventory Posting Setup, var Record Inventory Posting Setup, var Record Inventory Report Header, var Record Inventory Report Entry, var Boolean, var Decimal, Text[80]) | 18-28 | - | - |
| Integration event | OnCalcInvtPostingSetupOnBeforeAssignTempInvtPostingSetup | (var Record Inventory Report Entry, var Record Inventory Posting Setup, var Record Inventory Report Header, Record Inventory Posting Setup) | 18-28 | - | - |
| Integration event | OnCalcGenPostingSetupOnBeforeAssignTempGenPostingSetup | (var Record Inventory Report Entry, var Record General Posting Setup, var Record Inventory Report Header, Record General Posting Setup) | 18-28 | - | - |
| Integration event | OnAfterCalcValueEntries | (var Record Inventory Report Entry, var Record Value Entry) | 18-28 | - | - |
| Integration event | OnCalcDiffOnAfterCalcSumsTypeGLAccount | (var Record Inventory Report Entry) | 18-28 | - | - |
| Integration event | OnCalcDiffOnAfterCalcSumsTypeItem | (var Record Inventory Report Entry) | 18-28 | - | - |
| Integration event | OnCalcDiffOnBeforeCopytoInventoryReportEntry | (var Record Inventory Report Entry, var Record Inventory Report Entry) | 18-28 | - | - |
| Integration event | OnDrillDownGLBeforeRunPage | (var Record G/L Entry, var Record Inventory Report Entry) | 18-28 | - | - |
| Integration event | OnInsertGLInvtReportEntryBeforeCalcGLAccount | (var Record Inventory Report Header, var Record Inventory Report Entry, var Record G/L Account, var Boolean, var Decimal, Text[80]) | 18-28 | - | - |
| Integration event | OnAfterSetFiltersOverheadAppliedActual | (var Record Value Entry) | 20-28 | - | - |
| Integration event | OnAfterSetFiltersWIPInventory | (var Record Value Entry, Integer) | 20-28 | - | - |
| Integration event | OnBeforeDrillDownInvtToWIP | (var Record Inventory Report Entry, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeCheckIfNoDifference | (var Record Inventory Report Entry, var Boolean) | 20-28 | - | - |
| Integration event | OnCheckGLClosingOverlapsOnAfterEmptyAccountingPeriodBeforeExit | (var Record Inventory Report Entry, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeCheckDirectPostings | (var Record Inventory Report Entry, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeCalcGLAccount | (var Record G/L Account, var Decimal, var Boolean) | 21-28 | - | - |
| Integration event | OnAfterCalcGenPostingSetup | (var Record Inventory Report Entry) | 25-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.
