---
id: object/table/17
type: object
title: Table 17 "G/L Entry"
summary: Table 17 "G/L Entry" in Base Application (Microsoft.Finance.GeneralLedger.Ledger). 74 fields, 15 public procedures, 9 events. Present since at least BC23, still in BC30, changed in BC24-29.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: 82f273b3e70703852c34d4774da13aeac1e013eb7e1e5f07bb50eff56d97259c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/GeneralLedger/Ledger/GLEntry.Table.al
    title: src/Layers/W1/BaseApp/Finance/GeneralLedger/Ledger/GLEntry.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-fa
    - https://learn.microsoft.com/dynamics365/business-central/ad-hoc-analysis-finance
    - https://learn.microsoft.com/dynamics365/business-central/finance-chart-of-accounts
    - https://learn.microsoft.com/dynamics365/business-central/finance-general-ledger
    - https://learn.microsoft.com/dynamics365/business-central/finance-how-to-analyze-gl-entries
    - https://learn.microsoft.com/dynamics365/business-central/finance-review-accounts
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_generalledgerentry_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_generalLedgerEntry
    - https://learn.microsoft.com/dynamics365/business-central/finance-dimensions
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/finance/financial-analytics
    - topic/business-central/business-functionality/finance/financial-analytics/built-in-finance-analysis-tools
    - topic/business-central/business-functionality/finance/work-with-the-chart-of-accounts-and-gene
    - topic/business-central/business-functionality/finance/working-with-dimensions
    - topic/business-central/business-functionality/fixed-assets/fixed-assets-analytics
  localizations:
    - localization/au
    - localization/be
    - localization/ca
    - localization/ch
    - localization/es
    - localization/fi
    - localization/fr
    - localization/it
    - localization/mx
    - localization/nl
    - localization/nz
    - localization/ru
    - localization/us
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 17
name: G/L Entry
namespace: Microsoft.Finance.GeneralLedger.Ledger
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries:
  - au
  - be
  - ca
  - ch
  - es
  - fi
  - fr
  - it
  - mx
  - nl
  - nz
  - ru
  - us
ms_search_form_ids: []
counts:
  fields: 74
  procedures: 26
  events: 9
  subscribers: 0
relations:
  out: 43
  referenced_by: 51
  pages: 11
  extended_by: 2
  event_subscribers: 3
  calls: 3
  called_by: 0
  implements: 0
---

# Table 17 "G/L Entry"

> Table 17 "G/L Entry" in Base Application (Microsoft.Finance.GeneralLedger.Ledger). 74 fields, 15 public procedures, 9 events. Present since at least BC23, still in BC30, changed in BC24-29.

Base Application · Microsoft.Finance.GeneralLedger.Ledger · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Finance/GeneralLedger/Ledger/GLEntry.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 20 "General Ledger Entries"](../page/20.md) (6 Learn pages), [Page 30018 "APIV2 - G/L Entries"](../page/30018.md) (2), [Page 2583 "Dim. Correct Ledger Entries"](../page/2583.md) (1), [Page 2584 "Dim Correct Posted Ledg Entr"](../page/2584.md) (1), [Page 22207 "Review G/L Entries"](../page/22207.md) (1).

## Properties

