---
id: object/codeunit/21
type: object
title: Codeunit 21 "Item Jnl.-Check Line"
summary: Codeunit 21 "Item Jnl.-Check Line" in Base Application (Microsoft.Inventory.Journal). 3 public procedures, 25 events. Present since at least BC23, still in BC30, changed in BC25-29.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  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: f2f9f8cf11ce6eb485c2c5e17a4510ef90127f1fde86f7155f59517438ff85b8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Journal/ItemJnlCheckLine.Codeunit.al
    title: src/Layers/W1/BaseApp/Inventory/Journal/ItemJnlCheckLine.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ru
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 21
name: Item Jnl.-Check Line
namespace: Microsoft.Inventory.Journal
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries:
  - ru
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 43
  events: 25
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 7
  calls: 4
  called_by: 3
  implements: 0
---

# Codeunit 21 "Item Jnl.-Check Line"

> Codeunit 21 "Item Jnl.-Check Line" in Base Application (Microsoft.Inventory.Journal). 3 public procedures, 25 events. Present since at least BC23, still in BC30, changed in BC25-29.

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

## Properties

| Property | Value |
|---|---|
| TableNo | Item Journal Line |

## Events published

- `OnAfterCheckItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; CalledFromInvtPutawayPick: Boolean; CalledFromAdjustment: Boolean)` (integration)
- `OnAfterGetItem(Item: Record Item; var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeCheckBins(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean; CalledFromAdjustment: Boolean)` (integration)
- `OnBeforeCheckDimensions(var ItemJournalLine: Record "Item Journal Line"; CalledFromAdjustment: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeCheckInTransitLocations(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeCheckLocation(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeCheckOutputFields(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeDateNotAllowed(ItemJnlLine: Record "Item Journal Line"; var DateCheckDone: Boolean)` (integration)
- `OnBeforeCheckPhysInventory(ItemJnlLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeCheckEmptyQuantity(ItemJnlLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
  - subscribers: [Codeunit 20541 "Subc. Transfer WIP Posting"](../codeunit/20541.md) HandleWipTransferOnBeforeCheckEmptyQuantity
- `OnBeforeCheckNewBinCode(ItemJnlLine: Record "Item Journal Line"; Location: Record Location; var IsHandled: Boolean)` (integration)
- `OnCheckBinsOnBeforeCheckNonZeroQuantity(ItemJnlLine: Record "Item Journal Line"; var CalledFromAdjustment: Boolean; var IsHandled: Boolean)` (integration)
- `OnCheckDatesOnAfterCalcShouldShowError(var ItemJournalLine: Record "Item Journal Line"; var ShouldShowError: Boolean; CalledFromAdjustment: Boolean)` (integration)
- `OnCheckDimensionsOnAfterAssignDimTableIDs(var ItemJnlLine: Record "Item Journal Line"; var TableID: array[10] of Integer; var No: array[10] of Code[20])` (integration)
- `OnRunCheckOnAfterCalcShouldCheckLocationCode(var ItemJournalLine: Record "Item Journal Line"; var ShouldCheckLocationCode: Boolean)` (integration)
- `OnRunCheckOnAfterCalcShouldCheckDiscountAmount(var ItemJournalLine: Record "Item Journal Line"; var ShouldCheckDiscountAmount: Boolean)` (integration)
- `OnBeforeCheckVariantMandatory(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnRunCheckOnAfterCalcShouldCheckApplication(var ItemJournalLine: Record "Item Journal Line"; var ShouldCheckApplication: Boolean)` (integration)
- `OnRunCheckOnBeforeTestFieldAppliesToEntry(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeGetItem(var Item: Record Item; var IsHandled: Boolean; ItemJournalLine: Record "Item Journal Line")` (integration)
- `OnRunOnCheckWarehouse(var ItemJournalLine: Record "Item Journal Line"; CalledFromAdjustment: Boolean; CalledFromInvtPutawayPick: Boolean)` (integration)
  - subscribers: [Codeunit 910 "Asm. Item Jnl.-Check Line"](../codeunit/910.md) OnRunOnCheckWarehouse, [Codeunit 99000760 "Mfg. Item Jnl. Check Line"](../codeunit/99000760.md) OnRunOnCheckWarehouse
- `OnCheckDimensionsOnAfterSetTableValues(ItemJournalLine: Record "Item Journal Line"; var TableID: array[10] of Integer; var No: array[10] of Code[20])` (integration)
  - subscribers: [Codeunit 99000760 "Mfg. Item Jnl. Check Line"](../codeunit/99000760.md) OnCheckDimensionsOnAfterSetTableValues
- `OnCheckEmptyQuantity(var ItemJournalLine: Record "Item Journal Line")` (integration)
  - subscribers: [Codeunit 99000760 "Mfg. Item Jnl. Check Line"](../codeunit/99000760.md) OnCheckEmptyQuantity
- `OnCheckOutputFields(var ItemJournalLine: Record "Item Journal Line")` (internal)
  - subscribers: [Codeunit 99000760 "Mfg. Item Jnl. Check Line"](../codeunit/99000760.md) OnCheckOutputFields
- `OnCheckBinsOnCheckForEntryTypeOutput(var ItemJournalLine: Record "Item Journal Line"; var ShouldExit: Boolean)` (internal)
  - subscribers: [Codeunit 99000760 "Mfg. Item Jnl. Check Line"](../codeunit/99000760.md) OnCheckBinsOnCheckForEntryTypeOutput

## Procedures

- `RunCheck(var ItemJournalLine: Record "Item Journal Line")`
- `SetCalledFromInvtPutawayPick(NewCalledFromInvtPutawayPick: Boolean)`
- `SetCalledFromAdjustment(NewCalledFromAdjustment: Boolean)`

Plus 15 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 83 "Item Journal Line"](../table/83.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) (6 calls: `CheckDimensions → CheckDefaultDimensionHasCodeMandatory`, `CheckDimensions → CheckDimIDComb`, `CheckDimensions → GetDimCombErr`, …)
- [Codeunit 19 "Gen. Jnl.-Post Preview"](../codeunit/19.md) (1 call: `RunCheck → IsActive`)
- [Codeunit 5700 "User Setup Management"](../codeunit/5700.md) (1 call: `CheckDates → CheckAllowedPostingDate`)
- [Codeunit 7302 "WMS Management"](../codeunit/7302.md) (1 call: `CheckBins → CheckInbOutbBin`)

## Called by

- [Codeunit 22 "Item Jnl.-Post Line"](../codeunit/22.md) (4 calls: `Code → RunCheck`, `Code → SetCalledFromAdjustment`, `Code → SetCalledFromInvtPutawayPick`, …)
- [Codeunit 23 "Item Jnl.-Post Batch"](../codeunit/23.md) (1 call: `CheckLines → RunCheck`)
- [Codeunit 9078 "Check Item Jnl. Line. Backgr."](../codeunit/9078.md) (1 call: `RunItemJnlCheckLineCodeunit → (object)`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25-29

## Countries that replace it

[RU](../../localizations/ru.md)

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: "Item Jnl.-Check Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
