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

# Codeunit 241 "Item Jnl.-Post"

> Codeunit 241 "Item Jnl.-Post" in Base Application (Microsoft.Inventory.Posting). 2 public procedures, 3 events, 1 event subscribers. Present since at least BC23, still in BC30.

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

## Properties

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

## Events published

- `OnBeforeCode(var ItemJournalLine: Record "Item Journal Line"; var HideDialog: Boolean; var SuppressCommit: Boolean; var IsHandled: Boolean)` (integration)
- `OnCodeOnAfterItemJnlPostBatchRun(var ItemJournalLine: Record "Item Journal Line"; var HideDialog: Boolean; SuppressCommit: Boolean)` (integration)
- `OnCodeOnBeforeItemJnlPostBatchRun(var ItemJournalLine: Record "Item Journal Line")` (integration)

## Event subscriptions

- OnRunPreview subscribes to Codeunit "Gen. Jnl.-Post Preview" OnRunPreview

## Procedures

- `SetPreviewMode(NewPreviewMode: Boolean)`
- `Preview(var ItemJournalLine: Record "Item Journal Line")`

Plus 1 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 19 "Gen. Jnl.-Post Preview"](../codeunit/19.md) (2 calls: `Code → ThrowError`, `Preview → Preview`)
- [Codeunit 23 "Item Jnl.-Post Batch"](../codeunit/23.md) (2 calls: `Code → (object)`, `Code → SetSuppressCommit`)
- [Codeunit 9080 "Journal Errors Mgt."](../codeunit/9080.md) (1 call: `Code → GetNothingToPostErrorMsg`)
- [Codeunit 9500 "Sequence No. Mgt."](../codeunit/9500.md) (1 call: `OnRun → SetPreviewMode`)

## Called by

- [Table extension 99000758 "Mfg. Item Journal Line"](../tableextension/99000758.md) (2 calls: `PostingItemJnlFromProduction → (object)`, `PreviewPostItemJnlFromProduction → Preview`)
- [Page 392 "Phys. Inventory Journal"](../page/392.md) (1 call: `ShowPreview → Preview`)
- [Page 393 "Item Reclass. Journal"](../page/393.md) (1 call: `ShowPreview → Preview`)
- [Page 5803 "Revaluation Journal"](../page/5803.md) (1 call: `ShowPreview → Preview`)
- [Page 99000773 "Capacity Journal"](../page/99000773.md) (1 call: `ShowPreview → Preview`)
- [Page 99000778 "Recurring Capacity Journal"](../page/99000778.md) (1 call: `ShowPreview → Preview`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: none

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