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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
NameName of the ledger. It is the key of the table. | String (20)LedgerName | Yes | LedgerConfigurationEntityLedgerConfigurationEntityLedgerEntityand 20 more | |
AccountingConventionLink to the accounting convention that the ledger follows. | Int64LedgerAccountingConventionRecId | No | LedgerAccountingConvention.RecId | None |
AccountingCurrencyCurrency code used as the main currency of the ledger. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | LedgerConfigurationEntityLedgerEntityLedgerBiEntityand 7 more |
BudgetExchangeRateTypeLink to the exchange rate type used by default for budgets. | Int64RefRecId | No | ExchangeRateType.RecId | LedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more |
ChartOfAccountsLink to the chart of accounts that the ledger uses. | Int64RefRecId | Yes | LedgerChartOfAccounts.RecId | LedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | LedgerCDREntity | |
DefaultExchangeRateTypeLink to the exchange rate type used by default. | Int64RefRecId | No | ExchangeRateType.RecId | LedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more |
DescriptionFree-text description of the ledger. | String (60)Description | No | LedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more | |
FiscalCalendarLink to the fiscal calendar that the ledger uses. | Int64FiscalCalendarRecId | Yes | FiscalCalendar.RecId | LedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more |
IsBudgetControlEnabledYes/No flag showing whether budget control is turned on for the ledger. | EnumNoYes (enum) | No | LedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more | |
IsNonPostingYes/No flag that marks a parallel ledger as managerial. | EnumNoYes (enum) | No | LedgerConfigurationEntity | |
LedgerLifecycleStateState of the ledger: active, draft or closed. | EnumLedgerLifecycleState (enum) | No | LedgerConfigurationEntity | |
LedgerRoleShows whether the ledger is primary or parallel. | EnumLedgerRole (enum) | No | LedgerConfigurationEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | LedgerCDREntity | |
MostRecentYearEndCloseDate of the latest year-end close for the ledger. | DateTransDate | No | LedgerCDREntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrimaryForLegalEntityLink to the legal entity for which this ledger is the primary one. | Int64RefRecId | No | CompanyInfo.RecId | LedgerEntityLedgerBiEntityLedgerCDREntity |
PrimaryLedgerLink to the primary ledger. It points to another record in this table. | Int64RefRecId | No | Ledger.RecId | None |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | LedgerConfigurationEntityLedgerEntityLedgerBiEntityand 3 more | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ReportingCurrencyCurrency code used for reporting amounts. | String (3)CurrencyCode | No | Currency.CurrencyCode | LedgerConfigurationEntityLedgerEntityLedgerBiEntityand 3 more |
ReportingCurrencyExchangeRateTypeLink to the exchange rate type used to convert amounts to the reporting currency. | Int64RefRecId | No | ExchangeRateType.RecId | LedgerConfigurationEntityLedgerEntityLedgerBiEntityand 1 more |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
NameReplacement keyUnique, alternate key.
PrimaryLegalEntityNot unique.
PrimaryLedgerIdxNot unique.
Relations (12)
Each relation joins Ledger to another table on the fields shown.
BudgetExchangeRateType→ExchangeRateTypeJoin on
BudgetExchangeRateType = ExchangeRateType.RecIdMany Ledger records → zero or one ExchangeRateType record
ChartOfAccounts→LedgerChartOfAccountsJoin on
ChartOfAccounts = LedgerChartOfAccounts.RecIdMany Ledger records → exactly one LedgerChartOfAccounts record
Currency_AccountingCurrency→CurrencyJoin on
AccountingCurrency = Currency.CurrencyCodeMany Ledger records → exactly one Currency record
Currency_ReportingCurrency→CurrencyJoin on
ReportingCurrency = Currency.CurrencyCodeMany Ledger records → zero or one Currency record
DefaultExchangeRateType→ExchangeRateTypeJoin on
DefaultExchangeRateType = ExchangeRateType.RecIdMany Ledger records → zero or one ExchangeRateType record
FiscalCalendar→FiscalCalendarJoin on
FiscalCalendar = FiscalCalendar.RecIdMany Ledger records → exactly one FiscalCalendar record
PrimaryForLegalEntity→CompanyInfoJoin on
PrimaryForLegalEntity = CompanyInfo.RecIdZero or one Ledger record → exactly one CompanyInfo record
DimensionAttrValueLedgerOverride→DimensionAttrValueLedgerOverrideJoin on
RecId = DimensionAttrValueLedgerOverride.LedgerCardinality not set in the metadata.
DimensionSynchronizeLedger→DimensionSynchronizeLedgerJoin on
RecId = DimensionSynchronizeLedger.LedgerMany Ledger records → zero or one DimensionSynchronizeLedger record
ReportingCurrencyExchangeRateType→ExchangeRateTypeJoin on
ReportingCurrencyExchangeRateType = ExchangeRateType.RecIdMany Ledger records → zero or one ExchangeRateType record
AccountingConvention→LedgerAccountingConventionJoin on
AccountingConvention = LedgerAccountingConvention.RecIdMany Ledger records → zero or one LedgerAccountingConvention record
PrimaryLedger→LedgerJoin on
PrimaryLedger = Ledger.RecIdZero 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.
LedgerConfigurationEntity· 15 fields from this tableLedgerEntity· 12 fields from this tableLedgerBiEntity· 12 fields from this tableLedgerCDREntity· 15 fields from this tableCurrencyRevaluationAccountV2Entity· 1 field from this tableLedgerCurrencyParametersV2Entity· 1 field from this tableLedgerFiscalPeriodV2Entity· 1 field from this tableAdvanceAdjustmentParametersEntity· 1 field from this tableBudgetControlGroupCriterionEntity· 0 fields from this tableBudgetPlanAllocationScheduleEntity· 1 field from this tableBudgetPlanProcessEntity· 1 field from this tableCurrencyRevaluationAccountEntity· 1 field from this tableEcoResSellableReleasedProductEntity· 1 field from this tableInventoryChargeCDSEntity· 1 field from this tableLedgerCurrencyParametersEntity· 1 field from this tableLedgerFiscalCloseLedgerOptionsEntity· 1 field from this tableLedgerFiscalPeriodEntity· 1 field from this tableLedgerFiscalYearEntity· 1 field from this tableLedgerLiquidityDependencyEntity· 0 fields from this tableLedgerReportingCurrencyAdjustmentJournalHeaderEntity· 1 field from this tableLedgerSalesTaxExchangeRateTypeCurrencyEntity· 1 field from this tableMainAccountLegalEntityOverrideEntity· 1 field from this tablePurchProcurementChargeCDSEntity· 1 field from this tableSalesChargeCDSEntity· 1 field from this tableSalesDeliveryChargeCDSEntity· 1 field from this tableEcoResReleasedDistinctProductCDSEntity· 1 field from this tableEcoResReleasedProductDVEntity· 1 field from this tableLedgerTrialBalanceFiscalYearSnapshotDataEntity· 1 field from this tableLedgerTrialBalanceFiscalYearSnapshotHeaderEntity· 1 field from this tableAssetJournalHeaderEntity· 2 fields from this tableAssetLeaseLedgerJournalHeaderEntity· 1 field from this tableLedgerJournalHeaderEntity· 1 field from this tableFiscalPeriodDateEntity· 1 field from this tableMainAccountCompanyEntity· 0 fields from this table
Need help with Ledger in a report, an integration or a migration? Talk to Dr Dynamics.