---
id: object/table/2631
type: object
title: Table 2631 "Statistical Acc. Journal Line"
summary: Table 2631 "Statistical Acc. Journal Line" in StatisticalAccounts (Microsoft.Finance.Analysis.StatisticalAccount). 13 fields, 9 public procedures, 1 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - statisticalaccounts
versions:
  introduced: "29"
  last_changed: null
  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: 01b6f0675f8309cd65e86050b0523a1e2c79c0e806972b338eb2411dc4285ad2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalLine.Table.al
    title: src/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalLine.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/bi-use-statistical-accounts
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/finance/financial-analytics/financial-reporting
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 2631
name: Statistical Acc. Journal Line
caption: Statistical Account Journal
namespace: Microsoft.Finance.Analysis.StatisticalAccount
app: StatisticalAccounts
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 13
  procedures: 13
  events: 1
  subscribers: 0
relations:
  out: 6
  referenced_by: 2
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 0
---

# Table 2631 "Statistical Acc. Journal Line"

> Table 2631 "Statistical Acc. Journal Line" in StatisticalAccounts (Microsoft.Finance.Analysis.StatisticalAccount). 13 fields, 9 public procedures, 1 events. Introduced in BC29, still in BC30.

StatisticalAccounts · Microsoft.Finance.Analysis.StatisticalAccount · captioned "Statistical Account Journal" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/StatisticalAccounts/app/src/StatisticalAccJournalLine.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 2633 "Statistical Accounts Journal"](../page/2633.md) (1 Learn page).

## Properties

| Property | Value |
|---|---|
| Caption | Statistical Account Journal |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Journal Template Name | Code[10] | — | not editable |
| 2 | Journal Batch Name | Code[10] | Journal batch name <small>caption</small> | not editable |
| 3 | Line No. | Integer | — |  |
| 7 | Document No. | Code[20] | Specifies the number of the related document. <small>via [Page 2633 "Statistical Accounts Journal"](../page/2633.md)</small> |  |
| 10 | Statistical Account No. | Code[20] | Specifies the account number that the entry on the journal line will be posted to. <small>via [Page 2633 "Statistical Accounts Journal"](../page/2633.md)</small> | TableRelation [Table 2632 "Statistical Account"](../table/2632.md) (Statistical Account) |
| 11 | Posting Date | Date | Specifies the date of the transaction in the statistical ledger, and thereby the fiscal year and period. <small>via [Page 2633 "Statistical Accounts Journal"](../page/2633.md)</small> |  |
| 12 | Description | Text[100] | Specifies a description of the entry. <small>via [Page 2633 "Statistical Accounts Journal"](../page/2633.md)</small> |  |
| 13 | Amount | Decimal | Specifies the amount of the entry. <small>via [Page 2633 "Statistical Accounts Journal"](../page/2633.md)</small> |  |
| 14 | Amount Change | Decimal | Allocated Amt. (LCY) <small>caption</small> | FlowField: sum("Statistical Acc. Journal Line".Amount where("Journal Template Name" = field("Journal Template Name"), "Journal Batch Name" = field("Journal Batch Name"), "Statistical Account No." = field("Statistical Account No."))); not editable |
| 24 | Shortcut Dimension 1 Code | Code[20] | Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup page. <small>via [Page 2633 "Statistical Accounts Journal"](../page/2633.md)</small> | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1), Blocked = const(false))) |
| 25 | Shortcut Dimension 2 Code | Code[20] | Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup page. <small>via [Page 2633 "Statistical Accounts Journal"](../page/2633.md)</small> | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2), Blocked = const(false))) |
| 50 | Statistical Account Name | Text[100] | Specifies the name of the account. <small>via [Page 2633 "Statistical Accounts Journal"](../page/2633.md)</small> | FlowField: lookup("Statistical Account".Name where("No." = field("Statistical Account No."))) |
| 480 | Dimension Set ID | Integer | — | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |

## Keys

- Key1: Journal Template Name, Journal Batch Name, Line No. (clustered)
- Key2: Journal Template Name, Journal Batch Name, Statistical Account No.

## Events published

- `OnAfterCreateDimensions(var StatisticalAccJournalLine: Record "Statistical Acc. Journal Line"; xStatisticalAccJournalLine: Record "Statistical Acc. Journal Line"; CurrentFieldNo: Integer; OldDimSetID: Integer; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])` (integration)

## Procedures

- `LookupBatchName(var JournalBatchName: Code[10]; var StatisticalAccJournalLine: Record "Statistical Acc. Journal Line")` (internal)
- `SetName(JournalBatchName: Code[10]; var StatisticalAccJournalLine: Record "Statistical Acc. Journal Line")` (internal)
- `CheckName(JournalBatchName: Code[10]): Boolean` (internal)
- `ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])` (internal)
- `ShowDimensions()` (internal)
- `SelectJournal(var JournalBatchName: Code[10])` (internal)
- `SetUpNewLine(PreviousStatisticalAccJournalLine: Record "Statistical Acc. Journal Line"; JournalBatchName: Code[10])` (internal)
- `GetBalance(StatisticalAccountJournalLine: Record "Statistical Acc. Journal Line"; var BalanceAfterPosting: Decimal; var Balance: Decimal)` (internal)
- `ShowShortcutDimCode(var ShortcutDimCode: array[8] of Code[20])` (internal)

Plus 3 local procedures.

## Relations

- Amount Change: CalcFormula [Table 2631 "Statistical Acc. Journal Line"](../table/2631.md)
- Statistical Account Name: CalcFormula [Table 2632 "Statistical Account"](../table/2632.md)
- Statistical Account No.: TableRelation [Table 2632 "Statistical Account"](../table/2632.md)
- Shortcut Dimension 1 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Shortcut Dimension 2 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Dimension Set ID: TableRelation [Table 480 "Dimension Set Entry"](../table/480.md)

## Referenced by

2 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 2630 "Statistical Acc. Journal Batch"](../table/2630.md): No. of Lines
- [Table 2631 "Statistical Acc. Journal Line"](../table/2631.md): Amount Change

## Pages and codeunits on this table

- [Page 2633 "Statistical Accounts Journal"](../page/2633.md) (source table)
- [Codeunit 2623 "Stat. Acc. Jnl Check Line"](../codeunit/2623.md) (codeunit runs on it)
- [Codeunit 2624 "Stat. Acc. Jnl. Line Post"](../codeunit/2624.md) (codeunit runs on it)
- [Codeunit 2626 "Stat. Acc. Post. Batch"](../codeunit/2626.md) (codeunit runs on it)

## Calls

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 408 "DimensionManagement"](../codeunit/408.md) (5 calls: `CreateDimensions → GetRecDefaultDimID`, `InitDefaultDimensionSources → AddDimSource`, `ShowDimensions → EditDimensionSet`, …)
- [Page 2630 "Statistical Acc. Journal Batch"](../page/2630.md) (1 call: `LookupBatchName → (object)`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

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: "table", object_name: "Statistical Acc. Journal Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
