---
id: object/codeunit/99000822
type: object
title: Codeunit 99000822 "Mfg. Item Jnl.-Post Line"
summary: Codeunit 99000822 "Mfg. Item Jnl.-Post Line" in Base Application (Microsoft.Inventory.Posting). 1 public procedures, 61 events, 15 event subscribers. Introduced in BC27, still in BC30, changed in BC28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "27"
  last_changed: "28"
  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: 9590fdead1e5d5cdd45d7c0d9c5543d330456ba086abc3219fa80333127db973
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Manufacturing/Inventory/Posting/MfgItemJnlPostLine.Codeunit.al
    title: src/Layers/W1/BaseApp/Manufacturing/Inventory/Posting/MfgItemJnlPostLine.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/12066
object_type: codeunit
object_id: 99000822
name: Mfg. Item Jnl.-Post Line
namespace: Microsoft.Inventory.Posting
app: Base Application
extends: null
first_version: "27"
last_version: "30"
present_in:
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 102
  events: 61
  subscribers: 15
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 2
  calls: 12
  called_by: 0
  implements: 0
---

# Codeunit 99000822 "Mfg. Item Jnl.-Post Line"

> Codeunit 99000822 "Mfg. Item Jnl.-Post Line" in Base Application (Microsoft.Inventory.Posting). 1 public procedures, 61 events, 15 event subscribers. Introduced in BC27, still in BC30, changed in BC28.

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

## Properties

| Property | Value |
|---|---|
| Permissions | tabledata "Prod. Order Capacity Need" = rm, tabledata "Capacity Ledger Entry" = rm |

## Events published

