---
id: object/codeunit/20454
type: object
title: Codeunit 20454 "Qlty. Item Journal Management"
summary: Codeunit 20454 "Qlty. Item Journal Management" in Quality Management (Microsoft.QualityManagement.Integration.Inventory). 4 public procedures, 8 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - quality management
versions:
  introduced: "29"
  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: 6f786065fcd06a56f4517487bf2c06aa441cbedd329b974dd645f6d10919dbc5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/Integration/Inventory/QltyItemJournalManagement.Codeunit.al
    title: src/Apps/W1/Quality Management/app/src/Integration/Inventory/QltyItemJournalManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10270
object_type: codeunit
object_id: 20454
name: Qlty. Item Journal Management
namespace: Microsoft.QualityManagement.Integration.Inventory
app: Quality Management
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 13
  events: 8
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 5
  called_by: 4
  implements: 0
---

# Codeunit 20454 "Qlty. Item Journal Management"

> Codeunit 20454 "Qlty. Item Journal Management" in Quality Management (Microsoft.QualityManagement.Integration.Inventory). 4 public procedures, 8 events. Introduced in BC29, still in BC30.

Quality Management · Microsoft.QualityManagement.Integration.Inventory · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/Integration/Inventory/QltyItemJournalManagement.Codeunit.al) · facts from BC29

## Events published

- `OnBeforeGenericCreateWarehouseJournalLine(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempQuantityToActQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var WarehouseJournalBatch: Record "Warehouse Journal Batch"; var WarehouseJournalLine: Record "Warehouse Journal Line"; var IsHandled: Boolean)` (integration): Notifies subscribers before a warehouse journal line is created and permits replacement of the standard behavior.
- `OnAfterGenericCreateWarehouseJournalLine(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempQuantityToActQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var WarehouseJournalBatch: Record "Warehouse Journal Batch"; var WarehouseJournalLine: Record "Warehouse Journal Line")` (integration): Notifies subscribers after a warehouse journal line is created.
- `OnBeforeGenericCreateItemJournalLine(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempQuantityToActQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var ItemJournalBatch: Record "Item Journal Batch"; var ItemJournalLine: Record "Item Journal Line"; var ReservationEntry: Record "Reservation Entry"; var IsHandled: Boolean)` (integration): Notifies subscribers before an item journal line is created and permits replacement of the standard behavior.
- `OnAfterGenericCreateItemJournalLine(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempQuantityToActQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var ItemJournalBatch: Record "Item Journal Batch"; var ItemJournalLine: Record "Item Journal Line"; var ReservationEntry: Record "Reservation Entry")` (integration): Notifies subscribers after an item journal line and optional reservation entry are created.
- `OnBeforePostItemJournal(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var ItemJournalLine: Record "Item Journal Line"; var AllLinesPosted: Boolean; var IsHandled: Boolean)` (integration): Notifies subscribers before item journal lines are posted and permits replacement of the standard behavior.
- `OnAfterPostItemJournal(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var ItemJournalLine: Record "Item Journal Line"; var AllLinesPosted: Boolean)` (integration): Notifies subscribers after item journal lines have been posted.
- `OnBeforePostWarehouseJournal(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var WarehouseJournalLine: Record "Warehouse Journal Line"; var AllLinesPosted: Boolean; var IsHandled: Boolean)` (integration): Notifies subscribers before warehouse journal lines are posted and permits replacement of the standard behavior.
- `OnAfterPostWarehouseJournal(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var WarehouseJournalLine: Record "Warehouse Journal Line"; var AllLinesPosted: Boolean)` (integration): Notifies subscribers after warehouse journal lines have been posted.

## Procedures

- `CreateWarehouseJournalLine(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempQuantityToActQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var WarehouseJournalBatch: Record "Warehouse Journal Batch"; var WarehouseJournalLine: Record "Warehouse Journal Line"; var WhseItemTrackingLine: Record "Whse. Item Tracking Line")` (internal): Creates a warehouse movement or adjustment journal line and its warehouse tracking line when required. The kind of line it creates depends on the batch supplied and the instruction.
- `PostWarehouseJournal(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var WarehouseJournalLine: Record "Warehouse Journal Line"): Boolean` (internal): Posts the filtered warehouse journal lines and reports document-creation failures for individual lines.
- `CreateItemJournalLine(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempQuantityToActQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var ItemJournalBatch: Record "Item Journal Batch"; var ItemJournalLine: Record "Item Journal Line"; var ReservationEntry: Record "Reservation Entry")` (internal): Creates an item journal movement or adjustment line and its reservation entry when tracking is required.
- `PostItemJournal(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var ItemJournalLine: Record "Item Journal Line"): Boolean` (internal): Posts the filtered item journal lines and reports document-creation failures for individual lines.

Plus 1 local procedures.

## 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 20439 "Qlty. Item Tracking Mgmt."](../codeunit/20439.md) (5 calls: `CreateItemJournalLine → CreateItemJournalLineReservationEntry`, `CreateItemJournalLine → GetExpirationDate`, `CreateWarehouseJournalLine → CreateWarehouseJournalLineReservationEntry`, …)
- [Codeunit 20437 "Qlty. Notification Mgmt."](../codeunit/20437.md) (2 calls: `PostItemJournal → NotifyDocumentCreationFailed`, `PostWarehouseJournal → NotifyDocumentCreationFailed`)
- [Page 456 "No. Series"](../page/456.md) (2 calls: `CreateItemJournalLine → (object)`, `CreateWarehouseJournalLine → (object)`)
- [Codeunit 23 "Item Jnl.-Post Batch"](../codeunit/23.md) (1 call: `PostItemJournal → (object)`)
- [Codeunit 7304 "Whse. Jnl.-Register Batch"](../codeunit/7304.md) (1 call: `PostWarehouseJournal → (object)`)

## Called by

- [Codeunit 20443 "Qlty. Disp. Change Tracking"](../codeunit/20443.md) (4 calls: `CreateTrackingItemReclassLine → CreateItemJournalLine`, `CreateTrackingWarehouseReclassLine → CreateWarehouseJournalLine`, `PerformDisposition → PostItemJournal`, …)
- [Codeunit 20446 "Qlty. Disp. Neg. Adjust Inv."](../codeunit/20446.md) (2 calls: `CreateNegativeItemAdjustmentLine → CreateItemJournalLine`, `CreateNegativeWarehouseAdjustmentLine → CreateWarehouseJournalLine`)
- [Codeunit 20449 "Qlty. Disp. Move Whse.Reclass."](../codeunit/20449.md) (2 calls: `CreateWarehouseReclassLine → CreateWarehouseJournalLine`, `PerformDisposition → PostWarehouseJournal`)
- [Codeunit 20452 "Qlty. Disp. Move Item Reclass."](../codeunit/20452.md) (2 calls: `CreateItemReclassificationLine → CreateItemJournalLine`, `PerformDisposition → PostItemJournal`)

## Recent changes

- 2026-08-20 [#10270 [Quality Management] Repair and improve XML documentation of procedures](../../changes/bcapps/10270.md) (main, BC30, refactor)

## Across versions

- Present in: BC29-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: "Qlty. Item Journal Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
