---
id: object/codeunit/20428
type: object
title: Codeunit 20428 "Qlty. Item Tracking"
summary: Codeunit 20428 "Qlty. Item Tracking" in Quality Management (Microsoft.QualityManagement.Integration.Inventory). 6 public procedures. 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: 339c0eb62087aad1d6ff11c00067cacda9152809f2a1ae3b4f7e8b2f3c770988
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/Integration/Inventory/QltyItemTracking.Codeunit.al
    title: src/Apps/W1/Quality Management/app/src/Integration/Inventory/QltyItemTracking.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: 20428
name: Qlty. Item Tracking
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: 12
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 12
  implements: 0
---

# Codeunit 20428 "Qlty. Item Tracking"

> Codeunit 20428 "Qlty. Item Tracking" in Quality Management (Microsoft.QualityManagement.Integration.Inventory). 6 public procedures. 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/QltyItemTracking.Codeunit.al) · facts from BC29

## Procedures

- `SetLotBlockState(QltyInspectionHeader: Record "Qlty. Inspection Header"; Blocked: Boolean)` (internal): Sets the blocked state of the inspection's lot information, creating the information record when necessary.
- `SetSerialBlockState(QltyInspectionHeader: Record "Qlty. Inspection Header"; Blocked: Boolean)` (internal): Sets the blocked state of the inspection's serial information, creating the information record when necessary.
- `SetPackageBlockState(QltyInspectionHeader: Record "Qlty. Inspection Header"; Blocked: Boolean)` (internal): Sets the blocked state of the inspection's package information, creating the information record when necessary.
- `GetMostRecentResultFor(ItemNo: Code[20]; VariantCodeFilter: Text; LotNo: Code[50]; SerialNo: Code[50]; PackageNo: Code[50]; var QualityResultCode: Code[20]; var QualityResultDescription: Text)`: Gets the result code and description from the most recently modified inspection matching the item-tracking filters.
- `IsItemTrackingUsed(ItemNo: Code[20]): Boolean` (internal): Determines whether the item requires lot, serial, or package tracking for any supported transaction type.
- `IsItemTrackingUsed(ItemNo: Code[20]; var TempItemTrackingSetup: Record "Item Tracking Setup" temporary): Boolean` (internal): Updates the requested tracking flags with those used by the item and determines whether any remain enabled.

Plus 6 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 20437 "Qlty. Notification Mgmt."](../codeunit/20437.md) (3 calls: `SetLotBlockState → NotifyItemTrackingBlockStateChanged`, `SetPackageBlockState → NotifyItemTrackingBlockStateChanged`, `SetSerialBlockState → NotifyItemTrackingBlockStateChanged`)

## Called by

- [Page 20414 "Qlty. Inspections API"](../page/20414.md) (6 calls: `BlockLot → SetLotBlockState`, `BlockPackage → SetPackageBlockState`, `BlockSerial → SetSerialBlockState`, …)
- [Table 20405 "Qlty. Inspection Header"](../table/20405.md) (4 calls: `AssistEditLotNo → IsItemTrackingUsed`, `AssistEditPackageNo → IsItemTrackingUsed`, `AssistEditSerialNo → IsItemTrackingUsed`, …)
- [Codeunit 20424 "Qlty. Workflow Response"](../codeunit/20424.md) (3 calls: `HandleOnExecuteWorkflowResponse → SetLotBlockState`, `HandleOnExecuteWorkflowResponse → SetPackageBlockState`, `HandleOnExecuteWorkflowResponse → SetSerialBlockState`)
- [Codeunit 20404 "Qlty. Inspection - Create"](../codeunit/20404.md) (1 call: `CreateInspectionForSelfOrDirectParent → IsItemTrackingUsed`)
- [Page extension 20409 "Qlty. Item Tracking Summary"](../pageextension/20409.md) (1 call: `OnAfterGetRecord → GetMostRecentResultFor`)
- [Page extension 20410 "Qlty. Item Avail. by Lot No."](../pageextension/20410.md) (1 call: `OnAfterGetRecord → GetMostRecentResultFor`)
- [Page extension 20411 "Qlty. Lot No. Info. List"](../pageextension/20411.md) (1 call: `OnAfterGetRecord → GetMostRecentResultFor`)
- [Page extension 20412 "Qlty. Lot No. Info. Card"](../pageextension/20412.md) (1 call: `OnAfterGetRecord → GetMostRecentResultFor`)
- [Page extension 20413 "Qlty. Serial No. Info. List"](../pageextension/20413.md) (1 call: `OnAfterGetRecord → GetMostRecentResultFor`)
- [Page extension 20414 "Qlty. Serial No. Info. Card"](../pageextension/20414.md) (1 call: `OnAfterGetRecord → GetMostRecentResultFor`)
- [Page extension 20419 "Qlty. Package No. Info. List"](../pageextension/20419.md) (1 call: `OnAfterGetRecord → GetMostRecentResultFor`)
- [Page extension 20420 "Qlty. Package No. Info. Card"](../pageextension/20420.md) (1 call: `OnAfterGetRecord → GetMostRecentResultFor`)

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