---
title: "Table 221 Gen. Jnl. Allocation"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/221-gen-jnl-allocation/
type: table
id: 221
name: "Gen. Jnl. Allocation"
app: "Base Application"
namespace: Microsoft.Finance.GeneralLedger.Journal
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/221-gen-jnl-allocation/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 221 Gen. Jnl. Allocation

Jonas Paprotka, https://jonas-paprotka.de/ref/table/221-gen-jnl-allocation/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Finance.GeneralLedger.Journal |
| Versions | 17-28 |
| Source file | Finance/GeneralLedger/Journal/GenJnlAllocation.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Journal Template Name | Code[10] | 17-28 | - | - |
| 2 | Journal Batch Name | Code[10] | 17-28 | - | - |
| 3 | Journal Line No. | Integer | 17-28 | - | - |
| 4 | Line No. | Integer | 17-28 | - | - |
| 5 | Account No. | Code[20] | 17-28 | - | - |
| 6 | Shortcut Dimension 1 Code | Code[20] | 17-28 | - | - |
| 7 | Shortcut Dimension 2 Code | Code[20] | 17-28 | - | - |
| 8 | Allocation Quantity | Decimal | 17-28 | - | - |
| 9 | Allocation % | Decimal | 17-28 | - | - |
| 10 | Amount | Decimal | 17-28 | - | - |
| 11 | Gen. Posting Type | Enum General Posting Type | 17-28 | - | - |
| 12 | Gen. Bus. Posting Group | Code[20] | 17-28 | - | - |
| 13 | Gen. Prod. Posting Group | Code[20] | 17-28 | - | - |
| 14 | VAT Calculation Type | Enum Tax Calculation Type | 17-28 | - | - |
| 15 | VAT Amount | Decimal | 17-28 | - | - |
| 16 | VAT % | Decimal | 17-28 | - | - |
| 17 | Account Name | Text[100] | 17-28 | - | - |
| 18 | Tax Area Code | Code[20] | 17-28 | - | - |
| 19 | Tax Liable | Boolean | 17-28 | - | - |
| 20 | Tax Group Code | Code[20] | 17-28 | - | - |
| 21 | Use Tax | Boolean | 17-28 | - | - |
| 22 | VAT Bus. Posting Group | Code[20] | 17-28 | - | - |
| 23 | VAT Prod. Posting Group | Code[20] | 17-28 | - | - |
| 24 | Additional-Currency Amount | Decimal | 17-28 | - | - |
| 480 | Dimension Set ID | Integer | 17-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Journal Template Name, Journal Batch Name, Journal Line No., Line No. | 17-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| UpdateAllocations | (var Record Gen. Journal Line) | - | public | 17-28 | - | - |
| UpdateAllocationsAddCurr | (var Record Gen. Journal Line, Decimal) | - | public | 17-28 | - | - |
| CheckVAT | (var Record Gen. Journal Line) | - | public | 17-28 | - | - |
| UpdateVAT | (var Record Gen. Journal Line) | - | public | 17-28 | - | - |
| GetCurrencyCode | () | Code[10] | public | 17-28 | - | - |
| CreateDim | (Integer, Code[20]) | - | public | 17-22 | Pending 20.0 | Replaced by CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]) |
| ValidateShortcutDimCode | (Integer, var Code[20]) | - | public | 17-28 | - | - |
| LookupShortcutDimCode | (Integer, var Code[20]) | - | public | 17-28 | - | - |
| ShowShortcutDimCode | (var Code[20]) | - | public | 17-28 | - | - |
| ShowDimensions | () | - | public | 17-28 | - | - |
| CreateDim | (List) | - | public | 20-28 | - | - |
| CreateDimFromDefaultDim | () | - | public | 20-28 | - | - |
| CopyVATSetupToJnlLines | () | Boolean | protected | 24-28 | - | - |
| ChooseAndImportFromAllocationAccount | () | - | internal | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCreateDimTableIDs | (var Record Gen. Jnl. Allocation, var Integer, var Integer, var Code[20]) | 17 | - | - |
| Integration event | OnAfterValidateShortcutDimCode | (var Record Gen. Jnl. Allocation, var Record Gen. Jnl. Allocation, Integer, var Code[20]) | 17-28 | - | - |
| Integration event | OnBeforeValidateShortcutDimCode | (var Record Gen. Jnl. Allocation, var Record Gen. Jnl. Allocation, Integer, var Code[20]) | 17-28 | - | - |
| Integration event | OnAfterCreateDimTableIDs | (var Record Gen. Jnl. Allocation, var Integer, var Integer, var Code[20], var Boolean) | 18-22 | Pending 20.0 | Replaced by new implementation in codeunit Purch. Post Invoice |
| Integration event | OnAfterCreateDim | (var Record Gen. Jnl. Allocation, Integer, Integer, Code[20]) | 18-22 | Pending 20.0 | Replaced by new implementation in codeunit Purch. Post Invoice |
| Integration event | OnAfterShowDimensions | (var Record Gen. Jnl. Allocation) | 18-20 | - | - |
| Integration event | OnUpdateAllocationsOnAfterGenJnlAllocModify | (var Record Gen. Jnl. Allocation) | 18-28 | - | - |
| Integration event | OnUpdateAllocationsAddCurrOnAfterGenJnlAllocModify | (var Record Gen. Jnl. Allocation) | 18-28 | - | - |
| Integration event | OnUpdateAllocationsOnBeforeGenJnlAllocModify | (Record Gen. Journal Line, var Record Gen. Jnl. Allocation) | 19-28 | - | - |
| Integration event | OnAfterInitDefaultDimensionSources | (var Record Gen. Jnl. Allocation, var List) | 20-28 | - | - |
| Integration event | OnBeforeCreateDim | (var Record Gen. Jnl. Allocation, var Boolean) | 20-28 | - | - |
| Integration event | OnAfterCreateDimProcedure | (var Record Gen. Jnl. Allocation, Integer, List) | 20-22 | - | - |
| Integration event | OnAfterShowDimensions | (var Record Gen. Jnl. Allocation, Record Gen. Jnl. Allocation) | 21-28 | - | - |
| Integration event | OnBeforeCheckGLAccount | (Record G/L Account, var Boolean, var Record Gen. Jnl. Allocation) | 22-28 | - | - |
| Integration event | OnAfterCheckGLAccount | (var Record G/L Account, Record Gen. Jnl. Allocation) | 22-28 | - | - |
| Integration event | OnAfterCreateDimProcedure | (var Record Gen. Jnl. Allocation, Integer, List, Record Gen. Jnl. Allocation, Integer) | 23-28 | - | - |
| Integration event | OnBeforeUpdateVAT | (var Record Gen. Journal Line, var Boolean, var Record Gen. Jnl. Allocation) | 23-28 | - | - |
| Integration event | OnAfterUpdateVAT | (var Record Gen. Journal Line, Record Gen. Journal Line, var Record Gen. Jnl. Allocation) | 23-28 | - | - |
| Integration event | OnBeforeValidateAccountNo | (var Record Gen. Jnl. Allocation, Record Gen. Jnl. Allocation, var Boolean) | 24-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