| Property | Value |
|---|---|
| Caption | G/L Entry |
| 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 | Entry No. | Integer | Specifies the number of the entry, which is assigned automatically when the entry is posted. |  |
| 3 | G/L Account No. | Code[20] | Specifies the number of the account that the entry has been posted to. | TableRelation [Table 15 "G/L Account"](../table/15.md) (G/L Account) |
| 4 | Posting Date | Date | Specifies the entry's posting date. |  |
| 5 | Document Type | Enum "Gen. Journal Document Type" | Specifies the Document Type that the entry belongs to. | enum [Enum 6 "Gen. Journal Document Type"](../enum/6.md) |
| 6 | Document No. | Code[20] | Specifies the entry's Document No. |  |
| 7 | Description | Text[100] | Specifies a description of the entry. |  |
| 10 | Bal. Account No. | Code[20] | Specifies the number of the general ledger, customer, vendor, or bank account that the balancing entry is posted to, such as a cash account for cash purchases. | TableRelation [Table 15 "G/L Account"](../table/15.md), [Table 18 "Customer"](../table/18.md), [Table 23 "Vendor"](../table/23.md) (if ("Bal. Account Type" = const("G/L Account")) "G/L Account" else if ("Bal. Account Type" = const(Customer)) Customer else if ("Bal. Account Type" = const(Vendor)) Vendor else if ("Bal. Account Type" = const("Bank Account")) "Bank Account" else if ("Bal. Account Type" = const("Fixed Asset")) "Fixed...) |
| 17 | Amount | Decimal | Specifies the Amount of the entry. |  |
| 18 | Source Currency Amount | Decimal | Specifies the source currency amount for G/L entries. |  |
| 19 | Source Currency VAT Amount | Decimal | Specifies the source currency VAT amount for G/L entries. |  |
| 20 | Source Currency Code | Code[10] | Specifies the source currency code for general ledger entries. | TableRelation [Table 4 "Currency"](../table/4.md); DataClassification SystemMetadata |
| 23 | Global Dimension 1 Code | Code[20] | Specifies the code for the global dimension that is linked to the record or entry for analysis purposes. Two global dimensions, typically for the company's most important activities, are available on all cards, documents, reports, and lists. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1))) |
| 24 | Global Dimension 2 Code | Code[20] | Specifies the code for the global dimension that is linked to the record or entry for analysis purposes. Two global dimensions, typically for the company's most important activities, are available on all cards, documents, reports, and lists. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2))) |
| 27 | User ID | Code[50] | Specifies the ID of the user who posted the entry, to be used, for example, in the change log. | TableRelation User."User Name"; DataClassification EndUserIdentifiableInformation |
| 28 | Source Code | Code[10] | Specifies the source code that specifies where the entry was created. | TableRelation [Table 230 "Source Code"](../table/230.md) (Source Code) |
| 29 | System-Created Entry | Boolean | — |  |
| 30 | Prior-Year Entry | Boolean | — |  |
| 41 | Job No. | Code[20] | Specifies the number of the related project. | TableRelation [Table 167 "Job"](../table/167.md) |
| 42 | Quantity | Decimal | Specifies the quantity that was posted on the entry. |  |
| 43 | VAT Amount | Decimal | Specifies the amount of VAT that is included in the total amount. |  |
| 45 | Business Unit Code | Code[20] | Specifies the Business Unit code of the company from which the entry was consolidated. | TableRelation [Table 220 "Business Unit"](../table/220.md) (Business Unit) |
| 46 | Journal Batch Name | Code[10] | — |  |
| 47 | Reason Code | Code[10] | Specifies the reason code, a supplementary source code that enables you to trace the entry. | TableRelation [Table 231 "Reason Code"](../table/231.md) (Reason Code) |
| 48 | Gen. Posting Type | Enum "General Posting Type" | Specifies the type of transaction. | enum [Enum 57 "General Posting Type"](../enum/57.md) |
| 49 | Gen. Bus. Posting Group | Code[20] | Specifies the vendor's or customer's trade type to link transactions made for this business partner with the appropriate general ledger account according to the general posting setup. | TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md) (Gen. Business Posting Group) |
| 50 | Gen. Prod. Posting Group | Code[20] | Specifies the item's product type to link transactions made for this item with the appropriate general ledger account according to the general posting setup. | TableRelation [Table 251 "Gen. Product Posting Group"](../table/251.md) (Gen. Product Posting Group) |
| 51 | Bal. Account Type | Enum "Gen. Journal Account Type" | Specifies the type of account that a balancing entry is posted to, such as BANK for a cash account. | enum [Enum 81 "Gen. Journal Account Type"](../enum/81.md) |
| 52 | Transaction No. | Integer | Specifies the transaction number that groups related G/L entries from the same posting. | TableRelation [Table 57 "G/L Transaction"](../table/57.md) (G/L Transaction) |
| 53 | Debit Amount | Decimal | Specifies the total of the ledger entries that represent debits. |  |
| 54 | Credit Amount | Decimal | Specifies the total of the ledger entries that represent credits. |  |
| 55 | Document Date | Date | — |  |
| 56 | External Document No. | Code[35] | Specifies the entry's external document number, such as a vendor's invoice number. |  |
| 57 | Source Type | Enum "Gen. Journal Source Type" | Specifies the source type that applies to the source number that is shown in the Source No. field. | enum [Enum 82 "Gen. Journal Source Type"](../enum/82.md) |
| 58 | Source No. | Code[20] | Specifies the number of the source document that the entry originates from. | TableRelation [Table 18 "Customer"](../table/18.md), [Table 23 "Vendor"](../table/23.md), [Table 270 "Bank Account"](../table/270.md) (if ("Source Type" = const(Customer)) Customer else if ("Source Type" = const(Vendor)) Vendor else if ("Source Type" = const("Bank Account")) "Bank Account" else if ("Source Type" = const("Fixed Asset")) "Fixed Asset" else if ("Source Type" = const(Employee)) Employee) |
| 59 | No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 60 | Tax Area Code | Code[20] | — | TableRelation [Table 318 "Tax Area"](../table/318.md) (Tax Area) |
| 61 | Tax Liable | Boolean | — |  |
| 62 | Tax Group Code | Code[20] | — | TableRelation [Table 321 "Tax Group"](../table/321.md) (Tax Group) |
| 63 | Use Tax | Boolean | — |  |
| 64 | VAT Bus. Posting Group | Code[20] | Specifies the VAT specification of the involved customer or vendor to link transactions made for this record with the appropriate general ledger account according to the VAT posting setup. | TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md) (VAT Business Posting Group) |
| 65 | VAT Prod. Posting Group | Code[20] | Specifies the VAT specification of the involved item or resource to link transactions made for this record with the appropriate general ledger account according to the VAT posting setup. | TableRelation [Table 324 "VAT Product Posting Group"](../table/324.md) (VAT Product Posting Group) |
| 68 | Additional-Currency Amount | Decimal | Specifies the general ledger entry that is posted if you post in an additional reporting currency. |  |
| 69 | Add.-Currency Debit Amount | Decimal | — |  |
| 70 | Add.-Currency Credit Amount | Decimal | — |  |
| 71 | Close Income Statement Dim. ID | Integer | — |  |
| 72 | IC Partner Code | Code[20] | Specifies the code of the intercompany partner that the transaction is related to if the entry was created from an intercompany transaction. | TableRelation [Table 413 "IC Partner"](../table/413.md) (IC Partner) |
| 73 | Reversed | Boolean | Specifies if the entry has been part of a reverse transaction (correction) made by the Reverse function. |  |
| 74 | Reversed by Entry No. | Integer | Specifies the number of the correcting entry. If the field Specifies a number, the entry cannot be reversed again. | TableRelation [Table 17 "G/L Entry"](../table/17.md) (G/L Entry) |
| 75 | Reversed Entry No. | Integer | Specifies the number of the original entry that was undone by the reverse transaction. | TableRelation [Table 17 "G/L Entry"](../table/17.md) (G/L Entry) |
| 76 | G/L Account Name | Text[100] | Specifies the name of the account that the entry has been posted to. | FlowField: lookup("G/L Account".Name where("No." = field("G/L Account No."))); not editable |
| 78 | Journal Templ. Name | Code[10] | Journal Template Name <small>caption</small> |  |
| 79 | VAT Reporting Date | Date | Specifies the entry's VAT date. | not editable |
| 95 | G/L Register No. | Integer | Specifies the G/L register number that groups related G/L entries from the same posting. | TableRelation [Table 45 "G/L Register"](../table/45.md) (G/L Register); not editable |
| 480 | Dimension Set ID | Integer | Specifies a reference to a combination of dimension values. The actual values are stored in the Dimension Set Entry table. | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |
| 481 | Shortcut Dimension 3 Code | Code[20] | Specifies the code for Shortcut Dimension 3, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(3))); not editable |
| 482 | Shortcut Dimension 4 Code | Code[20] | Specifies the code for Shortcut Dimension 4, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(4))); not editable |
| 483 | Shortcut Dimension 5 Code | Code[20] | Specifies the code for Shortcut Dimension 5, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(5))); not editable |
| 484 | Shortcut Dimension 6 Code | Code[20] | Specifies the code for Shortcut Dimension 6, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(6))); not editable |
| 485 | Shortcut Dimension 7 Code | Code[20] | Specifies the code for Shortcut Dimension 7, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(7))); not editable |
| 486 | Shortcut Dimension 8 Code | Code[20] | Specifies the code for Shortcut Dimension 8, which is one of dimension codes that you set up in the General Ledger Setup window. | FlowField: lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(8))); not editable |
| 495 | Last Dim. Correction Entry No. | Integer | — | not editable |
| 496 | Last Dim. Correction Node | Integer | — | not editable |
| 497 | Dimension Changes Count | Integer | Count of Dimension Changes <small>caption</small> | not editable |
| 2678 | Allocation Account No. | Code[20] | — |  |
| 2679 | Alloc. Journal Line SystemId | Guid | Allocation Journal Line SystemId <small>caption</small> | DataClassification SystemMetadata |
| 5400 | Prod. Order No. | Code[20] | — |  |
| 5600 | FA Entry Type | Option | Specifies the number of the fixed asset entry. | OptionCaption: ,Fixed Asset,Maintenance |
| 5601 | FA Entry No. | Integer | Specifies the number of the fixed asset entry. | TableRelation [Table 5601 "FA Ledger Entry"](../table/5601.md), [Table 5625 "Maintenance Ledger Entry"](../table/5625.md) (if ("FA Entry Type" = const("Fixed Asset")) "FA Ledger Entry" else if ("FA Entry Type" = const(Maintenance)) "Maintenance Ledger Entry") |
| 5618 | Comment | Text[250] | — |  |
| 6200 | Non-Deductible VAT Amount | Decimal | Specifies the amount of the transaction for which VAT is not applied, due to the type of goods or services purchased. |  |
| 6201 | Non-Deductible VAT Amount ACY | Decimal | — |  |
| 6202 | Src. Curr. Non-Ded. VAT Amount | Decimal | Specifies the amount in source currency of the transaction for which VAT is not applied, due to the type of goods or services purchased. |  |
| 8001 | Account Id | Guid | — | TableRelation [Table 15 "G/L Account"](../table/15.md) ("G/L Account".SystemId); FlowField: lookup("G/L Account".SystemId where("No." = field("G/L Account No."))) |
| 8005 | Last Modified DateTime | DateTime | — | not editable |

