---
id: object/codeunit/20561
type: object
title: Codeunit 20561 "Subc. Routing Factbox Mgmt."
summary: Codeunit 20561 "Subc. Routing Factbox Mgmt." in Subcontracting (Microsoft.Manufacturing.Subcontracting). 14 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - subcontracting
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: a5110e61a7acff05a1fae66e4d9cc41d1e6b38eade18e6b2e93a2e5ae80b0a7b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subcontracting/app/src/Manufacturing/SubcRoutingFactboxMgmt.Codeunit.al
    title: src/Apps/W1/Subcontracting/app/src/Manufacturing/SubcRoutingFactboxMgmt.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/9892
object_type: codeunit
object_id: 20561
name: Subc. Routing Factbox Mgmt.
namespace: Microsoft.Manufacturing.Subcontracting
app: Subcontracting
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: 14
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 20561 "Subc. Routing Factbox Mgmt."

> Codeunit 20561 "Subc. Routing Factbox Mgmt." in Subcontracting (Microsoft.Manufacturing.Subcontracting). 14 public procedures. Introduced in BC29, still in BC30.

Subcontracting · Microsoft.Manufacturing.Subcontracting · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subcontracting/app/src/Manufacturing/SubcRoutingFactboxMgmt.Codeunit.al) · facts from BC29

## Procedures

- `GetSubcontractorNo(ProdOrderRoutingLine: Record "Prod. Order Routing Line"): Code[20]`: Returns the subcontractor vendor number for the work center on the given production order routing line.
- `ShowSubcontractor(ProdOrderRoutingLine: Record "Prod. Order Routing Line")`: Opens the Vendor Card for the subcontractor assigned to the work center on the given production order routing line.
- `GetPurchOrderQtyFromRoutingLine(ProdOrderRoutingLine: Record "Prod. Order Routing Line"): Decimal`: Returns the total quantity on open purchase order lines linked to the given production order routing line.
- `ShowPurchaseOrderLinesFromRouting(ProdOrderRoutingLine: Record "Prod. Order Routing Line")`: Opens the Purchase Lines page filtered to open purchase lines linked to the given production order routing line.
- `GetPurchReceiptQtyFromRoutingLine(ProdOrderRoutingLine: Record "Prod. Order Routing Line"): Decimal`: Returns the total received quantity on purchase receipt lines linked to the given production order routing line.
- `ShowPurchaseReceiptLinesFromRouting(ProdOrderRoutingLine: Record "Prod. Order Routing Line")`: Opens the Purch. Receipt Lines page filtered to receipt lines linked to the given production order routing line.
- `GetPurchInvoicedQtyFromRoutingLine(ProdOrderRoutingLine: Record "Prod. Order Routing Line"): Decimal`: Returns the total invoiced quantity on purchase invoice lines linked to the given production order routing line.
- `ShowPurchaseInvoiceLinesFromRouting(ProdOrderRoutingLine: Record "Prod. Order Routing Line")`: Opens the Posted Purchase Invoice Lines page filtered to invoice lines linked to the given production order routing line.
- `GetNoOfTransferLinesFromRouting(ProdOrderRoutingLine: Record "Prod. Order Routing Line"): Decimal`: Returns the number of outbound subcontracting transfer lines linked to the given production order routing line.
- `GetNoOfReturnTransferLinesFromRouting(ProdOrderRoutingLine: Record "Prod. Order Routing Line"): Decimal`: Returns the number of return subcontracting transfer lines linked to the given production order routing line.
- `ShowTransferLinesFromRouting(ProdOrderRoutingLine: Record "Prod. Order Routing Line")`: Opens the Transfer Lines page filtered to outbound subcontracting transfer lines for the given production order routing line.
- `ShowReturnTransferLinesFromRouting(ProdOrderRoutingLine: Record "Prod. Order Routing Line")`: Opens the Transfer Lines page filtered to return subcontracting transfer lines for the given production order routing line.
- `GetNoOfLinkedComponentsFromRouting(ProdOrderRoutingLine: Record "Prod. Order Routing Line"): Integer`: Returns the number of production order components linked via routing link code to the given production order routing line.
- `ShowProdOrderComponents(ProdOrderRoutingLine: Record "Prod. Order Routing Line")`: Opens the Subc. Prod. Order Components page filtered to components linked to the given production order routing line.

## Recent changes

- 2026-08-18 [#9892 [main] Bug 644283: Renumber Subcontracting app object ids as it clashes with partner range](../../changes/bcapps/9892.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). 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. Routing Factbox Mgmt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
