---
id: object/codeunit/1100
type: object
title: Codeunit 1100 "Cost Account Mgt"
summary: Codeunit 1100 "Cost Account Mgt" in Base Application (Microsoft.CostAccounting.Setup). 33 public procedures, 21 events. Present since at least BC23, still in BC30, changed in BC25.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "25"
  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: 3f4759ecc9cf05cf65cac4ebae2f6f1bdb8fe5bf4b4df2f6fd76e5c2fd88b4ca
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CostAccounting/Setup/CostAccountMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/CostAccounting/Setup/CostAccountMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1100
name: Cost Account Mgt
namespace: Microsoft.CostAccounting.Setup
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 63
  events: 21
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 6
  implements: 0
---

# Codeunit 1100 "Cost Account Mgt"

> Codeunit 1100 "Cost Account Mgt" in Base Application (Microsoft.CostAccounting.Setup). 33 public procedures, 21 events. Present since at least BC23, still in BC30, changed in BC25.

Base Application · Microsoft.CostAccounting.Setup · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CostAccounting/Setup/CostAccountMgt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "G/L Account" = rm, TableData "G/L Entry" = rm, TableData Dimension = r, TableData "Cost Entry" = rimd, TableData "Cost Center" = r, TableData "Cost Object" = r |

## Events published

- `OnAfterGetCostTypesFromChartDirect()` (integration)
- `OnAfterUpdateCostTypeFromGLAcc(var CostType: Record "Cost Type"; var GLAcc: Record "G/L Account"; var xGLAcc: Record "G/L Account"; CallingTrigger: Option OnInsert,OnModify,,OnRename)` (integration)
- `OnBeforeCopyDimValueToCostCenter(DimValue: Record "Dimension Value"; var CostCenter: Record "Cost Center"; var IsHandled: Boolean)` (integration)
- `OnBeforeCopyDimValueToCostObject(DimValue: Record "Dimension Value"; var CostObject: Record "Cost Object"; var IsHandled: Boolean)` (integration)
- `OnBeforeGetCostTypesFromChartOfAccount(var IsHandled: Boolean)` (integration)
- `OnBeforeGetCostCenterCodeFromDimSet(DimSetID: Integer; var Result: Code[20]; var IsHandled: Boolean)` (integration)
- `OnBeforeGetCostObjectCodeFromDimSet(DimSetID: Integer; var Result: Code[20]; var IsHandled: Boolean)` (integration)
- `OnGetCostTypesFromChartDirectOnBeforeCostTypeInsert(var GLAccount: Record "G/L Account"; var CostType: Record "Cost Type"; var CostTypeExists: Boolean)` (integration)
- `OnGetCostTypeOnAfterSetFilters(var GLAccount: Record "G/L Account"; var CostType: Record "Cost Type")` (integration)
- `OnGetCostTypeOnAfterCostTypeSetFilter(var CostType: Record "Cost Type")` (integration)
- `OnLinkCostTypesToGLAccountsOnAfterSetFilters(var GLAccount: Record "G/L Account"; var CostType: Record "Cost Type")` (integration)
- `OnLinkCostTypesToGLAccountsOnAfterCostTypeSetFilter(var CostType: Record "Cost Type")` (integration)
- `OnAfterShouldNotUpdateCostTypeFromGLAcc(var GLAccount: Record "G/L Account"; var xGLAccount: Record "G/L Account"; var CostAccSetup: Record "Cost Accounting Setup"; CallingTrigger: Option OnInsert,OnModify,,OnRename; var ShouldNotUpdate: Boolean)` (integration)
- `OnUpdateCostCenterFromDimOnBeforeMessage(var IsHandled: Boolean)` (integration)
- `OnUpdateCostObjectFromDimOnBeforeMessage(var IsHandled: Boolean)` (integration)
- `OnGetCostTypesFromChartDirectOnAfterSetFilters(var GLAccount: Record "G/L Account")` (integration)
- `OnAfterCopyDimValueToCostObject(DimValue: Record "Dimension Value"; var CostObject: Record "Cost Object")` (integration)
- `OnIsGLAccNoFirstFromRangeOnAfterGLAccSetFilter(var CostType: Record "Cost Type"; var GLAccountCheck: Record "G/L Account")` (integration)
- `OnUpdateCostTypeFromGLAccOnInsertOrModifyCostTypeBeforeModify(var CostType: Record "Cost Type")` (integration)
- `OnUpdateCostTypeFromGLAccOnRenameCostTypeBeforeModify(var CostType: Record "Cost Type")` (integration)
- `OnBeforeShouldNotUpdateCostTypeFromGLAcc(var GLAccount: Record "G/L Account"; var xGLAccount: Record "G/L Account"; var CostAccSetup: Record "Cost Accounting Setup"; CallingTrigger: Option OnInsert,OnModify,,OnRename; var ShouldNotUpdate: Boolean; var IsHandled: Boolean)` (integration)

