---
id: object/codeunit/99008501-it
type: object
title: Codeunit 99008501 "Legacy Subc. Feature Handler" (IT)
summary: Codeunit 99008501 "Legacy Subc. Feature Handler" (IT) in the IT country layer (Microsoft.Manufacturing.Setup). 8 public procedures, 3 events. Introduced in BC29, still in BC30. Obsolete (Pending since 28.0).
tier: official
language: en
tags:
  - codeunit
  - it layer
versions:
  introduced: "29"
  last_changed: null
  deprecated: "28.0"
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 96fcbccbf370dd8bc7fcda3540d810d24f2facf41b12fb33ece4953fc90f03c7
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/IT/BaseApp/Local/Manufacturing/Document/LegacySubcFeatureHandler.Codeunit.al
    title: src/Layers/IT/BaseApp/Local/Manufacturing/Document/LegacySubcFeatureHandler.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/it
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12080
    - change/bcapps/10483
    - change/bcapps/10208
    - change/bcapps/9747
    - change/bcapps/9191
object_type: codeunit
object_id: 99008501
name: Legacy Subc. Feature Handler
namespace: Microsoft.Manufacturing.Setup
app: Base Application
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete:
  state: Pending
  tag: "28.0"
  reason: Legacy Subcontracting will be discontinued, environments should move to the Subcontracting App.
countries: []
ms_search_form_ids: []
country: IT
counts:
  fields: 0
  procedures: 23
  events: 3
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 99008501 "Legacy Subc. Feature Handler" (IT)

> Codeunit 99008501 "Legacy Subc. Feature Handler" (IT) in the IT country layer (Microsoft.Manufacturing.Setup). 8 public procedures, 3 events. Introduced in BC29, still in BC30. Obsolete (Pending since 28.0).

IT country layer · Microsoft.Manufacturing.Setup · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/IT/BaseApp/Local/Manufacturing/Document/LegacySubcFeatureHandler.Codeunit.al) · facts from BC29

An object of the [IT localization](../../localizations/it.md), not part of W1.

## Properties

| Property | Value |
|---|---|
| ObsoleteState | Pending |
| ObsoleteTag | 28.0 |
| ObsoleteReason | Legacy Subcontracting will be discontinued, environments should move to the Subcontracting App. |

## Events published

- `OnCheckIsITMigrationAppInstalled(var Result: Boolean)` (internal)
- `OnCheckIsSubcontractingAppInstalled(var Result: Boolean)` (internal)
- `OnMigrationSubcontractingData()` (integration)

## Procedures

- `IsLegacySubcontractingEnabled(): Boolean` (internal): Returns whether Legacy Subcontracting is enabled in Manufacturing Setup.
- `CheckCanDisableLegacySubcontracting()`: Checks whether Legacy Subcontracting can be disabled and raises an error if the preconditions are not met. When a required app is missing, it offers to install it inline.
- `CanDisableLegacySubcontracting(): Boolean` (internal): Checks whether Legacy Subcontracting can be disabled and raises an error if the preconditions are not met. When a required app is missing, it offers to install it inline and returns false so the caller does not disable Legacy Subcontracting - after the install completes and the session reloads, the ...
- `CheckCanEnableLegacySubcontracting()`: Checks whether Legacy Subcontracting can be enabled and raises an error if the preconditions are not met.
- `DatabaseHasLegacySubcontractingData(): Boolean` (internal): Returns whether the database contains Legacy Subcontracting data based on the presence of subcontracting purchase orders, subcontracting transfer orders, WIP Item related data, capacity ledger entries, or subcontracting prices.
- `MigrateData()` (internal)
- `SetLegacySubcontracting(var ManufacturingSetup: Record "Manufacturing Setup"; Enabled: Boolean)` (internal)
- `RestartSession()` (internal)

Plus 12 local procedures.

## Recent changes

- 2026-09-30 [#12080 Bug 649448: [Subcontracting] [IT] Fully received WIP purchase orders block Disable Legacy Subcontracting](../../changes/bcapps/12080.md) (main, BC30, fix)
- 2026-09-01 [#10483 [Subcontracting] Bug 647210 & 647791: Enable IT migration in production and keep Legacy Subcontracting on when app install is declined](../../changes/bcapps/10483.md) (main, BC30, fix)
- 2026-08-13 [#10208 [Subcontracting] Detect subcontracting purchase/transfer orders in legacy data check](../../changes/bcapps/10208.md) (main, BC30, fix)
- 2026-07-28 [#9747 [Subcontracting] Bug 641607: Fix misleading error message when disabling Legacy Subcontracting with open WIP purchase orders](../../changes/bcapps/9747.md) (main, BC30, fix)
- 2026-07-08 [#9191 Bug 641232: [Subcontracting] Offer to install missing apps instead of hard error when disabling Legacy Subcontracting](../../changes/bcapps/9191.md) (main, BC30, fix)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none
- Obsolete: Pending since 28.0, "Legacy Subcontracting will be discontinued, environments should move to the Subcontracting App."

## Deprecations

- procedure SubcontractingPricesExist: guarded (#if not CLEAN28)
- procedure WIPItemCapacityLedgerEntriesExist: guarded (#if not CLEAN28)
- object: Pending 28.0 (#if not CLEAN28), "Legacy Subcontracting will be discontinued, environments should move to the Subcontracting App."

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: "Legacy Subc. Feature Handler")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A IT country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