## Keys

- Key1: Entry No. (clustered)
- Key2: G/L Account No., Posting Date
- Key3: G/L Account No., Global Dimension 1 Code, Global Dimension 2 Code, Posting Date, VAT Reporting Date, Source Currency Code
- Key4: G/L Account No., Business Unit Code, Posting Date
- Key5: G/L Account No., Business Unit Code, Global Dimension 1 Code, Global Dimension 2 Code, Posting Date
- Key6: Document No., Posting Date
- Key7: Transaction No.
- Key8: IC Partner Code
- Key9: G/L Account No., Job No., Posting Date
- Key10: Posting Date, G/L Account No., Dimension Set ID
- Key11: Gen. Bus. Posting Group, Gen. Prod. Posting Group
- Key12: VAT Bus. Posting Group, VAT Prod. Posting Group
- Key13: Dimension Set ID

## Events published

- `OnAfterCopyGLEntryFromGenJnlLine(var GLEntry: Record "G/L Entry"; var GenJournalLine: Record "Gen. Journal Line")` (integration): Integration event raised after copying G/L entry from general journal line. Enables extensions to modify additional G/L entry fields during posting.
- `OnAfterCopyFromDeferralPostBuffer(var GLEntry: Record "G/L Entry"; DeferralPostingBuffer: Record "Deferral Posting Buffer")` (integration): Integration event raised after copying G/L entry values from deferral posting buffer. Enables extensions to modify G/L entry fields during deferral posting.
- `OnAfterCopyPostingGroupsFromDtldCVBuf(var GLEntry: Record "G/L Entry"; DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer")` (integration): Integration event raised after copying posting groups from detailed CV ledger entry buffer. Enables extensions to modify posting group assignments during CV entry processing.
- `OnAfterCopyPostingGroupsFromGLEntry(var GLEntry: Record "G/L Entry"; FromGLEntry: Record "G/L Entry")` (integration): Integration event raised after copying posting groups from another G/L entry. Enables extensions to modify posting group assignments during G/L entry processing.
- `OnAfterCopyPostingGroupsFromGenJnlLine(var GLEntry: Record "G/L Entry"; GenJournalLine: Record "Gen. Journal Line")` (integration): Integration event raised after copying posting groups from general journal line. Enables extensions to modify posting group assignments during journal posting.
- `OnAfterCopyPostingGroupsFromVATEntry(var GLEntry: Record "G/L Entry"; VATEntry: Record "VAT Entry")` (integration): Integration event raised after copying posting groups from VAT entry. Enables extensions to modify posting group assignments during VAT processing.
- `OnAfterUpdateDebitCredit(var GLEntry: Record "G/L Entry"; Correction: Boolean)` (integration): Integration event raised after updating debit and credit amounts. Enables extensions to modify debit/credit calculations during posting.
- `OnBeforeShowValueEntries(var ValueEntry: Record "Value Entry"; var GLItemLedgRelation: Record "G/L - Item Ledger Relation")` (integration): Integration event raised before showing related value entries. Enables extensions to modify value entry filtering and presentation.
- `OnSkipGLEntryByReviewStatus(var GLEntry: Record "G/L Entry"; ReviewStatus: Option All,Reviewed,"Not Reviewed"; EvaluationDate: Date; var Skip: Boolean)` (integration): Integration event raised by the local functionality report G/L Account Statement. Enables apps to filter out G/L Entries based on their review status
  - subscribers: [Codeunit 22200 "Review G/L Entry"](../codeunit/22200.md) OnSkipGLEntryByReviewStatus