- `OnAfterCheckItemTrackingOfComp(TempHandlingSpecification: Record "Tracking Specification"; ItemJnlLine: Record "Item Journal Line")` (integration)
- `OnPostConsumptionOnBeforeCheckOrderType(var ProdOrderComponent: Record "Prod. Order Component"; var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnPostConsumptionOnBeforeFindSetProdOrderComp(var ProdOrderComponent: Record "Prod. Order Component"; var ItemJournalLine: Record "Item Journal Line")` (integration)
- `OnBeforeProdOrderCompModify(var ProdOrderComponent: Record "Prod. Order Component"; ItemJournalLine: Record "Item Journal Line")` (integration)
- `OnInsertConsumpEntryOnBeforePostItem(var ItemJournalLine: Record "Item Journal Line"; ProdOrderComponent: Record "Prod. Order Component"; PostWhseJnlLine: Boolean; var WarehouseJournalLine: Record "Warehouse Journal Line")` (integration)
- `OnBeforeReservationExists(ItemJnlLine: Record "Item Journal Line"; var Result: Boolean; var IsHandled: Boolean)` (integration)
- `OnPostConsumptionOnAfterFindProdOrderComp(var ProdOrderComp: Record "Prod. Order Component")` (integration)
- `OnAfterInsertConsumpEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; var ProdOrderComponent: Record "Prod. Order Component"; QtyBase: Decimal; PostWhseJnlLine: Boolean; var ItemJnlLine: Record "Item Journal Line"; ItemLedgEntryNo: Integer)` (integration)
- `OnPostConsumptionOnRemQtyToPostOnBeforeInsertConsumpEntry(var ItemJnlLine: Record "Item Journal Line"; var ProdOrderComponent: Record "Prod. Order Component")` (integration)
- `OnPostConsumptionOnBeforeInsertRemainingConsumpEntry(var ItemJournalLine: Record "Item Journal Line"; var ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)` (integration)
- `OnPostConsumptionOnBeforeCalcRemQtyToPostThisLine(var ProdOrderComp: Record "Prod. Order Component"; var ItemJnlLine: Record "Item Journal Line"; var TempHandlingSpecification: Record "Tracking Specification"; RemQtyToPost: Decimal; UseItemTrackingApplication: Boolean; LastLoop: Boolean; var IsHandled: Boolean)` (integration)
- `OnPostConsumptionOnBeforeCalcRemainingQuantity(var ProdOrderComp: Record "Prod. Order Component"; var ItemJnlLine: Record "Item Journal Line"; var NewRemainingQty: Decimal; var QtyToPost: Decimal; var IsHandled: Boolean; var RemQtyToPost: Decimal)` (integration)
- `OnPostConsumptionOnAfterInsertEntry(var ProdOrderComponent: Record "Prod. Order Component")` (integration)
- `OnAfterPostConsumption(var ProdOrderComp: Record "Prod. Order Component"; var ItemJnlLine: Record "Item Journal Line")` (integration)
- `OnBeforeInsertConsumpEntry(var ProdOrderComponent: Record "Prod. Order Component"; QtyBase: Decimal; var ModifyProdOrderComp: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempSplitItemJnlLine: Record "Item Journal Line" temporary)` (integration)
- `OnPostConsumptionOnAfterCalcNewRemainingQty(ProdOrderComponent: Record "Prod. Order Component"; var NewRemainingQuantity: Decimal; QtyToPost: Decimal)` (integration)
- `OnCorrectOutputValuationDateOnBeforeCheckProdOrder(ItemLedgerEntry: Record "Item Ledger Entry"; var IsHandled: Boolean)` (integration)
- `OnCorrectOutputValuationDateOnBeforeValueEntryFindSet(var ValueEntry: Record "Value Entry")` (integration)
- `OnPostOutputOnBeforeProdOrderRtngLineModify(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var ProdOrderLine: Record "Prod. Order Line"; var ItemJournalLine: Record "Item Journal Line"; var LastOperation: Boolean)` (integration)
- `OnBeforePostFlushedConsump(ProdOrder: Record "Production Order"; ProdOrderLine: Record "Prod. Order Line"; ProdOrderComp: Record "Prod. Order Component"; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; OldItemJnlLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeGetProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; OrderNo: Code[20]; OrderLineNo: Integer; var IsHandled: Boolean)` (integration)
- `OnPostOutputOnAfterInsertCapLedgEntry(ItemJournalLine: Record "Item Journal Line"; var SkipPost: Boolean)` (integration)
- `OnPostOutputOnBeforeInsertCostValueEntries(var ItemJournalLine: Record "Item Journal Line"; var CapacityLedgerEntry: Record "Capacity Ledger Entry"; var ValuedQty: Decimal; var DirCostAmt: Decimal; var IndirCostAmt: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")` (integration)
- `OnPostOutputOnAfterInsertCostValueEntries(ItemJournalLine: Record "Item Journal Line"; var CapLedgEntry: Record "Capacity Ledger Entry"; CalledFromAdjustment: Boolean; PostToGL: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")` (integration)
- `OnPostOutputOnBeforeGetMfgAmounts(var ItemJnlLine: Record "Item Journal Line"; ProdOrder: Record "Production Order"; var IsHandled: Boolean)` (integration)
- `OnPostOutputOnAfterSetMfgUnitCost(var ItemJournalLine: Record "Item Journal Line"; var MfgUnitCost: Decimal; var ProdOrderLine: Record "Prod. Order Line")` (integration)
- `OnPostOutputOnAfterUpdateAmounts(var ItemJournalLine: Record "Item Journal Line")` (integration)
- `OnPostOutputOnBeforeCreateWhseJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PostWhseJnlLine: Boolean)` (integration)
  - subscribers: [Codeunit 20575 "Subc. Invt. Put-away Ext"](../codeunit/20575.md) SuppressAutoWhseJnlForSubcOutput_OnPostOutputOnBeforeCreateWhseJnlLine
