Data entity
LedgerEntity
Lists ledgers, one per legal entity, keyed by legal entity ID. It shows the accounting and reporting currencies, the fiscal calendar, the chart of accounts and the exchange rate types. It also shows the budget control flag and the balancing financial dimension. Calculated fields add the account structure names and the gain and loss accounts.
- Entity name
LedgerEntity- Public entity name
Ledger- OData collection
Ledgers- Category
Parameters- Module
General ledger- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
LegalEntityId- Staging table
LedgerEntityStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/Ledgers- Dataverse virtual table
mserp_ledgerentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
Ledger· rootCompanyInfo· InnerJoin toLedger· read-onlyFiscalCalendar· OuterJoin toLedger· read-onlyLedgerChartOfAccounts· OuterJoin toLedger· read-onlyDefaultExchangeRateType(tableExchangeRateType) · OuterJoin toLedger· read-onlyBudgetExchangeRateType(tableExchangeRateType) · OuterJoin toLedger· read-onlyLedgerInterunitDimensionAttribute· OuterJoin toLedgerInterunitDimensionAttribute(tableDimensionAttribute) · OuterJoin toLedgerInterunitDimensionAttribute· read-onlyReportingCurrencyExchangeRateType(tableExchangeRateType) · OuterJoin toLedger· read-only
Fields (46)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AccountingCurrencyCurrency code used as the main currency of the ledger. | String (3)CurrencyCode | Yes | Yes | Currency.CurrencyCode | Ledger.AccountingCurrency |
ReportingCurrencyCurrency code used for reporting amounts. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | Ledger.ReportingCurrency |
DescriptionFree-text description of the ledger. | String (60)Description | No | Yes | Ledger.Description | |
FiscalCalendarShort code that identifies the fiscal calendar. It is the key of the table. | StringFiscalCalendarID | Yes | Yes | FiscalCalendar.CalendarId | |
FiscalCalendarRecIdLink to the fiscal calendar that the ledger uses. | Int64FiscalCalendarRecId | Yes | No (private) | FiscalCalendar.RecId | Ledger.FiscalCalendar |
ExchangeRateTypeName of the exchange rate type. It is the key of the table. | String (20)ExchangeRateTypeName | No | Yes | ExchangeRateType.Name | |
ExchangeRateTypeRecIdLink to the exchange rate type used by default. | Int64RefRecId | No | No (private) | ExchangeRateType.RecId | Ledger.DefaultExchangeRateType |
BudgetExchangeRateTypeName of the exchange rate type. It is the key of the table. | String (20)ExchangeRateTypeName | No | Yes | ExchangeRateType.Name | |
BudgetExchangeRateTypeRecIdLink to the exchange rate type used by default for budgets. | Int64RefRecId | No | No (private) | ExchangeRateType.RecId | Ledger.BudgetExchangeRateType |
IsBudgetControlEnabledYes/No flag showing whether budget control is turned on for the ledger. | Enum
| No | Yes | Ledger.IsBudgetControlEnabled | |
ChartOfAccountsName of the chart of accounts. It is the key of the table. | String (60)LedgerChartOfAccountsName | Yes | Yes | LedgerChartOfAccounts.Name | |
ChartOfAccountsRecIdLink to the chart of accounts that the ledger uses. | Int64RefRecId | No | Yes | LedgerChartOfAccounts.RecId | Ledger.ChartOfAccounts |
NameName of the ledger. It is the key of the table. | String (20)LedgerName | No | Yes | Ledger.Name | |
PrimaryForLegalEntityRecIdLink to the legal entity for which this ledger is the primary one. | Int64RefRecId | No | No (private) | CompanyInfo.RecId | Ledger.PrimaryForLegalEntity |
LegalEntityIdCompany ID of the legal entity. It is the key. | StringSelectableDataArea | Yes | Yes | CompanyInfo.DataArea | |
BalancingFinancialDimensionRecIdPoints to the dimension attribute chosen for the ledger. | Int64DimensionAttributeRecId | No | No (private) | DimensionAttribute.RecId | LedgerInterunitDimensionAttribute.DimensionAttribute |
BalancingFinancialDimensionName of the dimension. It is the key of the table. | String (60)Name | No | Yes | DimensionAttribute.Name | |
AccountStructureName1Name of the first account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName2Name of the second account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName3Name of the third account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName4Name of the fourth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName5Name of the fifth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName6Name of the sixth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName7Name of the seventh account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName8Name of the eighth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName9Name of the ninth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName10Name of the tenth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName11Name of the eleventh account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName12Name of the twelfth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName13Name of the thirteenth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName14Name of the fourteenth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName15Name of the fifteenth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName16Name of the sixteenth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName17Name of the seventeenth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName18Name of the eighteenth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName19Name of the nineteenth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
AccountStructureName20Name of the twentieth account structure linked to the ledger. | String (60)Name | No | Yes | computed | |
LedgerRecIdA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | Ledger.RecId | |
MainAccountIdRealizedGainMain account number used for realized gains. | String (20)MainAccountNum | No | Yes | virtual | |
MainAccountIdRealizedLossMain account number used for realized losses. | String (20)MainAccountNum | No | Yes | virtual | |
MainAccountIdUnrealizedGainMain account number used for unrealized gains. | String (20)MainAccountNum | No | Yes | virtual | |
MainAccountIdUnrealizedLossMain account number used for unrealized losses. | String (20)MainAccountNum | No | Yes | virtual | |
MainAccountIdFinancialGainMain account number used for unrealized financial gains. | String (20)MainAccountNum | No | Yes | virtual | |
MainAccountIdFinancialLossMain account number used for unrealized financial losses. | String (20)MainAccountNum | No | Yes | virtual | |
ReportingCurrencyExchangeRateTypeName of the exchange rate type. It is the key of the table. | String (20)ExchangeRateTypeName | No | Yes | ExchangeRateType.Name | |
ReportingCurrencyExchangeRateTypeRecIdLink to the exchange rate type used to convert amounts to the reporting currency. | Int64RefRecId | No | No (private) | ExchangeRateType.RecId | Ledger.ReportingCurrencyExchangeRateType |
Foreign keys (9)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
AccountingCurrency→Currency.CurrencyCode(key of Currency)Many Ledger records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
ReportingCurrency→Currency.CurrencyCode(key of Currency)Many Ledger records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
FiscalCalendarRecId→FiscalCalendar.RecId(key of FiscalCalendar)Many Ledger records → exactly one FiscalCalendar record
FiscalCalendar details: see LedgerFiscalYearEntity, BudgetTrackingWorkspaceParametersEntity, FiscalCalendarEntity
ExchangeRateTypeRecId→ExchangeRateType.RecId(key of ExchangeRateType)Many Ledger records → zero or one ExchangeRateType record
ExchangeRateType details: see LedgerConfigurationEntity, MainAccountEntity, BankAccountEntity
BudgetExchangeRateTypeRecId→ExchangeRateType.RecId(key of ExchangeRateType)Many Ledger records → zero or one ExchangeRateType record
ExchangeRateType details: see LedgerConfigurationEntity, MainAccountEntity, BankAccountEntity
ChartOfAccountsRecId→LedgerChartOfAccounts.RecId(key of LedgerChartOfAccounts)Many Ledger records → exactly one LedgerChartOfAccounts record
LedgerChartOfAccounts details: see LedgerChartOfAccountsEntity, CPParametersEntity, CPRediscountTableEntity
PrimaryForLegalEntityRecId→CompanyInfo.RecId(key of CompanyInfo)Zero or one Ledger record → exactly one CompanyInfo record
CompanyInfo details: see BusinessDocumentSalesInvoiceBaseEntity, TrvExpMobileCompanyInfoV2Entity, OMLegalEntity
BalancingFinancialDimensionRecId→DimensionAttribute.RecId(key of DimensionAttribute)Many LedgerInterunitDimensionAttribute records → exactly one DimensionAttribute record
DimensionAttribute details: see DimensionAttributeEntity, RTSLDimensionRuleEntity, DerivedDimensionAttributeValuesEntity
ReportingCurrencyExchangeRateTypeRecId→ExchangeRateType.RecId(key of ExchangeRateType)Many Ledger records → zero or one ExchangeRateType record
ExchangeRateType details: see LedgerConfigurationEntity, MainAccountEntity, BankAccountEntity
Need help with LedgerEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.