## Procedures

- `GetCostTypesFromChartOfAccount()`
- `GetCostTypesFromChartDirect()`
- `ConfirmUpdate(CallingTrigger: Option OnInsert,OnModify,,OnRename; TableCaption2: Text[80]; Value: Code[20]): Boolean`
- `UpdateCostTypeFromGLAcc(var GLAcc: Record "G/L Account"; var xGLAcc: Record "G/L Account"; CallingTrigger: Option OnInsert,OnModify,,OnRename)`
- `UpdateCostCenterFromDim(var DimValue: Record "Dimension Value"; var xDimValue: Record "Dimension Value"; CallingTrigger: Option OnInsert,OnModify,,OnRename)`
- `UpdateCostObjectFromDim(var DimValue: Record "Dimension Value"; var xDimValue: Record "Dimension Value"; CallingTrigger: Option OnInsert,OnModify,,OnRename)`
- `UpdateCostTypeFromDefaultDimension(var DefaultDim: Record "Default Dimension"; var GLAcc: Record "G/L Account"; CallingTrigger: Option OnInsert,OnModify,OnDelete)`
- `ConfirmIndentCostTypes()`
- `IndentCostTypes(ShowMessage: Boolean)`
- `LinkCostTypesToGLAccountsYN()`
- `LinkCostTypesToGLAccounts()`
- `CreateCostCenters()`
- `IndentCostCentersYN()`
- `IndentCostCenters()`
- `CreateCostObjects()`
- `IndentCostObjectsYN()`
- `IndentCostObjects()`
- `CheckValidCCAndCOInGLEntry(DimSetID: Integer)`
- `GetCostCenterCodeFromDimSet(DimSetID: Integer): Code[20]`
- `GetCostCenterCodeFromDefDim(TableID: Integer; No: Code[20]): Code[20]`
- `CostCenterExists(CostCenterCode: Code[20]): Boolean`
- `CostCenterExistsAsDimValue(CostCenterCode: Code[20]): Boolean`
- `LookupCostCenterFromDimValue(var CostCenterCode: Code[20])`
- `GetCostObjectCodeFromDimSet(DimSetID: Integer): Code[20]`
- `GetCostObjectCodeFromDefDim(TableID: Integer; No: Code[20]): Code[20]`
- `CostObjectExists(CostObjectCode: Code[20]): Boolean`
- `CostObjectExistsAsDimValue(CostObjectCode: Code[20]): Boolean`
- `LookupCostObjectFromDimValue(var COstObjectCode: Code[20])`
- `InsertCostBudgetRegister(CostBudgetEntryNo: Integer; CostBudgetName: Code[10]; CostBudgetAmount: Decimal): Integer`
- `UpdateCostBudgetRegister(CostBudgetRegNo: Integer; CostBudgetEntryNo: Integer; CostBudgetAmount: Decimal)`
- `IsGLAccNoFirstFromRange(CostType: Record "Cost Type"; GLAccNo: Code[20]): Boolean`
- `GetCostType(GLAccNo: Code[20]; var CostTypeExists: Boolean)`
- `OpenDimValueListFiltered(FieldNo: Integer)`

Plus 9 local procedures.

## Triggers

OnRun

## Called by

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 1105 "Transfer GL Entries to CA"](../codeunit/1105.md) (5 calls: `GetCostCenterCode → GetCostCenterCodeFromDimSet`, `GetCostObjectCode → GetCostObjectCodeFromDimSet`, `InsertCostJournalLine → CostCenterExists`, …)
- [Table 1109 "Cost Budget Entry"](../table/1109.md) (3 calls: `HandleCostBudgetRegister → InsertCostBudgetRegister`, `HandleCostBudgetRegister → UpdateCostBudgetRegister`, `OnModify → UpdateCostBudgetRegister`)
- [Table 15 "G/L Account"](../table/15.md) (3 calls: `OnInsert → UpdateCostTypeFromGLAcc`, `OnModify → UpdateCostTypeFromGLAcc`, `OnRename → UpdateCostTypeFromGLAcc`)
- [Table 349 "Dimension Value"](../table/349.md) (2 calls: `UpdateCostAccFromDim → UpdateCostCenterFromDim`, `UpdateCostAccFromDim → UpdateCostObjectFromDim`)
- [Codeunit 11 "Gen. Jnl.-Check Line"](../codeunit/11.md) (1 call: `RunCheck → CheckValidCCAndCOInGLEntry`)
- [Codeunit 408 "DimensionManagement"](../codeunit/408.md) (1 call: `UpdateCostType → UpdateCostTypeFromDefaultDimension`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25

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: "Cost Account Mgt")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
