---
title: "Codeunit 131340 Library - Cost Accounting, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/points/
object: https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/
app: "Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/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 131340 Library - Cost Accounting, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/points/

65 procedures and triggers with a step in src/Layers/W1/Tests/ApplicationTestLibrary/LibraryCostAccounting.Codeunit.al, in source order, read from the text, not from a run.

## CheckAllocTargetSharePercent

[Line 37](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L37).

- [49](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L49) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`

## CheckBlockedDimCombination

[Line 57](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L57).

- [61](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L61) calls `CostCenterDimension`
- [61](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L61) calls `CostObjectDimension`
- [62](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L62) calls `DeleteBlockedDimCombinations`
- [65](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L65) calls `CostCenterDimension`
- [65](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L65) calls `CostObjectDimension`
- [66](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L66) calls `DeleteBlockedDimCombinations`

## CheckBlockedDimensionValues

[Line 69](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L69).

- [76](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L76) calls [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) `FindDefaultDimension`
- [81](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L81) validates [Table 349 Dimension Value](https://jonas-paprotka.de/ref/table/349-dimension-value/) `Blocked`
- [82](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L82) writes [Table 349 Dimension Value](https://jonas-paprotka.de/ref/table/349-dimension-value/) Modify(true)

## CheckCostJnlLineConsistency

[Line 87](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L87).

- [93](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L93) calls `CreateCostCenter`
- [94](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L94) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Cost Center Code`
- [99](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L99) calls `CreateCostCenter`
- [100](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L100) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Bal. Cost Center Code`
- [105](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L105) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Cost Object Code`
- [109](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L109) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Bal. Cost Object Code`
- [111](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L111) writes [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) Modify(true)

## ClearCostJournalLines

[Line 114](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L114).

- [120](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L120) writes [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) DeleteAll(true)

## CreateAllocSource

[Line 163](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L163).

- [167](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L167) calls `FindCostType`
- [171](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L171) validates [Table 1106 Cost Allocation Source](https://jonas-paprotka.de/ref/table/1106-cost-allocation-source/) `ID`
- [171](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L171) calls `LastAllocSourceID`
- [172](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L172) validates [Table 1106 Cost Allocation Source](https://jonas-paprotka.de/ref/table/1106-cost-allocation-source/) `Level`
- [172](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L172) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [173](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L173) validates [Table 1106 Cost Allocation Source](https://jonas-paprotka.de/ref/table/1106-cost-allocation-source/) `Credit to Cost Type`
- [174](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L174) writes [Table 1106 Cost Allocation Source](https://jonas-paprotka.de/ref/table/1106-cost-allocation-source/) Insert(true)

## CreateAllocSourceWithCCenter

[Line 177](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L177).

- [179](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L179) calls `CreateAllocSource`
- [180](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L180) calls `UpdateAllocSourceWithCCenter`

## CreateAllocSourceWithCObject

[Line 183](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L183).

- [185](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L185) calls `CreateAllocSource`
- [186](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L186) calls `UpdateAllocSourceWithCObject`

## CreateAllocTarget

[Line 189](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L189).

- [193](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L193) calls `LastAllocTargetID`
- [196](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L196) validates [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) `ID`
- [197](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L197) validates [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) `Line No.`
- [198](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L198) validates [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) `Target Cost Type`
- [199](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L199) validates [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) `Base`
- [200](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L200) validates [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) `Allocation Target Type`
- [201](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L201) writes [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) Insert(true)
- [206](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L206) validates [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) `Share`
- [207](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L207) writes [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) Modify(true)

## CreateAllocTargetWithCCenter

[Line 210](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L210).

- [212](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L212) calls `CreateAllocTarget`
- [213](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L213) calls `UpdateAllocTargetWithCCenter`

## CreateAllocTargetWithCObject

[Line 216](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L216).

- [218](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L218) calls `CreateAllocTarget`
- [219](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L219) calls `UpdateAllocTargetWithCObject`

## CreateBalanceSheetGLAccount

[Line 222](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L222).

- [229](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L229) validates [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) `Align G/L Account`
- [230](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L230) writes [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) Modify(true)
- [232](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L232) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `CreateGLAccount`
- [234](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L234) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `Income/Balance`
- [235](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L235) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify(true)
- [238](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L238) validates [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) `Align G/L Account`
- [239](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L239) writes [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) Modify(true)

## CreateCostBudgetEntry

[Line 242](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L242).

- [247](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L247) calls `FindCostType`
- [248](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L248) calls `FindCostCenter`
- [251](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L251) validates [Table 1109 Cost Budget Entry](https://jonas-paprotka.de/ref/table/1109-cost-budget-entry/) `Date`
- [252](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L252) validates [Table 1109 Cost Budget Entry](https://jonas-paprotka.de/ref/table/1109-cost-budget-entry/) `Budget Name`
- [253](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L253) validates [Table 1109 Cost Budget Entry](https://jonas-paprotka.de/ref/table/1109-cost-budget-entry/) `Cost Type No.`
- [254](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L254) validates [Table 1109 Cost Budget Entry](https://jonas-paprotka.de/ref/table/1109-cost-budget-entry/) `Cost Center Code`
- [255](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L255) validates [Table 1109 Cost Budget Entry](https://jonas-paprotka.de/ref/table/1109-cost-budget-entry/) `Amount`
- [255](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L255) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandDec`
- [256](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L256) writes [Table 1109 Cost Budget Entry](https://jonas-paprotka.de/ref/table/1109-cost-budget-entry/) Insert(true)

## CreateCostBudgetName

[Line 259](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L259).

- [262](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L262) validates [Table 1110 Cost Budget Name](https://jonas-paprotka.de/ref/table/1110-cost-budget-name/) `Name`
- [263](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L263) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [264](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L264) validates [Table 1110 Cost Budget Name](https://jonas-paprotka.de/ref/table/1110-cost-budget-name/) `Description`
- [265](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L265) writes [Table 1110 Cost Budget Name](https://jonas-paprotka.de/ref/table/1110-cost-budget-name/) Insert(true)

## CreateCostCenter

[Line 268](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L268).

- [271](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L271) validates [Table 1112 Cost Center](https://jonas-paprotka.de/ref/table/1112-cost-center/) `Code`
- [271](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L271) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [272](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L272) validates [Table 1112 Cost Center](https://jonas-paprotka.de/ref/table/1112-cost-center/) `Line Type`
- [273](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L273) writes [Table 1112 Cost Center](https://jonas-paprotka.de/ref/table/1112-cost-center/) Insert(true)

## CreateCostCenterFromDimension

[Line 276](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L276).

- [282](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L282) calls `SetAlignment`
- [284](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L284) calls [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) `CreateDimensionValue`

## CreateCostJournalBatch

[Line 288](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L288).

- [290](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L290) calls `CreateCostJnlBatchWithDelOpt`

## CreateCostJournalTemplate

[Line 293](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L293).

- [296](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L296) validates [Table 1100 Cost Journal Template](https://jonas-paprotka.de/ref/table/1100-cost-journal-template/) `Name`
- [297](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L297) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [298](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L298) writes [Table 1100 Cost Journal Template](https://jonas-paprotka.de/ref/table/1100-cost-journal-template/) Insert(true)

## CreateCostJnlBatchWithDelOpt

[Line 301](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L301).

- [304](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L304) validates [Table 1102 Cost Journal Batch](https://jonas-paprotka.de/ref/table/1102-cost-journal-batch/) `Journal Template Name`
- [305](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L305) validates [Table 1102 Cost Journal Batch](https://jonas-paprotka.de/ref/table/1102-cost-journal-batch/) `Delete after Posting`
- [306](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L306) validates [Table 1102 Cost Journal Batch](https://jonas-paprotka.de/ref/table/1102-cost-journal-batch/) `Name`
- [306](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L306) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [307](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L307) validates [Table 1102 Cost Journal Batch](https://jonas-paprotka.de/ref/table/1102-cost-journal-batch/) `Description`
- [308](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L308) writes [Table 1102 Cost Journal Batch](https://jonas-paprotka.de/ref/table/1102-cost-journal-batch/) Insert(true)

## CreateCostJournalLine

[Line 311](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L311).

- [316](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L316) calls `FindCostType`
- [317](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L317) calls `FindCostType`
- [319](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L319) calls `CreateCostJournalLineBasic`
- [322](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L322) calls `CheckCostJnlLineConsistency`

## CreateCostJournalLineBasic

[Line 325](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L325).

- [330](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L330) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Journal Template Name`
- [331](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L331) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Journal Batch Name`
- [333](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L333) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Line No.`
- [333](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L333) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GetNewLineNo`
- [334](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L334) writes [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) Insert(true)
- [336](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L336) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Posting Date`
- [337](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L337) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Document No.`
- [338](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L338) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Cost Type No.`
- [339](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L339) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Bal. Cost Type No.`
- [340](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L340) validates [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) `Amount`
- [340](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L340) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [341](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L341) writes [Table 1101 Cost Journal Line](https://jonas-paprotka.de/ref/table/1101-cost-journal-line/) Modify(true)

## CreateCostObject

[Line 344](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L344).

- [347](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L347) validates [Table 1113 Cost Object](https://jonas-paprotka.de/ref/table/1113-cost-object/) `Code`
- [347](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L347) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [348](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L348) validates [Table 1113 Cost Object](https://jonas-paprotka.de/ref/table/1113-cost-object/) `Line Type`
- [349](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L349) writes [Table 1113 Cost Object](https://jonas-paprotka.de/ref/table/1113-cost-object/) Insert(true)

## CreateCostObjectFromDimension

[Line 352](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L352).

- [358](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L358) calls `SetAlignment`
- [360](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L360) calls [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) `CreateDimensionValue`

## CreateCostType

[Line 365](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L365).

- [367](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L367) calls `CreateCostTypeWithGLRange`

## CreateCostTypeNoGLRange

[Line 370](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L370).

- [373](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L373) validates [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) `No.`
- [373](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L373) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [374](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L374) validates [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) `Type`
- [375](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L375) validates [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) `Combine Entries`
- [376](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L376) writes [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) Insert(true)

## CreateCostTypeWithCombine

[Line 379](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L379).

- [381](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L381) calls `CreateCostTypeWithGLRange`
- [382](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L382) validates [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) `Combine Entries`
- [383](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L383) writes [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) Modify(true)

## CreateCostTypeWithGLRange

[Line 386](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L386).

- [393](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L393) calls `SetAlignment`
- [394](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L394) calls `CreateIncomeStmtGLAccount`
- [400](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L400) calls `SetAlignment`
- [402](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L402) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [404](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L404) calls `CreateIncomeStmtGLAccount`
- [408](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L408) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [409](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L409) validates [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) `G/L Account Range`
- [410](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L410) writes [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) Modify(true)

## CreateIncomeStmtGLAccount

[Line 414](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L414).

- [418](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L418) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `CreateGLAccount`
- [419](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L419) validates [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) `Income/Balance`
- [420](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L420) writes [Table 15 G/L Account](https://jonas-paprotka.de/ref/table/15-g-l-account/) Modify(true)
- [425](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L425) validates [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) `G/L Account Range`
- [426](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L426) writes [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) Modify(true)

## CreateJnlLine

[Line 431](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L431).

- [435](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L435) calls `SetupGeneralJnlBatch`
- [438](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L438) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `CreateGeneralJnlLine`
- [440](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L440) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandDec`
- [443](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L443) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Gen. Posting Type`
- [444](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L444) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Gen. Bus. Posting Group`
- [445](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L445) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Gen. Prod. Posting Group`
- [446](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L446) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Modify(true)

## DeleteAllCostTypeEntries

[Line 449](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L449).

- [456](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L456) writes [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) DeleteAll(true)

## DeleteCostBudgetRegEntries

[Line 459](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L459).

- [464](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L464) calls `DeleteCostBudgetRegEntriesFrom`

## DeleteCostBudgetRegEntriesFrom

[Line 467](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L467).

- [473](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L473) calls [Report 1139 Delete Cost Budget Entries](https://jonas-paprotka.de/ref/report/1139-delete-cost-budget-entries/) `InitializeRequest`

## DeleteCostRegisterEntries

[Line 479](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L479).

- [484](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L484) calls `DeleteCostRegisterEntriesFrom`

## DeleteCostRegisterEntriesFrom

[Line 487](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L487).

- [493](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L493) calls [Report 1130 Delete Cost Entries](https://jonas-paprotka.de/ref/report/1130-delete-cost-entries/) `InitializeRequest`

## DeleteBlockedDimCombinations

[Line 499](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L499).

- [504](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L504) writes [Table 350 Dimension Combination](https://jonas-paprotka.de/ref/table/350-dimension-combination/) Delete(true)

## FindAllocSource

[Line 508](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L508).

- [521](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L521) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## FindCostType

[Line 524](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L524).

- [526](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L526) calls `GetAllCostTypes`
- [530](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L530) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## FindCostTypeLinkedToGLAcc

[Line 533](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L533).

- [542](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L542) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## FindCostTypeWithCostCenter

[Line 546](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L546).

- [548](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L548) calls `GetAllCostTypes`
- [554](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L554) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## FindCostCenter

[Line 557](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L557).

- [566](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L566) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## FindCostJournalBatch

[Line 569](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L569).

- [571](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L571) calls `FindCostJnlBatchWithDelOption`

## FindCostJnlBatchWithDelOption

[Line 574](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L574).

- [579](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L579) calls `CreateCostJournalBatch`

## FindCostObject

[Line 589](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L589).

- [598](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L598) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## FindGLAccLinkedToCostType

[Line 601](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L601).

- [603](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L603) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindGLAccount`
- [608](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L608) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## FindIncomeStmtGLAccount

[Line 620](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L620).

- [622](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L622) calls `GetAllIncomeStmtGLAccounts`
- [623](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L623) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## GetAllIncomeStmtGLAccounts

[Line 636](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L636).

- [638](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L638) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindGLAccount`

## InitializeCASetup

[Line 689](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L689).

- [694](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L694) validates [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) `Align G/L Account`
- [695](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L695) validates [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) `Align Cost Center Dimension`
- [696](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L696) validates [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) `Align Cost Object Dimension`
- [697](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L697) validates [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) `Auto Transfer from G/L`
- [699](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L699) validates [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) `Last Allocation ID`
- [701](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L701) validates [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) `Last Allocation Doc. No.`
- [702](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L702) writes [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) Modify(true)
- [704](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L704) calls `InitializeCASourceCodes`

## InitializeCASourceCodes

[Line 707](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L707).

- [716](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L716) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `CreateSourceCode`
- [717](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L717) validates [Table 242 Source Code Setup](https://jonas-paprotka.de/ref/table/242-source-code-setup/) `G/L Entry to CA`
- [721](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L721) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `CreateSourceCode`
- [722](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L722) validates [Table 242 Source Code Setup](https://jonas-paprotka.de/ref/table/242-source-code-setup/) `Cost Journal`
- [726](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L726) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `CreateSourceCode`
- [727](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L727) validates [Table 242 Source Code Setup](https://jonas-paprotka.de/ref/table/242-source-code-setup/) `Cost Allocation`
- [732](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L732) writes [Table 242 Source Code Setup](https://jonas-paprotka.de/ref/table/242-source-code-setup/) Modify(true)

## PostCostJournalLine

[Line 754](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L754).

- [756](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L756) runs [Codeunit 1103 CA Jnl.-Post Batch](https://jonas-paprotka.de/ref/codeunit/1103-ca-jnl-post-batch/)

## PostGenJournalLine

[Line 759](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L759).

- [763](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L763) calls `CreateJnlLine`
- [764](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L764) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `PostGeneralJnlLine`

## SetAutotransferFromGL

[Line 784](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L784).

- [789](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L789) validates [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) `Auto Transfer from G/L`
- [790](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L790) writes [Table 1108 Cost Accounting Setup](https://jonas-paprotka.de/ref/table/1108-cost-accounting-setup/) Modify(true)

## SetDefaultDimension

[Line 793](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L793).

- [799](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L799) calls `CostCenterDimension`
- [800](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L800) calls [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) `FindDimensionValue`
- [800](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L800) calls `CostCenterDimension`
- [801](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L801) calls [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) `CreateDefaultDimensionGLAcc`
- [807](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L807) validates [Table 1112 Cost Center](https://jonas-paprotka.de/ref/table/1112-cost-center/) `Code`
- [808](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L808) validates [Table 1112 Cost Center](https://jonas-paprotka.de/ref/table/1112-cost-center/) `Line Type`
- [809](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L809) writes [Table 1112 Cost Center](https://jonas-paprotka.de/ref/table/1112-cost-center/) Insert(true)
- [812](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L812) calls `CheckBlockedDimensionValues`
- [813](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L813) calls `CheckBlockedDimCombination`

## SetupGeneralJnlBatch

[Line 816](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L816).

- [820](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L820) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `SelectGenJnlBatch`
- [821](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L821) calls `CreateBalanceSheetGLAccount`
- [822](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L822) validates [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) `Bal. Account No.`
- [823](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L823) writes [Table 232 Gen. Journal Batch](https://jonas-paprotka.de/ref/table/232-gen-journal-batch/) Modify(true)
- [825](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L825) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `ClearGenJournalLines`

## SetupGLAccount

[Line 828](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L828).

- [830](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L830) calls `FindGLAccLinkedToCostType`
- [831](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L831) calls `SetDefaultDimension`

## TransferGLEntries

[Line 840](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L840).

- [842](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L842) runs [Codeunit 1105 Transfer GL Entries to CA](https://jonas-paprotka.de/ref/codeunit/1105-transfer-gl-entries-to-ca/)

## UpdateAllocSourceWithCCenter

[Line 845](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L845).

- [849](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L849) calls `FindCostCenter`
- [850](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L850) validates [Table 1106 Cost Allocation Source](https://jonas-paprotka.de/ref/table/1106-cost-allocation-source/) `Cost Center Code`
- [851](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L851) writes [Table 1106 Cost Allocation Source](https://jonas-paprotka.de/ref/table/1106-cost-allocation-source/) Modify(true)

## UpdateAllocSourceWithCObject

[Line 854](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L854).

- [858](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L858) calls `FindCostObject`
- [859](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L859) validates [Table 1106 Cost Allocation Source](https://jonas-paprotka.de/ref/table/1106-cost-allocation-source/) `Cost Object Code`
- [860](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L860) writes [Table 1106 Cost Allocation Source](https://jonas-paprotka.de/ref/table/1106-cost-allocation-source/) Modify(true)

## UpdateAllocTargetWithCCenter

[Line 863](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L863).

- [867](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L867) calls `FindCostCenter`
- [868](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L868) validates [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) `Target Cost Center`
- [869](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L869) writes [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) Modify(true)

## UpdateAllocTargetWithCObject

[Line 872](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L872).

- [876](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L876) calls `FindCostObject`
- [877](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L877) validates [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) `Target Cost Object`
- [878](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L878) writes [Table 1107 Cost Allocation Target](https://jonas-paprotka.de/ref/table/1107-cost-allocation-target/) Modify(true)

## UpdateCostTypeWithCostCenter

[Line 882](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L882).

- [886](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L886) calls `FindCostCenter`
- [887](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L887) validates [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) `Cost Center Code`
- [888](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L888) writes [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) Modify(true)

## UpdateCostTypeWithCostObject

[Line 892](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L892).

- [896](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L896) calls `FindCostObject`
- [897](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L897) validates [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) `Cost Object Code`
- [898](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L898) writes [Table 1103 Cost Type](https://jonas-paprotka.de/ref/table/1103-cost-type/) Modify(true)

## ValidateEntriesTransfered

[Line 901](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L901).

- [917](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L917) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [919](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L919) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [920](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L920) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [924](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L924) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [925](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L925) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [927](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L927) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [929](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L929) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [931](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L931) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`
- [933](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L933) calls [Codeunit 130000 Assert](https://jonas-paprotka.de/ref/codeunit/130000-assert/) `AreEqual`

## ValidateGLAccountCostTypeRef

[Line 936](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L936).

- [946](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L946) calls `FindGLAccountsByCostType`

## ValidateGLAccountIsIncomeStmt

[Line 952](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L952).

- [957](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L957) calls `FindGLAccountsByCostType`

## VerifyCostTypeIntegrity

[Line 964](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L964).

- [969](https://jonas-paprotka.de/ref/codeunit/131340-library-cost-accounting/source/#L969) calls `GetAllCostTypes`

## Source

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

JOP-AL, 2026-11-20.
