---
id: object/codeunit/149951-it
type: object
title: Codeunit 149951 "IT Subc. Migration" (IT)
summary: Codeunit 149951 "IT Subc. Migration" (IT) in the IT country layer (Microsoft.Manufacturing.Subcontracting.Migration). 15 public procedures, 1 event subscribers. 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: d389d082feaa0f38f9422b56073e8d6df7ade779487765c42043ef4a21bc52b8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/IT/SubcontractingMigrationIT/app/src/ITSubcMigration.Codeunit.al
    title: src/Apps/IT/SubcontractingMigrationIT/app/src/ITSubcMigration.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/12143
    - change/bcapps/11001
object_type: codeunit
object_id: 149951
name: IT Subc. Migration
namespace: Microsoft.Manufacturing.Subcontracting.Migration
app: SubcontractingMigrationIT
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete:
  state: Pending
  tag: "28.0"
  reason: The legacy subcontracting feature is being deprecated.
countries: []
ms_search_form_ids: []
country: IT
counts:
  fields: 0
  procedures: 49
  events: 0
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 149951 "IT Subc. Migration" (IT)

> Codeunit 149951 "IT Subc. Migration" (IT) in the IT country layer (Microsoft.Manufacturing.Subcontracting.Migration). 15 public procedures, 1 event subscribers. Introduced in BC29, still in BC30. Obsolete (Pending since 28.0).

IT country layer · Microsoft.Manufacturing.Subcontracting.Migration · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/IT/SubcontractingMigrationIT/app/src/ITSubcMigration.Codeunit.al) · facts from BC29

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

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| ObsoleteState | Pending |
| ObsoleteTag | 28.0 |
| ObsoleteReason | The legacy subcontracting feature is being deprecated. |

## Event subscriptions

- MigrateSubconOnMigrationSubcontractingData subscribes to Codeunit "Legacy Subc. Feature Handler" OnMigrationSubcontractingData

## Procedures

- `RunMigration()` (internal)
- `StartDisableLegacySubcontracting(ShowDialog: Boolean)` (internal)
- `MigrateTransferLines()` (internal)
- `MigratePurchaseLines()` (internal)
- `MigrateTransferHeaders()` (internal)
- `MigrateProdOrderComponents()` (internal)
- `MigrateProductionBOMLines()` (internal)
- `MigrateProdOrderComponentSupplyMethods()` (internal)
- `MigrateProdOrderRoutingLines()` (internal)
- `MigrateRoutingLines()` (internal)
- `MigrateVendors()` (internal)
- `MigratePurchaseHeaders()` (internal)
- `MigrateSubcontractorPrices()` (internal)
- `ConfirmDisableLegacySubcontracting()` (internal)
- `CheckSubcontractingLocations()` (internal)

Plus 33 local procedures.

## Recent changes

- 2026-10-06 [#12143 Bug 649440: [Subcontracting] [IT] Disable Legacy Subcontracting leaves Component Supply Method empty after conversion](../../changes/bcapps/12143.md) (main, BC30, fix)
- 2026-09-18 [#11001 Bug 648577: [IT] Subcontracting migration does not precheck bin-mandatory locations](../../changes/bcapps/11001.md) (main, BC30, fix)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none
- Obsolete: Pending since 28.0, "The legacy subcontracting feature is being deprecated."

## Deprecations

- object: Pending 28.0 (#if not CLEAN28), "The legacy subcontracting feature is being deprecated."

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: "IT Subc. Migration")`, 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.