- `OnPostOutputOnAfterCreateWhseJnlLine(var ItemJournalLine: Record "Item Journal Line")` (integration)
- `OnPostOutputOnBeforePostItem(var ItemJournalLine: Record "Item Journal Line"; var ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)` (integration)
- `OnPostOutputOnBeforeUpdateProdOrderLine(var ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnAfterPostOutput(var ItemLedgerEntry: Record "Item Ledger Entry"; var ProdOrderLine: Record "Prod. Order Line"; var ItemJournalLine: Record "Item Journal Line")` (integration)
  - subscribers: [Codeunit 20407 "Qlty. Manufactur. Integration"](../codeunit/20407.md) HandleOnAfterPostOutput
- `OnBeforePostOutputForProdOrder(var ItemJnlLine: Record "Item Journal Line"; var LastOperation: Boolean; var IsHandled: Boolean)` (integration)
- `OnPostOutputOnAfterProdOrderRtngLineSetFilters(var ProdOrderRtngLine: Record "Prod. Order Routing Line")` (integration)
- `OnBeforeCallFlushOperation(var ItemJnlLine: Record "Item Journal Line"; var ShouldFlushOperation: Boolean)` (integration)
- `OnBeforeGetOutputProdOrder(var ProdOrder: Record "Production Order"; ItemJnlLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeGetOutputProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; ItemJnlLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeGetProdOrderRoutingLine(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; OldItemJnlLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforePostOutputUpdateProdOrderRtngLine(var ProdOrderRtngLine: Record "Prod. Order Routing Line"; ItemJnlLine: Record "Item Journal Line"; var IsHandled: Boolean)` (integration)
- `OnBeforeOnApplyCapNeed(var ItemJnlLine: Record "Item Journal Line"; var PostedSetupTime: Decimal; var PostedRunTime: Decimal; var IsHandled: Boolean)` (integration)
- `OnAfterCalcCapQty(var ItemJnlLine: Record "Item Journal Line"; var CapQty: Decimal)` (integration)
- `OnApplyCapNeedOnAfterSetFilters(var ProdOrderCapNeed: Record "Prod. Order Capacity Need"; ItemJnlLine: Record "Item Journal Line")` (integration)
- `OnPostOutputForProdOrderOnAfterApplyCapNeed(var ItemJnlLine: Record "Item Journal Line"; var ValuedQty: Decimal)` (integration)
- `OnBeforeNextOperationExist(var ProdOrderRoutingLine: Record "Prod. Order Routing Line")` (integration)
- `OnCalcCapLedgerEntriesSetupRunTimeOnAfterCapLedgerEntrySetFilters(var CapLedgerEntry: Record "Capacity Ledger Entry"; ItemJnlLine: Record "Item Journal Line")` (integration)
- `OnBeforeUpdateProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; var ItemJournalLine: Record "Item Journal Line"; ReTrack: Boolean)` (integration)
- `OnBeforeProdOrderLineModify(var ProdOrderLine: Record "Prod. Order Line"; ItemJournalLine: Record "Item Journal Line"; ItemLedgEntryNo: Integer)` (integration)
- `OnAfterUpdateProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; ReTrack: Boolean; var ItemJournalLine: Record "Item Journal Line")` (integration)
- `OnFlushOperationOnBeforeCheckRoutingLinkCode(var ProductionOrder: Record "Production Order"; var ProdOrderLine: Record "Prod. Order Line"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var ItemJournalLine: Record "Item Journal Line"; LastOperation: Boolean)` (integration)
- `OnPostFlushedConsumpOnBeforeProdOrderCompReserveTransferPOCompToItemJnlLine(ItemJournalLine: Record "Item Journal Line"; ProdOrderComponent: Record "Prod. Order Component")` (integration)
- `OnBeforePostFlushedConsumpItemJnlLine(var ItemJournalLine: Record "Item Journal Line")` (integration)
- `OnAfterPostFlushedConsump(var ProdOrderComp: Record "Prod. Order Component"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; OldItemJnlLine: Record "Item Journal Line")` (integration)
- `OnPostOutputOnAfterUpdateProdOrderLine(var ItemJournalLine: Record "Item Journal Line"; var WhseJnlLine: Record "Warehouse Journal Line"; var GlobalItemLedgEntry: Record "Item Ledger Entry")` (integration)
- `OnFlushOperationOnAfterProdOrderCompSetFilters(var ProdOrderComponent: Record "Prod. Order Component"; ItemJournalLineSaved: Record "Item Journal Line"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line")` (integration)
- `OnBeforeFlushOperation(var ProdOrder: Record "Production Order"; var ProdOrderLine: Record "Prod. Order Line"; var ItemJnlLine: Record "Item Journal Line"; LastOperation: Boolean)` (integration)
- `OnAfterFlushOperation(var ProdOrder: Record "Production Order"; var ProdOrderLine: Record "Prod. Order Line"; var ItemJnlLine: Record "Item Journal Line")` (integration)
- `OnPostFlushedConsumptionOnBeforeCalcQtyToPost(ProdOrder: Record "Production Order"; ProdOrderLine: Record "Prod. Order Line"; ProdOrderComp: Record "Prod. Order Component"; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; OldItemJnlLine: Record "Item Journal Line"; var OutputQtyBase: Decimal)` (integration)
- `OnPostFlushedConsumpOnAfterCalcQtyToPost(ProductionOrder: Record "Production Order"; ProdOrderLine: Record "Prod. Order Line"; ProdOrderComponent: Record "Prod. Order Component"; ActOutputQtyBase: Decimal; var QtyToPost: Decimal; var OldItemJournalLine: Record "Item Journal Line"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var CompItem: Record Item)` (integration)
- `OnPostFlushedConsumpOnAfterCopyProdOrderFieldsToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var OldItemJournalLine: Record "Item Journal Line"; ProdOrderLine: Record "Prod. Order Line"; ProdOrderComponent: Record "Prod. Order Component"; CompItem: record Item)` (integration)
- `OnBeforePostOutput(var ItemJnlLine: Record "Item Journal Line"; var SkipInventoryValueZeroCheck: Boolean)` (integration)
- `OnBeforeGetItem(var Item: Record Item; ItemNo: Code[20]; ForceGetItem: Boolean; var HasGotItem: Boolean; var IsHandled: Boolean)` (integration)