## Trigger event subscribers

- OnAfterInsertEvent: [Codeunit 20 "Posting Preview Event Handler"](../codeunit/20.md) OnInsertGLEntry
- OnAfterModifyEvent: [Codeunit 20 "Posting Preview Event Handler"](../codeunit/20.md) OnModifyGLEntry

## Procedures

- `GetAdditionalReportingCurrencyCode(): Code[10]`
- `GetNextEntryNo(): Integer`
- `GetLastEntryNo(): Integer`: Gets the highest entry number from the G/L Entry table.
- `GetLastEntry(var LastEntryNo: Integer; var LastTransactionNo: Integer)`: Gets the last entry number and transaction number from the G/L Entry table.
- `GetCurrencyCode(): Code[10]` (obsolete 27.0: use GetAdditionalReportingCurrencyCode instead): Gets the additional reporting currency code from General Ledger Setup.
- `ShowValueEntries()`: Opens the Value Entries page showing item ledger entries related to this G/L entry.
- `ShowDimensions()`: Opens the Dimension Set Entries page showing dimensions for this G/L entry.
- `UpdateDebitCredit(Correction: Boolean)`: Updates debit and credit amounts based on the amount and correction flag.
- `CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line")`: Copies values from General Journal Line to G/L Entry fields.
- `CopyPostingGroupsFromGLEntry(GLEntry: Record "G/L Entry")`: Copies posting groups from another G/L Entry record.
- `CopyPostingGroupsFromVATEntry(VATEntry: Record "VAT Entry")`: Copies posting groups from VAT Entry record.
- `CopyPostingGroupsFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line")`: Copies posting groups from General Journal Line record.
- `CopyPostingGroupsFromDtldCVBuf(DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; GenPostingType: Option " ",Purchase,Sale,Settlement)`: Copies posting groups from Detailed CV Ledger Entry Buffer record.
- `CopyFromDeferralPostBuffer(DeferralPostBuffer: Record "Deferral Posting Buffer")`: Copies values from Deferral Posting Buffer to G/L Entry fields.
- `UpdateAccountID()`: Updates the Account ID field based on the G/L Account No.

