Table

GeneralLedgerMainAccountBalance

General ledger main account balances

Holds ledger balances as debit and credit totals at main account level. Each record is for one ledger, period type, accounting date, posting layer and main account. Financial dimensions other than the main account are not part of the key.

Table name
GeneralLedgerMainAccountBalance
Module
General ledger
Table group
Transaction
Table type
Regular
Data per company
No
Configuration key
LedgerBasic
Primary index
None
Replacement key
BalanceQueryIdx
Key fields
Ledger, FiscalCalendarPeriodType, AccountingDate, PostingLayer, IsClosingTransaction, MainAccount
Model
GeneralLedger

Fields (17)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
LedgerLink to the ledger that the balance belongs to.Int64
LedgerRecId
YesLedger.RecIdGeneralLedgerMainAccountBalanceCDREntity
FiscalCalendarPeriodTypeType of fiscal period: opening, operating or closing.Enum
FiscalPeriodType (enum)
YesGeneralLedgerMainAccountBalanceCDREntity
AccountingDateDate that the balance amounts relate to.Date
TransDate
YesGeneralLedgerMainAccountBalanceCDREntity
PostingLayerPosting layer of the balance, such as Current, Operations, Tax or a custom layer.Enum
CurrentOperationsTax (enum)
YesGeneralLedgerMainAccountBalanceCDREntity
IsClosingTransactionYes/No flag showing whether the amounts come from a system-generated closing transaction.Enum
LedgerSystemGeneratedUltimo
NoYes (enum)
YesGeneralLedgerMainAccountBalanceCDREntity
MainAccountLink to the main account that the balance is for.Int64
MainAccountRecId
NoMainAccount.RecIdGeneralLedgerMainAccountBalanceCDREntity
CreditAccountingCurrencyAmountTotal credit amount in the accounting currency of the ledger.Real
AmountMST
NoGeneralLedgerMainAccountBalanceCDREntity
CreditReportingCurrencyAmountTotal credit amount in the reporting currency.Real
AmountMSTSecondary
NoGeneralLedgerMainAccountBalanceCDREntity
DebitAccountingCurrencyAmountTotal debit amount in the accounting currency of the ledger.Real
AmountMST
NoGeneralLedgerMainAccountBalanceCDREntity
DebitReportingCurrencyAmountTotal debit amount in the reporting currency.Real
AmountMSTSecondary
NoGeneralLedgerMainAccountBalanceCDREntity
MainAccountValueMain account number as a dimension value text.String (30)
DimensionValue
NoGeneralLedgerMainAccountBalanceCDREntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QuantityStatistical quantity held with the balance.Real
QtyStatistical
NoGeneralLedgerMainAccountBalanceCDREntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoGeneralLedgerMainAccountBalanceCDREntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
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 (2)

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

  • Ledger → Ledger

    Join on Ledger = Ledger.RecId

    Many GeneralLedgerMainAccountBalance records → exactly one Ledger record

  • MainAccount → MainAccount

    Join on MainAccount = MainAccount.RecId

    Many GeneralLedgerMainAccountBalance records → exactly one MainAccount record

Get this data out

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

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

Email sales@drdynamics.co.uk