## Event subscriptions

- OnPostConsumption subscribes to Codeunit "Item Jnl.-Post Line" OnPostConsumption
- OnPostOutput subscribes to Codeunit "Item Jnl.-Post Line" OnPostOutput
- OnSetOrderAdjmtPropertiesForProduction subscribes to Codeunit "Item Jnl.-Post Line" OnSetOrderAdjmtPropertiesForProduction
- OnCorrectOutputValuationDateOnCheckProduction subscribes to Codeunit "Item Jnl.-Post Line" OnCorrectOutputValuationDateOnCheckProduction
- OnCodeOnAfterCalcQtyPerUnitOfMeasure subscribes to Codeunit "Item Jnl.-Post Line" OnCodeOnAfterCalcQtyPerUnitOfMeasure
- OnBeforeInsertCapLedgEntry subscribes to Codeunit "Item Jnl.-Post Line" OnBeforeInsertCapLedgEntry
- OnSetupTempSplitItemJnlLineOnAfterDeductNonDistr subscribes to Codeunit "Item Jnl.-Post Line" OnSetupTempSplitItemJnlLineOnAfterDeductNonDistr
- OnSetupSplitJnlLineOnSetDisableItemTracking subscribes to Codeunit "Item Jnl.-Post Line" OnSetupSplitJnlLineOnSetDisableItemTracking
- OnSetupSplitJnlLineOnCheckOperationNo subscribes to Codeunit "Item Jnl.-Post Line" OnSetupSplitJnlLineOnCheckOperationNo
- OnAfterPrepareItem subscribes to Codeunit "Item Jnl.-Post Line" OnAfterPrepareItem
- OnAfterSetupTempSplitItemJnlLineSetQty subscribes to Codeunit "Item Jnl.-Post Line" OnAfterSetupTempSplitItemJnlLineSetQty
- OnAfterInitItemLedgEntry subscribes to Codeunit "Item Jnl.-Post Line" OnAfterInitItemLedgEntry
- CopyLocationCodeToCapValueEntry subscribes to Codeunit "Item Jnl.-Post Line" OnBeforeInsertCapValueEntry
- OnInsertCapValueEntryOnBeforeCapLedgEntryModify subscribes to Codeunit "Item Jnl.-Post Line" OnInsertCapValueEntryOnBeforeCapLedgEntryModify
- OnAfterGetUpdatedAppliedQtyForConsumption subscribes to Codeunit "Item Jnl.-Post Line" OnAfterGetUpdatedAppliedQtyForConsumption