Plus 2 local procedures.

## Triggers

OnInsert, OnModify, OnRename

## Relations

- drill-down page [Page 20 "General Ledger Entries"](../page/20.md)
- lookup page [Page 20 "General Ledger Entries"](../page/20.md)
- Account Id: CalcFormula [Table 15 "G/L Account"](../table/15.md)
- G/L Account Name: CalcFormula [Table 15 "G/L Account"](../table/15.md)
- Account Id: TableRelation [Table 15 "G/L Account"](../table/15.md)
- Bal. Account No.: TableRelation [Table 15 "G/L Account"](../table/15.md) (conditional)
- G/L Account No.: TableRelation [Table 15 "G/L Account"](../table/15.md)
- Job No.: TableRelation [Table 167 "Job"](../table/167.md)
- Reversed by Entry No.: TableRelation [Table 17 "G/L Entry"](../table/17.md)
- Reversed Entry No.: TableRelation [Table 17 "G/L Entry"](../table/17.md)
- Bal. Account No.: TableRelation [Table 18 "Customer"](../table/18.md) (conditional)
- Source No.: TableRelation [Table 18 "Customer"](../table/18.md) (conditional)
- Business Unit Code: TableRelation [Table 220 "Business Unit"](../table/220.md)
- Bal. Account No.: TableRelation [Table 23 "Vendor"](../table/23.md) (conditional)
- Source No.: TableRelation [Table 23 "Vendor"](../table/23.md) (conditional)
- Source Code: TableRelation [Table 230 "Source Code"](../table/230.md)
- Reason Code: TableRelation [Table 231 "Reason Code"](../table/231.md)
- Gen. Bus. Posting Group: TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md)
- Gen. Prod. Posting Group: TableRelation [Table 251 "Gen. Product Posting Group"](../table/251.md)
- Bal. Account No.: TableRelation [Table 270 "Bank Account"](../table/270.md) (conditional)
- Source No.: TableRelation [Table 270 "Bank Account"](../table/270.md) (conditional)
- No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Tax Area Code: TableRelation [Table 318 "Tax Area"](../table/318.md)
- Tax Group Code: TableRelation [Table 321 "Tax Group"](../table/321.md)
- VAT Bus. Posting Group: TableRelation [Table 323 "VAT Business Posting Group"](../table/323.md)
- VAT Prod. Posting Group: TableRelation [Table 324 "VAT Product Posting Group"](../table/324.md)
- Global Dimension 1 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Global Dimension 2 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Source Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- IC Partner Code: TableRelation [Table 413 "IC Partner"](../table/413.md)
- G/L Register No.: TableRelation [Table 45 "G/L Register"](../table/45.md)
- Shortcut Dimension 3 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Shortcut Dimension 4 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Shortcut Dimension 5 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Shortcut Dimension 6 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Shortcut Dimension 7 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Shortcut Dimension 8 Code: CalcFormula [Table 480 "Dimension Set Entry"](../table/480.md)
- Dimension Set ID: TableRelation [Table 480 "Dimension Set Entry"](../table/480.md)
- Source No.: TableRelation [Table 5200 "Employee"](../table/5200.md) (conditional)
- Source No.: TableRelation [Table 5600 "Fixed Asset"](../table/5600.md) (conditional)
- FA Entry No.: TableRelation [Table 5601 "FA Ledger Entry"](../table/5601.md) (conditional)
- FA Entry No.: TableRelation [Table 5625 "Maintenance Ledger Entry"](../table/5625.md) (conditional)
- Transaction No.: TableRelation [Table 57 "G/L Transaction"](../table/57.md)

