Codeunit 20557 "Subc. Purchase Order Creator"
Subcontracting · Microsoft.Manufacturing.Subcontracting
Across versions
- BC23-28not present
- BC29-30present
Subcontracting · Microsoft.Manufacturing.Subcontracting · BC29-30 · source at 4e6a307c · facts from BC29
Events published
OnBeforeHandleProdOrderRtngWorkCenterWithSubcontractor(var SubContractorWorkCenterNo: Code[20])(internal)OnBeforeShowCreatedPurchaseOrder(ProdOrderNo: Code[20]; NoOfCreatedPurchOrder: Integer; var IsHandled: Boolean)(internal)
Procedures
CreateSubcontractingPurchaseOrderFromRoutingLine(ProdOrderRoutingLine: Record "Prod. Order Routing Line"): IntegerInsertProdDescriptionOnAfterInsertPurchOrderLine(PurchOrderLine: Record "Purchase Line"; var RequisitionLine: Record "Requisition Line")InsertSubcontractingProdOrderComments(PurchOrderLine: Record "Purchase Line"; RequisitionLine: Record "Requisition Line"; var NextLineNo: Integer)(internal): Inserts the subcontracting production order comments as purchase order lines.TransferSubcontractingProdOrderLineAttachments(PurchOrderLine: Record "Purchase Line"; RequisitionLine: Record "Requisition Line")(internal): Transfers the subcontracting production order line attachments to the purchase order line.TransferSubcontractingProdOrderComp(var PurchaseLine: Record "Purchase Line"; var RequisitionLine: Record "Requisition Line"; var NextLineNo: Integer)ShowCreatedPurchaseOrder(ProdOrderNo: Code[20]; NoOfCreatedPurchOrder: Integer): Opens the subcontracting purchase order(s) marked during the current CreateSubcontractingOrdersForRoutingLineSelection call on this instance. Does nothing if no purchase order was marked (for example when called directly).ShowExistingPurchaseOrdersForRoutingLines(var ProdOrderRoutingLine: Record "Prod. Order Routing Line")(internal)CreateSubcontractingOrdersForRoutingLineSelection(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"): Integer(internal)
Plus 16 local procedures.
Recent changes
- 2026-12-01 #13103 Main [All-E] Vendor-supplied component purchase lines use incorrect requirement and Order DatesInitial commit (main, BC30, fix)
- 2026-11-18 #13012 [Subcontracting] Assign worksheet suggestions to existing purchase orders (main, BC30, feature)
- 2026-11-04 #13566 [Subcontracting] Bug 648843: Align feature-handler references with CLEAN28 (main, BC30, refactor)
- 2026-10-23 #12783 [29.x] Subcontractor Price ignores Run Time when creating purchase cost for time-based subcontracting operations (releases/29.x, BC29, fix)
- 2026-10-14 #12669 [Main]Subcontracting Order Date does not account for lead time before the routing operation starts (main, BC30, fix)
- 2026-08-21 #10278 Subcontracting Operation Notes (main, BC30, feature)
- 2026-08-18 #9892 [main] Bug 644283: Renumber Subcontracting app object ids as it clashes with partner range (main, BC30, refactor)
- 2026-07-31 #9396 [Subcontracting] Fix subcontracting order opening wrong purchase order after creation (main, BC30, fix)
- 2026-07-28 #8902 Bug 639568: Scope Subc. PO component location check to current prod order line (main, BC30, fix)
- 2026-07-08 #9080 Bug 635072: Subcontracting order uses Prod. Order Line location, not Work Center (main, BC30, fix)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Set up subcontractor prices — possibly related: Documents setting up and managing subcontractor prices for work centers and task codes. (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). 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: "Subc. Purchase Order Creator"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.