## Procedures

- `PostFlushedConsumption(var ItemJnlLine: Record "Item Journal Line"; ProdOrder: Record "Production Order"; ProdOrderLine: Record "Prod. Order Line"; ProdOrderComp: Record "Prod. Order Component"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; OldItemJnlLine: Record "Item Journal Line"; var sender: Codeunit "Item Jnl.-Post Line")`

Plus 25 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 22 "Item Jnl.-Post Line"](../codeunit/22.md) (32 calls: `FlushOperation → (object)`, `FlushOperation → GetCalledFromInvtPutawayPick`, `FlushOperation → RestoreTempSplitItemJnlLine`, …)
- [Codeunit 5402 "Unit of Measure Management"](../codeunit/5402.md) (3 calls: `PostConsumption → QtyRndPrecision`, `PostFlushedConsumption → QtyRndPrecision`, `PostFlushedConsumption → RoundToItemRndPrecision`)
- [Codeunit 99000845 "Reservation Management"](../codeunit/99000845.md) (3 calls: `UpdateProdOrderLine → AutoTrack`, `UpdateProdOrderLine → ClearSurplus`, `UpdateProdOrderLine → SetReservSource`)
- [Codeunit 5996 "Prod. Order Warehouse Mgt."](../codeunit/5996.md) (2 calls: `InsertConsumpEntry → CreateWhseJnlLineFromConsumptionJournal`, `PostOutput → CreateWhseJnlLineFromOutputJournal`)
- [Codeunit 7302 "WMS Management"](../codeunit/7302.md) (2 calls: `InsertConsumpEntry → CheckWhseJnlLine`, `PostOutput → CheckWhseJnlLine`)
- [Codeunit 99000837 "Prod. Order Line-Reserve"](../codeunit/99000837.md) (2 calls: `PostOutput → TransferPOLineToItemJnlLine`, `UpdateProdOrderLine → AssignForPlanning`)
- [Codeunit 99000838 "Prod. Order Comp.-Reserve"](../codeunit/99000838.md) (2 calls: `InsertConsumpEntry → TransferPOCompToItemJnlLine`, `PostFlushedConsumption → TransferPOCompToItemJnlLine`)
- [Codeunit 10 "Type Helper"](../codeunit/10.md) (1 call: `ApplyCapNeed → Minimum`)
- [Codeunit 408 "DimensionManagement"](../codeunit/408.md) (1 call: `GetCombinedDimSetID → GetCombinedDimensionSetID`)
- [Codeunit 5837 "Additional-Currency Management"](../codeunit/5837.md) (1 call: `PostOutput → CalcACYAmt`)
- [Codeunit 99000758 "Mfg. Cost Calculation Mgt."](../codeunit/99000758.md) (1 call: `PostFlushedConsumption → CalcActNeededQtyBase`)
- [Codeunit 99000891 "Mfg. Item Tracking Mgt."](../codeunit/99000891.md) (1 call: `PostConsumption → RetrieveConsumpItemTracking`)

## Recent changes

- 2026-10-02 [#12066 Bugs/remove asm inv mfg clean27 tags for wave2 2026](../../changes/bcapps/12066.md) (main, BC30, obsoletion)

## Across versions

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

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. Item Jnl.-Post Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