## Referenced by

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

- [Table 15 "G/L Account"](../table/15.md): Add.-Currency Balance at Date, Add.-Currency Credit Amount, Add.-Currency Debit Amount, Additional-Currency Balance, Additional-Currency Net Change, Balance, Balance at Date, Credit Amount, Debit Amount, Net Change, Source Curr. Balance at Date, Source Currency Balance, Source Currency Net Change, VAT Amt.
- [Table 589 "G/L Account Source Currency"](../table/589.md): Balance at Date, Entries Exists, Source Curr. Balance at Date, Source Currency Net Change
- [Table 1105 "Cost Register"](../table/1105.md): From G/L Entry No., To G/L Entry No.
- [Table 1570 "G/L Entry Posting Preview"](../table/1570.md): Reversed by Entry No., Reversed Entry No.
- [Table 17 "G/L Entry"](../table/17.md): Reversed by Entry No., Reversed Entry No.
- [Table 45 "G/L Register"](../table/45.md): From Entry No., To Entry No.
- [Table 6845 "Spend Request To G/L Link"](../table/6845.md): Posting Description, G/L Entry No.
- [Table 1003 "Job Planning Line"](../table/1003.md): Ledger Entry No.
- [Table 1005 "Job WIP G/L Entry"](../table/1005.md): G/L Entry No.
- [Table 1101 "Cost Journal Line"](../table/1101.md): G/L Entry No.
- [Table 1104 "Cost Entry"](../table/1104.md): G/L Entry No.
- [Table 1293 "Payment Application Proposal"](../table/1293.md): Applies-to Entry No.
- [Table 1294 "Applied Payment Entry"](../table/1294.md): Applies-to Entry No.
- [Table 169 "Job Ledger Entry"](../table/169.md): Ledger Entry No.
- [Table 1692 "Posted Bank Deposit Line"](../table/1692.md): Entry No.
- [Table 179 "Reversal Entry"](../table/179.md): Entry No.
- [Table 210 "Job Journal Line"](../table/210.md): Ledger Entry No.
- [Table 253 "G/L Entry - VAT Entry Link"](../table/253.md): G/L Entry No.
- [Table 5137 "Job Planning Line Archive"](../table/5137.md): Ledger Entry No.
- [Table 5509 "Attachment Entity Buffer"](../table/5509.md): G/L Entry No.
- [Table 5601 "FA Ledger Entry"](../table/5601.md): G/L Entry No.
- [Table 5625 "Maintenance Ledger Entry"](../table/5625.md): G/L Entry No.
- [Table 57 "G/L Transaction"](../table/57.md): No. of G/L Entries
- [Table 5823 "G/L - Item Ledger Relation"](../table/5823.md): G/L Entry No.
- [Table 6090 "FA Ledg. Entry w. Issue"](../table/6090.md): G/L Entry No.
- [Table 6260 "Sust. Jnl. Line G/L Entry"](../table/6260.md): G/L Entry No.
- [Table 6261 "Sust. G/L - Sust. Ledger Rel."](../table/6261.md): G/L Entry No.
- [Table 8066 "Cust. Sub. Contract Deferral"](../table/8066.md): G/L Entry No.
- [Table 8072 "Vend. Sub. Contract Deferral"](../table/8072.md): G/L Entry No.
- [Table 9153 "My Account"](../table/9153.md): Acc. Balance

