Table
LedgerGainLossAccount
Ledger revaluation account
Holds the revaluation accounts of a ledger. It is keyed by ledger and posting type, such as realized gain, unrealized loss or conversion gain. Each row points to a main account as a dimension code combination.
- Table name
LedgerGainLossAccount- Module
General ledger- Table group
Reference- Table type
Regular- Data per company
No- Configuration key
None- Primary index
None- Replacement key
LedgerGainLossAccountIdx- Key fields
Ledger, AccountType- Model
Ledger
Fields (7)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
LedgerPoints to the ledger. | Int64LedgerRecId | No | Ledger.RecId | None |
AccountTypeType of gain or loss that the account is for. | EnumCurrencyGainLossAccountType (enum) | No | None | |
LedgerDimensionMain account for this gain or loss type. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | 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 | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
LedgerGainLossAccountIdxReplacement keyUnique, alternate key.
Relations (2)
Each relation joins LedgerGainLossAccount to another table on the fields shown.
Ledger→LedgerJoin on
Ledger = Ledger.RecIdMany LedgerGainLossAccount records → exactly one Ledger record
LedgerDimension→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany LedgerGainLossAccount records → zero or one DimensionAttributeValueCombination record
Get this data out
No public entity reads from LedgerGainLossAccount. Its data is only reachable through the application, a custom entity or a database export.
Need help with LedgerGainLossAccount in a report, an integration or a migration? Talk to Dr Dynamics.