---
title: "Codeunit 20505 Subcontracting Management, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/points/
object: https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/
app: "Subcontracting"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/
checked: 2026-11-20
changed: 2026-10-22
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 20505 Subcontracting Management, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/points/

12 procedures and triggers with a step in src/Apps/W1/Subcontracting/App/src/General/SubcontractingManagement.Codeunit.al, in source order, read from the text, not from a run.

## ChangeLocationOnProdOrderComponent

[Line 40](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L40).

- [44](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L44) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [52](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L52) calls `ValidateProdOrderCompLocationPreservingFlushingMethod`
- [58](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L58) calls `ValidateProdOrderCompLocationPreservingFlushingMethod`
- [62](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L62) validates [Table 5407 Prod. Order Component](https://jonas-paprotka.de/ref/table/5407-prod-order-component/) `Bin Code`

## ValidateProdOrderCompLocationPreservingFlushingMethod

[Line 69](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L69), internal.

- [84](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L84) validates [Table 5407 Prod. Order Component](https://jonas-paprotka.de/ref/table/5407-prod-order-component/) `Location Code`
- [94](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L94) calls [Table 5407 Prod. Order Component](https://jonas-paprotka.de/ref/table/5407-prod-order-component/) `GetDefaultBin`

## ChangeLocationOnPlanningComponent

[Line 101](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L101).

- [105](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L105) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [113](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L113) validates [Table 99000829 Planning Component](https://jonas-paprotka.de/ref/table/99000829-planning-component/) `Location Code`
- [119](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L119) validates [Table 99000829 Planning Component](https://jonas-paprotka.de/ref/table/99000829-planning-component/) `Location Code`
- [123](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L123) validates [Table 99000829 Planning Component](https://jonas-paprotka.de/ref/table/99000829-planning-component/) `Bin Code`

## DelLocationLinkedComponents

[Line 130](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L130).

- [140](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L140) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [151](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L151) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [156](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L156) calls [Codeunit 99000855 Planning-Get Parameters](https://jonas-paprotka.de/ref/codeunit/99000855-planning-get-parameters/) `AtSKU`
- [162](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L162) validates [Table 5407 Prod. Order Component](https://jonas-paprotka.de/ref/table/5407-prod-order-component/) `Location Code`
- [163](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L163) writes [Table 5407 Prod. Order Component](https://jonas-paprotka.de/ref/table/5407-prod-order-component/) Modify

## GetSubcontractor

[Line 171](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L171).

- [178](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L178) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [183](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L183) raises `OnBeforeGetSubcontractor`, IsHandled

## SetSubcontractingOrderDate

[Line 230](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L230), internal.

- [234](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L234) validates [Table 246 Requisition Line](https://jonas-paprotka.de/ref/table/246-requisition-line/) `Order Date`
- [236](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L236) calls [Codeunit 5404 Lead-Time Management](https://jonas-paprotka.de/ref/codeunit/5404-lead-time-management/) `GetPlannedStartingDate`
- [238](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L238) calls [Codeunit 5404 Lead-Time Management](https://jonas-paprotka.de/ref/codeunit/5404-lead-time-management/) `PurchaseLeadTime`

## UpdateSubcontractorPriceForRequisitionLine

[Line 243](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L243).

- [247](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L247) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [251](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L251) calls `IsSubcontracting`
- [252](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L252) calls [Table 246 Requisition Line](https://jonas-paprotka.de/ref/table/246-requisition-line/) `UpdateSubcontractorPrice`

## UpdateLinkedComponentsAfterRoutingTransfer

[Line 255](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L255).

- [261](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L261) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [276](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L276) calls `UpdLinkedComponents`

## UpdateComponentSupplyMethodForPlanningComponent

[Line 279](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L279).

- [288](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L288) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [304](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L304) calls `GetSubcontractor`
- [311](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L311) calls `ChangeLocationOnPlanningComponent`
- [313](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L313) writes [Table 99000829 Planning Component](https://jonas-paprotka.de/ref/table/99000829-planning-component/) Modify

## UpdateComponentSupplyMethodForProdOrderComponent

[Line 317](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L317).

- [331](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L331) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [366](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L366) calls `GetSubcontractor`
- [375](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L375) calls `ChangeLocationOnProdOrderComponent`
- [377](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L377) writes [Table 5407 Prod. Order Component](https://jonas-paprotka.de/ref/table/5407-prod-order-component/) Modify

## UpdLinkedComponents

[Line 382](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L382).

- [393](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L393) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [403](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L403) calls `GetSubcontractor`
- [408](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L408) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [416](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L416) calls `ChangeLocationOnProdOrderComponent`
- [418](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L418) writes [Table 5407 Prod. Order Component](https://jonas-paprotka.de/ref/table/5407-prod-order-component/) Modify

## GetComponentsLocationCode

[Line 432](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L432).

- [439](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L439) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [444](https://jonas-paprotka.de/ref/codeunit/20505-subcontracting-management/source/#L444) calls `GetManufacturingSetup`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
