---
id: object/table/4851
type: object
title: Table 4851 "Automatic Account Line"
summary: Table 4851 "Automatic Account Line" in AutomaticAccountCodes (Microsoft.Finance.AutomaticAccounts). 8 fields, 4 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - automaticaccountcodes
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: b4f44636df933cd8b51c70b4bef9491de07bee9d1b657019ed8aba9c1535e4f5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/AutomaticAccountCodes/app/src/Tables/AutomaticAccountLine.Table.al
    title: src/Apps/W1/AutomaticAccountCodes/app/src/Tables/AutomaticAccountLine.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 4851
name: Automatic Account Line
namespace: Microsoft.Finance.AutomaticAccounts
app: AutomaticAccountCodes
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: 8
  procedures: 4
  events: 0
  subscribers: 0
relations:
  out: 8
  referenced_by: 1
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Table 4851 "Automatic Account Line"

> Table 4851 "Automatic Account Line" in AutomaticAccountCodes (Microsoft.Finance.AutomaticAccounts). 8 fields, 4 public procedures. Introduced in BC29, still in BC30.

AutomaticAccountCodes · Microsoft.Finance.AutomaticAccounts · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/AutomaticAccountCodes/app/src/Tables/AutomaticAccountLine.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Automatic Account Line |

## 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 | Automatic Acc. No. | Code[10] | — | TableRelation [Table 4850 "Automatic Account Header"](../table/4850.md) (Automatic Account Header) |
| 2 | Line No. | Integer | — |  |
| 3 | G/L Account No. | Code[20] | Specifies the general ledger account that the allocation must be posted to. <small>via [Page 4851 "Automatic Account Line"](../page/4851.md)</small> | TableRelation [Table 15 "G/L Account"](../table/15.md) ("G/L Account" Where("Account Type" = const(Posting), "Direct Posting" = const(true), Blocked = const(false))) |
| 4 | Allocation % | Decimal | Specifies the percentage of the source line amount that is to be allocated. <small>via [Page 4851 "Automatic Account Line"](../page/4851.md)</small> |  |
| 5 | Shortcut Dimension 1 Code | Code[20] | Specifies the dimension value code for the G/L transaction. <small>via [Page 4851 "Automatic Account Line"](../page/4851.md)</small> | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code WHERE("Global Dimension No." = CONST(1))) |
| 6 | Shortcut Dimension 2 Code | Code[20] | Specifies the dimension value code for the G/L transaction. <small>via [Page 4851 "Automatic Account Line"](../page/4851.md)</small> | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code WHERE("Global Dimension No." = CONST(2))) |
| 7 | Description | Text[100] | Specifies text that describes the G/L account. <small>via [Page 4851 "Automatic Account Line"](../page/4851.md)</small> | FlowField: Lookup("G/L Account".Name WHERE("No." = FIELD("G/L Account No."))); not editable |
| 480 | Dimension Set ID | Integer | — | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |

## Keys

- Key1: Automatic Acc. No., Line No. (clustered)

## Procedures

- `ShowDimensions()`
- `ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])`
- `LookupShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])`
- `ShowShortcutDimCode(var ShortcutDimCode: array[8] of Code[20])`

## Relations

- drill-down page [Page 4851 "Automatic Account Line"](../page/4851.md)
- lookup page [Page 4851 "Automatic Account Line"](../page/4851.md)
- Description: CalcFormula [Table 15 "G/L Account"](../table/15.md)
- G/L Account No.: TableRelation [Table 15 "G/L Account"](../table/15.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)
- Automatic Acc. No.: TableRelation [Table 4850 "Automatic Account Header"](../table/4850.md)

## Referenced by

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

- [Table 4850 "Automatic Account Header"](../table/4850.md): Balance

## Pages and codeunits on this table

- [Page 4851 "Automatic Account Line"](../page/4851.md) (source table)

## 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) (6 calls: `LookupShortcutDimCode → LookupDimValueCode`, `LookupShortcutDimCode → ValidateShortcutDimValues`, `ShowDimensions → EditDimensionSet`, …)

## 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: "Automatic Account Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
