Table

Ledger

Ledger

Holds the ledgers set up in the system. Each ledger has a name, an accounting currency, a chart of accounts and a fiscal calendar. It can be a primary or parallel ledger, and it links to a legal entity.

Table name
Ledger
Module
General ledger
Table group
Main
Table type
Regular
Data per company
No
Configuration key
None
Primary index
None
Replacement key
Name
Key fields
Name
Model
Ledger

Fields (26)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
NameName of the ledger. It is the key of the table.String (20)
LedgerName
YesLedgerConfigurationEntityLedgerConfigurationEntityLedgerEntityand 20 more
AccountingConventionLink to the accounting convention that the ledger follows.Int64
LedgerAccountingConventionRecId
NoLedgerAccountingConvention.RecIdNone
AccountingCurrencyCurrency code used as the main currency of the ledger.String (3)
CurrencyCode
YesCurrency.CurrencyCodeLedgerConfigurationEntityLedgerEntityLedgerBiEntityand 7 more
BudgetExchangeRateTypeLink to the exchange rate type used by default for budgets.Int64
RefRecId
NoExchangeRateType.RecIdLedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more
ChartOfAccountsLink to the chart of accounts that the ledger uses.Int64
RefRecId
YesLedgerChartOfAccounts.RecIdLedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoLedgerCDREntity
DefaultExchangeRateTypeLink to the exchange rate type used by default.Int64
RefRecId
NoExchangeRateType.RecIdLedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more
DescriptionFree-text description of the ledger.String (60)
Description
NoLedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more
FiscalCalendarLink to the fiscal calendar that the ledger uses.Int64
FiscalCalendarRecId
YesFiscalCalendar.RecIdLedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more
IsBudgetControlEnabledYes/No flag showing whether budget control is turned on for the ledger.Enum
NoYes (enum)
NoLedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more
IsNonPostingYes/No flag that marks a parallel ledger as managerial.Enum
NoYes (enum)
NoLedgerConfigurationEntity
LedgerLifecycleStateState of the ledger: active, draft or closed.Enum
LedgerLifecycleState (enum)
NoLedgerConfigurationEntity
LedgerRoleShows whether the ledger is primary or parallel.Enum
LedgerRole (enum)
NoLedgerConfigurationEntity
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoLedgerCDREntity
MostRecentYearEndCloseDate of the latest year-end close for the ledger.Date
TransDate
NoLedgerCDREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrimaryForLegalEntityLink to the legal entity for which this ledger is the primary one.Int64
RefRecId
NoCompanyInfo.RecIdLedgerEntityLedgerBiEntityLedgerCDREntity
PrimaryLedgerLink to the primary ledger. It points to another record in this table.Int64
RefRecId
NoLedger.RecIdNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoLedgerConfigurationEntityLedgerEntityLedgerBiEntityand 3 more
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ReportingCurrencyCurrency code used for reporting amounts.String (3)
CurrencyCode
NoCurrency.CurrencyCodeLedgerConfigurationEntityLedgerEntityLedgerBiEntityand 3 more
ReportingCurrencyExchangeRateTypeLink to the exchange rate type used to convert amounts to the reporting currency.Int64
RefRecId
NoExchangeRateType.RecIdLedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (12)

Each relation joins Ledger to another table on the fields shown.

  • BudgetExchangeRateType → ExchangeRateType

    Join on BudgetExchangeRateType = ExchangeRateType.RecId

    Many Ledger records → zero or one ExchangeRateType record

  • ChartOfAccounts → LedgerChartOfAccounts

    Join on ChartOfAccounts = LedgerChartOfAccounts.RecId

    Many Ledger records → exactly one LedgerChartOfAccounts record

  • Currency_AccountingCurrency → Currency

    Join on AccountingCurrency = Currency.CurrencyCode

    Many Ledger records → exactly one Currency record

  • Currency_ReportingCurrency → Currency

    Join on ReportingCurrency = Currency.CurrencyCode

    Many Ledger records → zero or one Currency record

  • DefaultExchangeRateType → ExchangeRateType

    Join on DefaultExchangeRateType = ExchangeRateType.RecId

    Many Ledger records → zero or one ExchangeRateType record

  • FiscalCalendar → FiscalCalendar

    Join on FiscalCalendar = FiscalCalendar.RecId

    Many Ledger records → exactly one FiscalCalendar record

  • PrimaryForLegalEntity → CompanyInfo

    Join on PrimaryForLegalEntity = CompanyInfo.RecId

    Zero or one Ledger record → exactly one CompanyInfo record

  • DimensionAttrValueLedgerOverride → DimensionAttrValueLedgerOverride

    Join on RecId = DimensionAttrValueLedgerOverride.Ledger

    Cardinality not set in the metadata.

  • DimensionSynchronizeLedger → DimensionSynchronizeLedger

    Join on RecId = DimensionSynchronizeLedger.Ledger

    Many Ledger records → zero or one DimensionSynchronizeLedger record

  • ReportingCurrencyExchangeRateType → ExchangeRateType

    Join on ReportingCurrencyExchangeRateType = ExchangeRateType.RecId

    Many Ledger records → zero or one ExchangeRateType record

  • AccountingConvention → LedgerAccountingConvention

    Join on AccountingConvention = LedgerAccountingConvention.RecId

    Many Ledger records → zero or one LedgerAccountingConvention record

  • PrimaryLedger → Ledger

    Join on PrimaryLedger = Ledger.RecId

    Zero or one Ledger record → zero or one Ledger record

Get this data out

Tables are not exposed directly. These public entities read from Ledger; use one of them in Power BI, Power Platform or a data management project.

Need help with Ledger in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk