---
title: "Codeunit 1104 Cost Account Allocation, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/points/
object: https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 1104 Cost Account Allocation, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/points/

17 procedures and triggers with a step in src/Layers/W1/BaseApp/CostAccounting/Allocation/CostAccountAllocation.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 20](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L20), trigger.

- [22](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L22) calls `ConfirmCalcAllocationKeys`

## ConfirmCalcAllocationKeys

[Line 42](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L42), local.

- [49](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L49) calls `CalcAllocationKeys`

## CalcAllocationKeys

[Line 54](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L54).

- [73](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L73) calls `CalcLineShare`
- [76](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L76) validates [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) `Share`

## CalcAllocationKey

[Line 83](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L83).

- [87](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L87) raises `OnBeforeCalcAllocationKey`
- [94](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L94) calls `CalcLineShare`
- [97](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L97) validates [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) `Share`
- [99](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L99) raises `OnAfterCalcAllocationKey`

## CalcLineShare

[Line 102](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L102).

- [107](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L107) raises `OnBeforeCalcLineShare`, IsHandled
- [112](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L112) calls `CalcDateFilter`
- [116](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L116) calls `CalcGLEntryShare`
- [118](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L118) calls `CalcGLBudgetEntryShare`
- [120](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L120) calls `CalcCostEntryShare`
- [122](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L122) calls `CalcCostBudgetEntryShare`
- [124](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L124) calls `CalcEmployeeCountShare`
- [126](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L126) calls `CalcItemSoldQtyShare`
- [128](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L128) calls `CalcItemPurchasedQtyShare`
- [130](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L130) calls `CalcItemSoldAmtShare`
- [132](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L132) calls `CalcItemPurchasedAmtShare`
- [137](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L137) writes [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) Modify

## CalcGLEntryShare

[Line 141](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L141), local.

- [150](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L150) calls `SetCostAccDimFilters`
- [151](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L151) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `GetDimSetFilters`

## CalcGLBudgetEntryShare

[Line 162](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L162), local.

- [172](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L172) calls `SetCostAccDimFilters`
- [173](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L173) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `GetDimSetFilters`

## CalcEmployeeCountShare

[Line 211](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L211), local.

- [217](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L217) raises `OnBeforeCalcEmployeeCountShare`, IsHandled

## CalcItemSoldQtyShare

[Line 228](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L228), local.

- [234](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L234) raises `OnBeforeCalcItemSoldQtyShare`, IsHandled
- [238](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L238) calls `CalcItemShare`

## CalcItemSoldAmtShare

[Line 241](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L241), local.

- [245](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L245) calls `CalcItemShare`

## CalcItemPurchasedQtyShare

[Line 248](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L248), local.

- [252](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L252) calls `CalcItemShare`

## CalcItemPurchasedAmtShare

[Line 255](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L255), local.

- [259](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L259) calls `CalcItemShare`

## CalcItemShare

[Line 262](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L262), local.

- [273](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L273) calls `SetCostAccDimFilters`
- [274](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L274) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `GetDimSetFilters`
- [276](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L276) calls `SumValueEntryField`
- [279](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L279) calls `SumValueEntryField`

## SumValueEntryField

[Line 282](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L282), local.

- [301](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L301) raises `OnAfterSumValueEntryField`

## CalcDateFilter

[Line 304](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L304), local.

- [317](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L317) raises `OnBeforeCalcDateFilter`, IsHandled

## SetCostAccDimFilters

[Line 438](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L438), local.

- [443](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L443) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `ClearDimSetFilter`
- [445](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L445) calls `SetDimFilter`
- [446](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L446) calls `SetDimFilter`

## SetDimFilter

[Line 449](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L449), local.

- [452](https://jonas-paprotka.de/ref/codeunit/1104-cost-account-allocation/source/#L452) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `GetDimSetIDsForFilter`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
