---
title: "Codeunit 240 ItemJnlManagement"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/240-itemjnlmanagement/
type: codeunit
id: 240
name: "ItemJnlManagement"
app: "Base Application"
namespace: Microsoft.Inventory.Journal
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/240-itemjnlmanagement/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 240 ItemJnlManagement

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/240-itemjnlmanagement/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| TemplateSelection | (Integer, Option, Boolean, var Record Item Journal Line, var Boolean) | - | public | 17-28 | - | - |
| TemplateSelectionFromBatch | (var Record Item Journal Batch) | - | public | 17-28 | - | - |
| OpenJnl | (var Code[10], var Record Item Journal Line) | - | public | 17-28 | - | - |
| OpenJnlBatch | (var Record Item Journal Batch) | - | public | 17-28 | - | - |
| CheckTemplateName | (Code[10], var Code[10]) | - | public | 17-28 | - | - |
| CheckName | (Code[10], var Record Item Journal Line) | - | public | 17-28 | - | - |
| SetName | (Code[10], var Record Item Journal Line) | - | public | 17-28 | - | - |
| LookupName | (var Code[10], var Record Item Journal Line) | - | public | 17-28 | - | - |
| GetItem | (Code[20], var Text[100]) | - | public | 17-28 | - | - |
| GetConsump | (var Record Item Journal Line, var Text[100]) | - | public | 17-28 | Pending 26.0 | Moved to codeunit Mfg. Item Journal Management |
| GetOutput | (var Record Item Journal Line, var Text[100], var Text[100]) | - | public | 17-28 | Pending 26.0 | Moved to codeunit Mfg. Item Journal Management |
| GetCapacity | (Enum Capacity Type, Code[20], var Text[100]) | - | public | 17-28 | Pending 26.0 | Moved to codeunit Mfg. Item Journal Management |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeCheckName | (Code[10], var Record Item Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckTemplateName | (Code[10], var Code[10]) | 17-19 | - | - |
| Integration event | OnBeforeLookupName | (var Record Item Journal Batch) | 17 | - | - |
| Integration event | OnBeforeOpenJnl | (var Code[10], var Record Item Journal Line) | 17-28 | - | - |
| Integration event | OnOpenJnlBatchOnBeforeCaseSelectItemJnlTemplate | (var Record Item Journal Template, var Record Item Journal Batch) | 17-28 | - | - |
| Integration event | OnTemplateSelectionSetFilter | (var Record Item Journal Template, var Option) | 17-28 | - | - |
| Integration event | OnBeforeLookupName | (var Record Item Journal Batch, var Boolean) | 18-23 | - | - |
| Integration event | OnAfterGetItem | (Record Item, var Text[100]) | 18-28 | - | - |
| Integration event | OnBeforeCheckTemplateName | (Code[10], var Code[10], var Record Item Journal Batch) | 20-28 | - | - |
| Integration event | OnBeforeLookupName | (var Record Item Journal Batch, var Boolean, var Code[10], var Record Item Journal Line) | 24-28 | - | - |
| Integration event | OnSetNameOnAfterAppliesFilterOnItemJnlLine | (var Record Item Journal Line, Code[10]) | 24-28 | - | - |
| Integration event | OnBeforeExitItemJnlBatchGetFilter | (var Record Item Journal Batch) | 25-28 | - | - |
| Integration event | OnBeforeTemplateSelection | (var Record Item Journal Line, var Boolean) | 25-28 | - | - |
| Integration event | OnTemplateSelectionOnAfterSelectItemJnlTemplate | (var Record Item Journal Template, var Record Item Journal Line, var Boolean) | 28 | - | - |
| Integration event | OnOpenJnlBatchOnAfterSelectItemJnlTemplate | (var Record Item Journal Template, var Record Item Journal Batch) | 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.
