---
id: object/codeunit/20440
type: object
title: Codeunit 20440 "Qlty. Report Mgmt."
summary: Codeunit 20440 "Qlty. Report Mgmt." in Quality Management (Microsoft.QualityManagement.Reports). 22 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: 927f296c90e896f8b25cce6bed766b17c91ee6c691ecf67f4732599b12e15845
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/Reports/QltyReportMgmt.Codeunit.al
    title: src/Apps/W1/Quality Management/app/src/Reports/QltyReportMgmt.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: 20440
name: Qlty. Report Mgmt.
namespace: Microsoft.QualityManagement.Reports
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: 25
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 7
  called_by: 1
  implements: 0
---

# Codeunit 20440 "Qlty. Report Mgmt."

> Codeunit 20440 "Qlty. Report Mgmt." in Quality Management (Microsoft.QualityManagement.Reports). 22 public procedures. Introduced in BC29, still in BC30.

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

## Procedures

- `PrintGeneralPurposeInspection(var QltyInspectionHeader: Record "Qlty. Inspection Header")` (internal)
- `PrintNonConformance(var QltyInspectionHeader: Record "Qlty. Inspection Header")` (internal): Prints the configured non-conformance report or the default report when none is configured.
- `PrintCertificateOfAnalysis(var QltyInspectionHeader: Record "Qlty. Inspection Header")` (internal): Prints the configured certificate of analysis report or the default report when none is configured.
- `ResolveCompanyInformation(var CompanyInformation: Record "Company Information"; var CompanyInformationArray: array[8] of Text[100]; var AllCompanyInformation: Text; var HomePageValueText: Text; HomePageLbl: Text; var HomePageLabelText: Text; var EmailValueText: Text; EmailLbl: Text; var EmailLabelText: Text; var PhoneNoValueText: Text; PhoneNoLbl: Text; var PhoneNoLabelText: Text)` (internal): Loads company information and prepares its address, contact values, labels, and combined display text.
- `ResolveCertificateContactInformation(DefaultTitle: Text; var ContactTitle: Text; var ContactName: Text; var ContactInformationArray: array[8] of Text[100]; var AllContactInformation: Text)` (internal): Resolves the configured certificate contact and prepares formatted contact text.
- `ResolveSourceItem(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var Item: Record Item)` (internal): Loads the source item for an inspection or clears the item record when no source item is specified.
- `ResolveInspectionTemplateCache(TemplateCode: Code[20]; var QltyInspectionTemplateHdr: Record "Qlty. Inspection Template Hdr.")` (internal) (obsolete 29.0: Unused by Word layouts. Used only by RDLC layouts, and will be removed with the RDLC layouts.): Refreshes the cached inspection template when its code differs from the requested code.
- `ResolveFinishedByPerson(FinishedByUserId: Code[50]; var FinishedByUserName: Text; var FinishedByTitle: Text; var FinishedByEmail: Text; var FinishedByPhone: Text)` (internal): Resolves the name and contact details of the user who finished an inspection.
- `BuildItemIdentifierText(ItemNo: Text; VariantCode: Text): Text` (internal): Combines an item number and variant code on separate lines, omitting blank values.
- `BuildItemTrackingIdentifierText(LotNo: Text; SerialNo: Text; PackageNo: Text): Text` (internal): Combines lot, serial, and package numbers on separate lines, omitting blank values.
- `BuildReinspectionSequenceInformationText(ReinspectionNo: Integer): Text` (internal): Builds the labeled reinspection sequence text when the sequence number is nonzero.
- `BuildSignatureAndNameLabels(Title: Text; var SignatureLbl: Text; var NameLabelText: Text)` (internal): Builds signature and name labels from a title.
- `ClearPromotedResultMatrix(var MatrixSourceRecordId: array[10] of RecordId; var MatrixArrayConditionCellData: array[10] of Text; var MatrixArrayConditionDescriptionCellData: array[10] of Text; var MatrixArrayCaptionSet: array[10] of Text; var MatrixVisibleState: array[10] of Boolean)` (internal): Clears all promoted-result matrix values and visibility flags.
- `ResolveModifiedByUser(var QltyInspectionLine: Record "Qlty. Inspection Line"; var PreviousUserId: Text; var ModifiedByUserId: Code[50]; var UserName: Text; var JobTitle: Text; var Email: Text; var Phone: Text)` (internal): Resolves the modifying user and refreshes person details when the user changes.
- `ResolveLinePersonDetails(var QltyInspectionLine: Record "Qlty. Inspection Line"; var IsPersonField: Boolean; var PersonName: Text; var PersonTitle: Text; var PersonEmail: Text; var PersonPhone: Text)` (internal): Resolves person details from an inspection line and indicates whether the line contains a person value.
- `ResolveLineFieldTypeFlags(var QltyInspectionLine: Record "Qlty. Inspection Line"; var FieldIsLabel: Boolean; var FieldIsText: Boolean; var HasEnteredValue: Boolean)` (internal): Resolves label, text, and entered-value flags for an inspection line.
- `ResolveLineResultAndMatrix(var QltyInspectionLine: Record "Qlty. Inspection Line"; var ResultDescription: Text; var MatrixSourceRecordId: array[10] of RecordId; var MatrixArrayConditionCellData: array[10] of Text; var MatrixArrayConditionDescriptionCellData: array[10] of Text; var MatrixArrayCaptionSet: array[10] of Text; var MatrixVisibleState: array[10] of Boolean)` (internal): Resolves the inspection-line result description and its promoted-result matrix.
- `ResolveLineLabelFieldDescription(var QltyInspectionLine: Record "Qlty. Inspection Line"; FieldIsLabel: Boolean; var LabelFieldDescription: Text)` (internal): Resolves the description displayed for a label-type inspection line.
- `ResolveConditionLabels(QltyInspectionLine: Record "Qlty. Inspection Line"; var ConditionLabelText1: Text; var ConditionLabelText2: Text)` (internal): Resolves labels for the two highest-priority promoted result conditions on an inspection line.
- `BuildPersonFieldDetails(Title: Text; Name: Text; Phone: Text; Email: Text): Text` (internal): Combines nonblank person details into separate lines.
- `BuildPersonFieldDetailsLabeled(Title: Text; Name: Text; Phone: Text; Email: Text): Text` (internal): Combines nonblank person details into separate lines with labels for title and name.
- `BuildEnteredByNameAndTimestamp(UserId: Text; ModifiedAt: DateTime; HasEnteredValue: Boolean): Text` (internal): Builds the entered-by user and timestamp text when the line has an entered value.

Plus 3 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 20429 "Qlty. Person Lookup"](../codeunit/20429.md) (3 calls: `ResolveFinishedByPerson → GetBasicPersonDetails`, `ResolveLinePersonDetails → GetBasicPersonDetailsFromInspectionLine`, `ResolveModifiedByUser → GetBasicPersonDetails`)
- [Codeunit 365 "Format Address"](../codeunit/365.md) (2 calls: `ResolveCertificateContactInformation → ContactAddr`, `ResolveCompanyInformation → Company`)
- [Codeunit 20409 "Qlty. Result Condition Mgmt."](../codeunit/20409.md) (1 call: `ResolveLineResultAndMatrix → GetPromotedResultsForInspectionLine`)
- [Codeunit 20599 "Qlty. Misc Helpers"](../codeunit/20599.md) (1 call: `ResolveModifiedByUser → GetUserNameByUserSecurityID`)
- [Report 20401 "Qlty. Certificate of Analysis"](../report/20401.md) (1 call: `PrintCertificateOfAnalysis → (object)`)
- [Report 20403 "Qlty. Non-Conformance"](../report/20403.md) (1 call: `PrintNonConformance → (object)`)
- [Report 20405 "Qlty. General Purpose Inspect."](../report/20405.md) (1 call: `PrintGeneralPurposeInspection → (object)`)

## Called by

- [Table 20405 "Qlty. Inspection Header"](../table/20405.md) (3 calls: `PrintCertificateOfAnalysis → PrintCertificateOfAnalysis`, `PrintGeneralPurposeInspection → PrintGeneralPurposeInspection`, `PrintNonConformance → PrintNonConformance`)

## 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

## Deprecations

- procedure ResolveInspectionTemplateCache: Pending 29.0 (#if not CLEAN29), "Unused by Word layouts. Used only by RDLC layouts, and will be removed with the RDLC layouts."

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