Codeunit 20407 "Qlty. Manufactur. Integration"
Quality Management · Microsoft.QualityManagement.Integration.Manufacturing
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 4 connected objects and pages
Quality Management · Microsoft.QualityManagement.Integration.Manufacturing · BC29-30 · source at 4e6a307c · facts from BC29
Properties
| Property | Value |
|---|---|
| Permissions | tabledata “Qlty. Management Setup” = r, tabledata “Qlty. Inspection Gen. Rule” = r, tabledata “Qlty. Inspection Header” = r |
Events published
OnBeforeProductionAttemptCreatePostAutomaticInspection(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var ItemLedgerEntry: Record "Item Ledger Entry"; var ProdOrderLine: Record "Prod. Order Line"; var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)(integration): OnBeforeProductionAttemptCreatePostAutomaticInspection is called before attempting to automatically create an inspection for production related events prior to posting to posting.OnAfterProductionAttemptCreateAutomaticInspection(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var ItemLedgerEntry: Record "Item Ledger Entry"; var ProdOrderLine: Record "Prod. Order Line"; var ItemJournalLine: Record "Item Journal Line")(integration): OnAfterProductionAttemptCreateAutomaticInspection is called after attempting to automatically create an inspection for production.OnBeforeProductionAttemptCreateReleaseAutomaticInspection(var ProductionOrder: Record "Production Order"; var IsHandled: Boolean)(integration): OnBeforeProductionAttemptCreateReleaseAutomaticInspection is called before attempting to automatically create an inspection for production related releasing.OnAfterProductionAttemptCreateReleaseAutomaticInspection(var ProductionOrder: Record "Production Order"; CreatedAtLeastOneInspectionForRoutingLine: Boolean; CreatedAtLeastOneInspectionForOrderLine: Boolean; CreatedInspectionForProdOrder: Boolean; ListOfInspectionIds: List of [RecordId])(integration): Notifies subscribers after release-triggered inspection creation has completed.OnBeforeProductionHandleOnAfterPostOutput(var ItemLedgerEntry: Record "Item Ledger Entry"; var ProdOrderLine: Record "Prod. Order Line"; var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)(integration): Gives an opportunity to override any handle of onafterpostoutput. Use this to completely replace any automatic inspection creation on output and/or any automatic inspection validation on outputOnBeforeProductionHandleOnAfterChangeStatusOnProdOrder(var FromProductionOrder: Record "Production Order"; var ToProductionOrder: Record "Production Order"; var IsHandled: Boolean)(integration): Gives an opportunity to supplement or replace automatic inspection creation on finish, and validation of inspections on finish.
Event subscriptions
- HandleOnAfterPostOutput subscribes to Codeunit “Mfg. Item Jnl.-Post Line” OnAfterPostOutput
- HandleOnAfterChangeStatusOnProdOrder subscribes to Codeunit “Prod. Order Status Management” OnAfterChangeStatusOnProdOrder
- HandleOnAfterToProdOrderLineModify subscribes to Codeunit “Prod. Order Status Management” OnAfterToProdOrderLineModify
- HandleOnAfterToProdOrderRtngLineInsert subscribes to Codeunit “Prod. Order Status Management” OnAfterToProdOrderRtngLineInsert
- HandleOnAfterRefreshProdOrder subscribes to Report “Refresh Production Order” OnAfterRefreshProdOrder
Procedures
11 local procedures, no public ones.
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 20404 “Qlty. Inspection - Create” (5 calls:
AttemptCreateInspectionPosting → CreateInspectionWithMultiVariants,AttemptCreateInspectionPosting → GetCreatedInspection,AttemptCreateInspectionReleased → CreateInspectionWithMultiVariants, …) - Codeunit 20456 “Qlty. Batch Notif. Helper” (4 calls:
AttemptCreateInspectionReleased → BeginBatch,AttemptCreateInspectionReleased → ConfigureForBatch,AttemptCreateInspectionReleased → EndBatch, …) - Codeunit 20408 “Qlty. Traversal” (3 calls:
UpdateSourceDocumentForSpecificInspectionOnLine → ApplySourceFields,UpdateSourceDocumentForSpecificInspectionOnOperation → ApplySourceFields,UpdateSourceDocumentForSpecificInspectionOnOrder → ApplySourceFields) - Codeunit 99000837 “Prod. Order Line-Reserve” (1 call:
AttemptCreateInspectionReleased → FindReservEntry)
Recent changes
- 2026-08-20 #10270 [Quality Management] Repair and improve XML documentation of procedures (main, BC30, refactor)
- 2026-07-08 #8556 [Quality Management] Enforce rules and restrictions with indirect and implicit permissions (main, BC30, feature)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Inspect production output — possibly related: Documents automatic quality inspection creation during production output posting with run-time postings. (model-linked)
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. Manufactur. Integration"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.