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 descriptionType / EDT / enumMandatoryReferencesIn public entities
AccountsGroupShort code that groups accounts on the statement.String (4)
LedgerReportAccountsGroup
NoLedgerStatementDefinitionEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
LedgerStatementHeaderPoints to the statement header that this line belongs to.Int64
RefRecId
NoLedgerStatementHeader.RecIdNone
LineIdUnique GUID that identifies the line.Guid
SysGuid
NoLedgerStatementDefinitionEntity
LineReferenceLine number of the total that this line refers to.Integer
LedgerReportLineNumber
NoLedgerStatementDefinitionEntity
MainAccountPoints to the main account included in the line.Int64
MainAccountRecId
NoMainAccount.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ReverseSignYes/no flag showing whether the sign of the amount is inverted.Enum
NoYes (enum)
NoLedgerStatementDefinitionEntity
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 (2)

Relations (2)

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

  • Header → LedgerStatementHeader

    Join on LedgerStatementHeader = LedgerStatementHeader.RecId

    Many LedgerStatementDefinition records → zero or one LedgerStatementHeader record

  • MainAccount → MainAccount

    Join on MainAccount = MainAccount.RecId

    Many 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.

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

Email sales@drdynamics.co.uk