Codeunit 20441 "Qlty. Disp. Purchase Return"
Quality Management · Microsoft.QualityManagement.Dispositions.Purchase
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 5 connected objects and pages
Quality Management · Microsoft.QualityManagement.Dispositions.Purchase · BC29-30 · source at 4e6a307c · facts from BC29
Events published
OnBeforeProcessDisposition(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var DidSomething: Boolean; var IsHandled: Boolean)(integration): Provides an opportunity to modify the create Purchase Return Order behavior or replace it completely.OnAfterProcessDisposition(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var CreatedReturnOrderPurchaseHeader: Record "Purchase Header"; var DidSomething: Boolean)(integration): Occurs after the purchase return order and its lines are processed.OnBeforeCreateOrUpdatePurchaseReturnOrderLine(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempQuantityToActQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var PurchRcptLine: Record "Purch. Rcpt. Line"; var ReturnOrderPurchaseHeader: Record "Purchase Header"; var ReturnOrderPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)(integration): Occurs before a purchase return order line is created or updated and can replace the default handling.OnAfterCreateOrUpdatePurchaseReturnOrderLine(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempQuantityToActQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary; var PurchRcptLine: Record "Purch. Rcpt. Line"; var ReturnOrderPurchaseHeader: Record "Purchase Header"; var ReturnOrderPurchaseLine: Record "Purchase Line")(integration): Occurs after a purchase return order line is created or updated.
Procedures
PerformDisposition(var QltyInspectionHeader: Record "Qlty. Inspection Header"; QltyQuantityBehavior: Enum "Qlty. Quantity Behavior"; OptionalSpecificQuantity: Decimal; OptionalSourceLocationFilter: Text; OptionalSourceBinFilter: Text; ReasonCode: Code[10]; ExternalDocumentNo: Code[35]): Boolean(internal): Creates a purchase return order from a quality inspection and explicit disposition options.PerformDisposition(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var TempInstructionQltyDispositionBuffer: Record "Qlty. Disposition Buffer" temporary): Boolean: Creates a purchase return order and return lines for the inspection inventory.GetCreatedPurchaseReturnBuffer(var TempCreatedBufferPurchaseHeader2: Record "Purchase Header" temporary)(internal): Gets the created purchase return headers that were created as buffer tables.
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 5402 “Unit of Measure Management” (3 calls:
CreatePurchaseReturnOrderLine → CalcQtyFromBase,CreatePurchaseReturnOrderLine → GetQtyPerUnitOfMeasure,FindPurchaseReceiptLineForInspection → CalcBaseQty) - Codeunit 6620 “Copy Document Mgt.” (2 calls:
CreatePurchaseReturnOrderLine → CopyPurchRcptLinesToDoc,CreatePurchaseReturnOrderLine → SetHideProcessWindow) - Codeunit 20439 “Qlty. Item Tracking Mgmt.” (1 call:
CreatePurchaseReturnOrderLine → DeleteAndRecreatePurchaseReturnOrderLineTracking) - Codeunit 6503 “Item Tracking Doc. Management” (1 call:
FindPurchaseReceiptLineForInspection → RetrieveEntriesFromShptRcpt)
Called by
- Codeunit 20424 “Qlty. Workflow Response” (1 call:
HandleOnExecuteWorkflowResponse → PerformDisposition)
Implements
Recent changes
- 2026-08-20 #10270 [Quality Management] Repair and improve XML documentation of procedures (main, BC30, refactor)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Process returns or cancellations — possibly related: Documents processing purchase returns and credit memos to reverse items from invoices, matching purchase return disposition logic. (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. Disp. Purchase Return"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.