Table
LedgerStatementDefinition
Ledger statement definition
Holds the lines of a ledger statement definition. Each line links a main account to a statement header, with a group of accounts, a total reference and an option to invert the sign.
- Table name
LedgerStatementDefinition- Module
General ledger- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
None- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (12)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AccountsGroupShort code that groups accounts on the statement. | String (4)LedgerReportAccountsGroup | No | LedgerStatementDefinitionEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
LedgerStatementHeaderPoints to the statement header that this line belongs to. | Int64RefRecId | No | LedgerStatementHeader.RecId | None |
LineIdUnique GUID that identifies the line. | GuidSysGuid | No | LedgerStatementDefinitionEntity | |
LineReferenceLine number of the total that this line refers to. | IntegerLedgerReportLineNumber | No | LedgerStatementDefinitionEntity | |
MainAccountPoints to the main account included in the line. | Int64MainAccountRecId | No | MainAccount.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 | |
ReverseSignYes/no flag showing whether the sign of the amount is inverted. | EnumNoYes (enum) | No | LedgerStatementDefinitionEntity | |
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 (2)
MainAccountIdxNot unique.
LedgerStatementHeaderIdxNot unique.
Relations (2)
Each relation joins LedgerStatementDefinition to another table on the fields shown.
Header→LedgerStatementHeaderJoin on
LedgerStatementHeader = LedgerStatementHeader.RecIdMany LedgerStatementDefinition records → zero or one LedgerStatementHeader record
MainAccount→MainAccountJoin on
MainAccount = MainAccount.RecIdMany LedgerStatementDefinition records → zero or one MainAccount record
Get this data out
Tables are not exposed directly. These public entities read from LedgerStatementDefinition; use one of them in Power BI, Power Platform or a data management project.
LedgerStatementDefinitionEntity· 4 fields from this table
Need help with LedgerStatementDefinition in a report, an integration or a migration? Talk to Dr Dynamics.