## Pages and codeunits on this table

- [Page 122 "G/L Entries Preview"](../page/122.md) (source table)
- [Page 1574 "G/L Entries Preview Flat Subf."](../page/1574.md) (source table)
- [Page 19 "G/L Entries Part"](../page/19.md) (source table)
- [Page 20 "General Ledger Entries"](../page/20.md) (source table)
- [Page 20018 "APIV1 - G/L Entries"](../page/20018.md) (source table)
- [Page 22207 "Review G/L Entries"](../page/22207.md) (source table)
- [Page 2583 "Dim. Correct Ledger Entries"](../page/2583.md) (source table)
- [Page 2584 "Dim Correct Posted Ledg Entr"](../page/2584.md) (source table)
- [Page 30018 "APIV2 - G/L Entries"](../page/30018.md) (source table)
- [Page 563 "G/L Entries Dimension Overview"](../page/563.md) (source table)
- [Page 9241 "G/L Entries Dim. Overv. Matrix"](../page/9241.md) (source table)
- [Codeunit 115 "G/L Entry-Edit"](../codeunit/115.md) (codeunit runs on it)

## Extended by

- [Table extension 22211 "G/L Entry Review"](../tableextension/22211.md)
- [Table extension 8067 "G/L Entry"](../tableextension/8067.md)

## 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 703 "Find Record Management"](../codeunit/703.md) (2 calls: `GetLastEntry → GetLastEntryIntFieldValues`, `GetLastEntryNo → GetLastEntryIntFieldValue`)
- [Codeunit 408 "DimensionManagement"](../codeunit/408.md) (1 call: `ShowDimensions → ShowDimensionSet`)
- [Codeunit 9500 "Sequence No. Mgt."](../codeunit/9500.md) (1 call: `GetNextEntryNo → GetNextSeqNo`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-29

## Countries that replace it

[AU](../../localizations/au.md), [BE](../../localizations/be.md), [CA](../../localizations/ca.md), [CH](../../localizations/ch.md), [ES](../../localizations/es.md), [FI](../../localizations/fi.md), [FR](../../localizations/fr.md), [IT](../../localizations/it.md), [MX](../../localizations/mx.md), [NL](../../localizations/nl.md), [NZ](../../localizations/nz.md), [RU](../../localizations/ru.md), [US](../../localizations/us.md)

## Deprecations

- procedure GetCurrencyCode: Pending 27.0 (#if not CLEAN27), "use GetAdditionalReportingCurrencyCode instead"

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: "G/L Entry")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
