---
title: "Codeunit 2677 Gen. Journal Alloc. Acc. Mgt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/points/
object: https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/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 2677 Gen. Journal Alloc. Acc. Mgt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/points/

18 procedures and triggers with a step in src/Layers/W1/BaseApp/Finance/AllocationAccount/GenJournalAllocAccMgt.Codeunit.al, in source order, read from the text, not from a run.

## GetOrGenerateAllocationLines

[Line 27](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L27), internal.

- [40](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L40) calls `LoadManualAllocationLines`
- [42](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L42) calls `GetAllocationAccount`
- [43](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L43) calls [Codeunit 2675 Allocation Account Mgt.](https://jonas-paprotka.de/ref/codeunit/2675-allocation-account-mgt/) `GenerateAllocationLines`
- [44](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L44) calls `ReplaceInheritFromParent`

## LoadManualAllocationLines

[Line 48](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L48), internal.

- [68](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L68) raises `OnLoadManualAllocationLinesOnBeforeInsertAllocationLine`
- [69](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L69) writes [Table 2672 Allocation Line](https://jonas-paprotka.de/ref/table/2672-allocation-line/) Insert

## ReplaceInheritFromParent

[Line 98](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L98), local.

- [114](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L114) writes [Table 2672 Allocation Line](https://jonas-paprotka.de/ref/table/2672-allocation-line/) ModifyAll
- [118](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L118) writes [Table 2672 Allocation Line](https://jonas-paprotka.de/ref/table/2672-allocation-line/) ModifyAll
- [120](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L120) writes [Table 2672 Allocation Line](https://jonas-paprotka.de/ref/table/2672-allocation-line/) ModifyAll

## HandleBatchPost

[Line 137](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L137), local.

- [142](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L142) calls `VerifyLinesFromBatch`
- [146](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L146) calls [Codeunit 2676 Alloc. Acc. Telemetry](https://jonas-paprotka.de/ref/codeunit/2676-alloc-acc-telemetry/) `LogGeneralJournalPostingUsage`
- [147](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L147) calls `CreateLinesFromBatch`

## CheckBeforeModifyLine

[Line 173](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L173), local.

- [175](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L175) calls `DeleteManualDistributionsIfLineChanged`

## DeleteManualDistributionsIfLineChanged

[Line 178](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L178), local.

- [187](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L187) calls `AllocationAccountUsed`
- [213](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L213) writes [Table 2673 Alloc. Acc. Manual Override](https://jonas-paprotka.de/ref/table/2673-alloc-acc-manual-override/) DeleteAll

## CreateLinesFromBatch

[Line 216](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L216), local.

- [227](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L227) calls `CreateLines`
- [228](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L228) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) DeleteAll
- [232](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L232) calls `CreateLines`
- [233](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L233) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) DeleteAll
- [237](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L237) calls `CreateLines`
- [238](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L238) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) DeleteAll

## CreateLines

[Line 245](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L245).

- [257](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L257) calls `CreateLinesFromAllocationAccountLine`

## CreateLinesFromAllocationAccountLine

[Line 266](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L266), local.

- [277](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L277) calls `VerifyAccountsMustMatchIfBothAccountTypeAndBalancingAccountTypeAreAllocationAccounts`
- [279](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L279) calls `GetAllocationAccount`
- [282](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L282) calls `GetOrGenerateAllocationLines`
- [290](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L290) calls `GetNextGenJournalLine`
- [293](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L293) calls `GetLineIncrement`
- [296](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L296) calls `GetLastGenJournalLine`
- [308](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L308) calls `GetDescriptionChanged`
- [310](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L310) calls `CreateGLLine`
- [317](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L317) writes [Table 2673 Alloc. Acc. Manual Override](https://jonas-paprotka.de/ref/table/2673-alloc-acc-manual-override/) DeleteAll

## VerifyLinesFromBatch

[Line 320](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L320), local.

- [330](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L330) calls `VerifyGenJournalLines`
- [337](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L337) calls `VerifyGenJournalLines`
- [344](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L344) calls `VerifyGenJournalLines`

## CreateGLLine

[Line 348](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L348), local.

- [360](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L360) calls `UpdateAccountNumbersAndTypesOnGenJournalLine`
- [362](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L362) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount`
- [363](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L363) calls `TransferDimensionSetID`
- [370](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L370) validates [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) `Amount (LCY)`
- [372](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L372) raises `OnBeforeCreateGeneralJournalLine`
- [373](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L373) writes [Table 81 Gen. Journal Line](https://jonas-paprotka.de/ref/table/81-gen-journal-line/) Insert(true)

## UpdateAccountNumbersAndTypesOnGenJournalLine

[Line 377](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L377), local.

- [381](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L381) calls `TranslateAccountTypeToGenJournalLineAccountType`

## TranslateAccountTypeToGenJournalLineAccountType

[Line 402](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L402), local.

- [406](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L406) raises `OnBeforeGetGeneralJournalLineType`

## TransferDimensionSetID

[Line 515](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L515), local.

- [528](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L528) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `UpdateGlobalDimFromDimSetID`
- [537](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L537) calls [Codeunit 408 DimensionManagement](https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/) `GetCombinedDimensionSetID`

## VerifyGeneralJournalLineOnAfterModify

[Line 542](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L542), local.

- [544](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L544) calls `VerifyGeneralJournalLine`

## VerifyGenJournalLines

[Line 578](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L578), local.

- [585](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L585) calls `VerifyGeneralJournalLine`

## VerifyGeneralJournalLine

[Line 589](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L589), local.

- [593](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L593) calls `AllocationAccountUsed`
- [596](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L596) raises `OnBeforeVerifyGeneralJournalLine`
- [601](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L601) calls [Codeunit 2675 Allocation Account Mgt.](https://jonas-paprotka.de/ref/codeunit/2675-allocation-account-mgt/) `VerifyNoInheritFromParentUsed`
- [604](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L604) calls [Codeunit 2675 Allocation Account Mgt.](https://jonas-paprotka.de/ref/codeunit/2675-allocation-account-mgt/) `VerifyNoInheritFromParentUsed`
- [607](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L607) calls `VerifySelectedAllocationAccountNo`

## VerifySelectedAllocationAccountNo

[Line 614](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L614).

- [622](https://jonas-paprotka.de/ref/codeunit/2677-gen-journal-alloc-acc-mgt/source/#L622) calls `VerifyParentAccountIsDefined`

## Source

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

JOP-AL, 2026-11-20.
