Table
LedgerClosingTable
Closing accounts
Line records for a closing sheet, one for each main account. They hold balance, capital, result, transfer and trial balance amounts in the accounting currency. They link to the closing sheet and the main account.
- Table name
LedgerClosingTable- Module
General ledger- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
LedgerBasic- Primary index
ShMnAcctIdx- Replacement key
None- Key fields
Sheet, MainAccount- Model
Foundation
Fields (14)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SheetClosing sheet that the line belongs to. | String (20)ClosingSheet | Yes | LedgerClosingSheet.Sheet | None |
MainAccountPoints to the main account record. | Int64RefRecId | Yes | MainAccount.RecId | None |
AccountTypeMain account type, such as revenue, expense or asset. | EnumDimensionLedgerAccountType (enum) | No | None | |
BalanceSheetBalance sheet amount in the accounting currency. | RealAmountMST | No | None | |
CapitalCapital amount in the accounting currency. | RealAmountMST | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | 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 | |
ReconciledYes/No flag showing whether the line is reconciled. | EnumNoYes (enum) | 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 | |
ResultResult amount in the accounting currency. | RealAmountMST | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TransferTransfer amount in the accounting currency. | RealAmountMST | No | None | |
TrialBalanceSheetTrial balance amount in the accounting currency. | RealAmountMST | No | None |
Indexes (1)
ShMnAcctIdxPrimary indexUnique, alternate key.
Relations (2)
Each relation joins LedgerClosingTable to another table on the fields shown.
LedgerClosingSheet→LedgerClosingSheetJoin on
Sheet = LedgerClosingSheet.SheetMany LedgerClosingTable records → exactly one LedgerClosingSheet record
MainAccount→MainAccountJoin on
MainAccount = MainAccount.RecIdMany LedgerClosingTable records → exactly one MainAccount record
Get this data out
No public entity reads from LedgerClosingTable. Its data is only reachable through the application, a custom entity or a database export.
Need help with LedgerClosingTable in a report, an integration or a migration? Talk to Dr Dynamics.