---
title: "Codeunit 20549 Subc. Change Prod.Order Status, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/points/
object: https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/
app: "Subcontracting"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/
checked: 2026-11-20
changed: 2026-10-05
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 20549 Subc. Change Prod.Order Status, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/points/

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

## SetSubcontractingProductionOrderOnAfterSetSubcontractingWIPEntriesAffected

[Line 22](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L22), local.

- [26](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L26) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [30](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L30) calls [Page 99000882 Change Status on Prod. Order](https://jonas-paprotka.de/ref/page/99000882-change-status-on-prod-order/) `SubcSetOrder`

## ChangeProdOrderStatusOnRunOnAfterChangeStatusFormRun

[Line 34](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L34), local.

- [44](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L44) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [48](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L48) calls [Page 99000882 Change Status on Prod. Order](https://jonas-paprotka.de/ref/page/99000882-change-status-on-prod-order/) `ReturnSubWIPQuantityCleanUp`
- [49](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L49) calls [Page 99000882 Change Status on Prod. Order](https://jonas-paprotka.de/ref/page/99000882-change-status-on-prod-order/) `ReturnPostingInfo`
- [50](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L50) calls [Codeunit 20541 Subc. Transfer WIP Posting](https://jonas-paprotka.de/ref/codeunit/20541-subc-transfer-wip-posting/) `CreateAdjustmentWIPEntriesOnFinishProdOrder`
- [50](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L50) calls [Page 99000882 Change Status on Prod. Order](https://jonas-paprotka.de/ref/page/99000882-change-status-on-prod-order/) `SubcGetOrder`

## ReopenWIPEntriesOnAfterTransferRelatedTablesToReleasedProdOrder

[Line 55](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L55), local.

- [59](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L59) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [63](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L63) calls `ReopenWIPEntries`

## CheckForOpenTransferOrdersOnBeforeChangeStatusOnProdOrder

[Line 67](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L67), local.

- [71](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L71) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [76](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L76) calls `CheckForOpenTransferOrders`

## UpdateWIPLedgerEntryProdOrderRelationOnAfterChangeStatus

[Line 80](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L80), local.

- [84](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L84) calls [Codeunit 20569 Subc. Feature Flag Handler](https://jonas-paprotka.de/ref/codeunit/20569-subc-feature-flag-handler/) `IsSubcontractingEnabled`
- [88](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L88) calls `UpdateWIPLedgerEntryProdOrderRelation`

## ReopenWIPEntries

[Line 91](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L91), local.

- [98](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L98) writes [Table 20560 Subcontractor WIP Ledger Entry](https://jonas-paprotka.de/ref/table/20560-subcontractor-wip-ledger-entry/) ModifyAll

## UpdateWIPLedgerEntryProdOrderRelation

[Line 115](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L115), local.

- [119](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L119) calls [Table 20560 Subcontractor WIP Ledger Entry](https://jonas-paprotka.de/ref/table/20560-subcontractor-wip-ledger-entry/) `SetProductionOrderFilter`
- [120](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L120) writes [Table 20560 Subcontractor WIP Ledger Entry](https://jonas-paprotka.de/ref/table/20560-subcontractor-wip-ledger-entry/) ModifyAll
- [122](https://jonas-paprotka.de/ref/codeunit/20549-subc-change-prod-order-status/source/#L122) writes [Table 20560 Subcontractor WIP Ledger Entry](https://jonas-paprotka.de/ref/table/20560-subcontractor-wip-ledger-entry/) ModifyAll

## Source

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

JOP-AL, 2026-11-20.
