---
id: object/codeunit/99000869
type: object
title: Codeunit 99000869 "Mfg. Invt. Profile Offsetting"
summary: Codeunit 99000869 "Mfg. Invt. Profile Offsetting" in Base Application (Microsoft.Inventory.Tracking). 2 public procedures, 7 events, 13 event subscribers. Introduced in BC27, still in BC30, changed in BC28, BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "27"
  last_changed: "30"
  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: e01cb40c81a29f8bbc597b9c35ad4134b01d8ba424e73312d60139a4b8cc26ef
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/Inventory/Tracking/MfgInvtProfileOffsetting.Codeunit.al
    title: src/Layers/W1/BaseApp/Manufacturing/Inventory/Tracking/MfgInvtProfileOffsetting.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/12188
    - change/bcapps/12066
    - change/bcapps/9788
object_type: codeunit
object_id: 99000869
name: Mfg. Invt. Profile Offsetting
namespace: Microsoft.Inventory.Tracking
app: Base Application
extends: null
first_version: "27"
last_version: "30"
present_in:
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "28"
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 27
  events: 7
  subscribers: 13
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 0
  implements: 0
---

# Codeunit 99000869 "Mfg. Invt. Profile Offsetting"

> Codeunit 99000869 "Mfg. Invt. Profile Offsetting" in Base Application (Microsoft.Inventory.Tracking). 2 public procedures, 7 events, 13 event subscribers. Introduced in BC27, still in BC30, changed in BC28, BC30.

Base Application · Microsoft.Inventory.Tracking · BC27-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/Inventory/Tracking/MfgInvtProfileOffsetting.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Reservation Entry" = id, TableData "Prod. Order Capacity Need" = rmd |

## Events published

- `OnBeforeTransProdOrderToProfile(var InventoryProfile: Record "Inventory Profile"; var Item: Record Item; ToDate: Date; var IsHandled: Boolean)` (integration)
- `OnTransProdOrderToProfileOnBeforeProcessLine(ProdOrderLine: Record Microsoft.Manufacturing.Document."Prod. Order Line"; var ShouldProcess: Boolean)` (integration)
- `OnAfterSetProdOrder(var ReqLine: Record "Requisition Line"; var ProdOrderLine: Record Microsoft.Manufacturing.Document."Prod. Order Line"; var InventoryProfile: Record "Inventory Profile")` (integration)
- `OnAfterGetRoutingFromProdOrder(var RequisitionLine: Record "Requisition Line")` (integration)
- `OnFindCombinationOnBeforeCreateTempSKUForLocation(var Item: Record Item; var IsHandled: Boolean)` (integration)
- `OnTransProdOrderToProfileOnBeforeInsertSupplyInvtProfile(var InventoryProfile: Record "Inventory Profile"; ProdOrderLine: Record "Prod. Order Line")` (integration)
- `OnAfterGetRouting(var RequisitionLine: Record "Requisition Line")` (integration)

## Event subscriptions

- OnAfterSupplyToInvProfile subscribes to Codeunit "Inventory Profile Offsetting" OnAfterSupplyToInvProfile
- OnAfterDisableRelations subscribes to Codeunit "Inventory Profile Offsetting" OnAfterDisableRelations
- OnMaintainPlanningLineOnAfterSetSourceForNotNewReqLine subscribes to Codeunit "Inventory Profile Offsetting" OnMaintainPlanningLineOnAfterSetSourceForNotNewReqLine
- OnMaintainPlanningLineOnBeforeValidateNo subscribes to Codeunit "Inventory Profile Offsetting" OnMaintainPlanningLineOnBeforeValidateNo
- OnIsProdOrderPlanned subscribes to Codeunit "Inventory Profile Offsetting" OnIsProdOrderPlanned
- OnAfterShouldDeleteReservEntry subscribes to Codeunit "Inventory Profile Offsetting" OnAfterShouldDeleteReservEntry
- OnMaintainPlanningLineOnAfterValidateFieldsForNewReqLine subscribes to Codeunit "Inventory Profile Offsetting" OnMaintainPlanningLineOnAfterValidateFieldsForNewReqLine
- OnGetComponentsAtLocationCode subscribes to Codeunit "Inventory Profile Offsetting" OnGetComponentsAtLocationCode
- OnGetComponentsOnNewActionMessage subscribes to Codeunit "Inventory Profile Offsetting" OnGetComponentsOnNewActionMessage
- OnGetComponentsOnUpdateForActionMessage subscribes to Codeunit "Inventory Profile Offsetting" OnGetComponentsOnUpdateForActionMessage
- OnGetRouting subscribes to Codeunit "Inventory Profile Offsetting" OnGetRouting
- OnFillTempSKUForLocation subscribes to Codeunit "Inventory Profile Offsetting" OnFillTempSKUForLocation
- CheckDemandAndSupplyQuantityAreEqual subscribes to Codeunit "Inventory Profile Offsetting" OnBeforeMatchAttributes

## Procedures

- `TransProdOrderToProfile(var InventoryProfile: Record "Inventory Profile"; var Item: Record Item; ToDate: Date; var LineNo: Integer; var TempItemTrkgEntry: Record "Reservation Entry" temporary)` (internal)
- `GetRouting(var ReqLine: Record "Requisition Line"; var sender: Codeunit "Inventory Profile Offsetting")`

Plus 5 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 99000854 "Inventory Profile Offsetting"](../codeunit/99000854.md) (3 calls: `GetRouting → DisableRelations`, `OnFillTempSKUForLocation → CreateTempSKUForLocation`, `OnGetComponentsOnUpdateForActionMessage → InsertPlanningComponent`)
- [Codeunit 99000756 "VersionManagement"](../codeunit/99000756.md) (2 calls: `OnFillTempSKUForLocation → GetRtngVersion`, `OnGetComponentsOnNewActionMessage → GetBOMVersion`)
- [Codeunit 5996 "Prod. Order Warehouse Mgt."](../codeunit/5996.md) (1 call: `OnFillTempSKUForLocation → GetLastOperationLocationCode`)
- [Codeunit 99000837 "Prod. Order Line-Reserve"](../codeunit/99000837.md) (1 call: `TransProdOrderToProfile → TransferInventoryProfileFromProdOrderLine`)

## Recent changes

- 2026-10-06 [#12188 [Master]-Reserved quantities do not match the expected quantities after planning - regression due to correction](../../changes/bcapps/12188.md) (main, BC30, fix)
- 2026-10-02 [#12066 Bugs/remove asm inv mfg clean27 tags for wave2 2026](../../changes/bcapps/12066.md) (main, BC30, obsoletion)
- 2026-07-29 [#9788 [Master]-Incorrect Reservation Split Generated After Replanning a Replenishment Production Order Created by MRP Planning Run](../../changes/bcapps/9788.md) (main, BC30, fix)

## Across versions

- Present in: BC27-30
- Changed (declaration) in: BC28, BC30

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). The call sections above are our own, per object, from the BC29 call graph. 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: "Mfg. Invt. Profile Offsetting")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
