Table
LedgerAllocationRule
Ledger allocation rule
Holds ledger allocation rules, one record per rule ID. A rule sets the allocation method, the data source, an optional mathematical operation and an effective date range. It also holds offset account and dimension settings and the journal name to use. Source and destination lines are stored in separate tables.
- Table name
LedgerAllocationRule- Module
General ledger- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
LedgerAllocationRules- Primary index
RuleIdx- Replacement key
None- Key fields
RuleId- Model
GeneralLedger
Fields (26)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RuleIdUnique ID of the allocation rule. | String (20)LedgerAllocationRuleID | Yes | LedgerAllocationRuleEntity | |
AllocationActiveShows whether the rule is active (yes or no). | EnumNoYes (enum) | No | LedgerAllocationRuleEntity | |
AllocationDescriptionShort text describing the rule. | String (60)Description | No | LedgerAllocationRuleEntity | |
AllocationMethodMethod of the allocation: blank, basis, fixed percentage, fixed weight or equally. | EnumLedgerAllocationMethod (enum) | No | LedgerAllocationRuleEntity | |
CalculationAmountAmount used together with the mathematical operation. | RealAmount | No | LedgerAllocationRuleEntity | |
CalculationTypeMathematical operation to apply: none, multiply or divide. | EnumLedgerAllocationMathType (enum) | No | LedgerAllocationRuleEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DataSourceWhere the amounts come from: the ledger or a fixed value. | EnumLedgerAllocationSource (enum) | No | LedgerAllocationRuleEntity | |
DateIntervalDate interval code linked to the rule. | StringDateCode | No | LedgerPeriodCode.Code | LedgerAllocationRuleEntity |
DateLastRunDate on which the rule was last run. | DateTransDate | No | LedgerAllocationRuleEntity | |
DestinationAccountFromSays whether the destination account comes from the source or is entered by the user. | EnumLedgerAllocationFromTo (enum) | No | LedgerAllocationRuleEntity | |
DestinationDimensionFromSays whether the destination dimensions come from the source or are entered by the user. | EnumLedgerAllocationFromTo (enum) | No | LedgerAllocationRuleEntity | |
EffectiveEndDateLast date on which the rule is valid. | DateEndDate | No | LedgerAllocationRuleEntity | |
EffectiveStartDateFirst date on which the rule is valid. | DateStartDate | No | LedgerAllocationRuleEntity | |
FixedValueFixed value (weight) used when the data source is a fixed value. | RealLedgerAllocationFixedWeight | No | LedgerAllocationRuleEntity | |
IntercompanyRuleShows whether the rule is an intercompany rule (yes or no). | EnumNoYes (enum) | No | LedgerAllocationRuleEntity | |
JournalNameName of the ledger journal linked to the rule. | StringLedgerJournalNameId | No | LedgerJournalName.JournalName | LedgerAllocationRuleEntity |
OffsetAccountFromSays whether the offset account comes from the source or is entered by the user. | EnumLedgerAllocationFromTo (enum) | No | LedgerAllocationRuleEntity | |
OffsetDefaultDimensionPoints to the set of dimension values used for the offset. | Int64LedgerDefaultDimensionValueSet | No | DimensionAttributeValueSet.RecId | LedgerAllocationRuleEntity |
OffsetDimensionFromSays whether the offset dimensions come from the source or are entered by the user. | EnumLedgerAllocationFromTo (enum) | No | LedgerAllocationRuleEntity | |
OffsetLedgerDimensionPoints to the account and dimension combination used as the offset account. | Int64LedgerDimensionDefaultAccount | No | DimensionAttributeValueCombination.RecId | LedgerAllocationRuleEntity |
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 | |
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 (3)
RuleIdxPrimary indexUnique.
FK_DimensionAttributeValueCombination_LeNot unique.
FK_DimensionAttributeValueSet_LedgerAlloNot unique.
Relations (4)
Each relation joins LedgerAllocationRule to another table on the fields shown.
LedgerPeriodCode→LedgerPeriodCodeJoin on
DateInterval = LedgerPeriodCode.CodeMany LedgerAllocationRule records → zero or one LedgerPeriodCode record
OffsetDefaultDimension→DimensionAttributeValueSetJoin on
OffsetDefaultDimension = DimensionAttributeValueSet.RecIdMany LedgerAllocationRule records → zero or one DimensionAttributeValueSet record
OffsetLedgerDimension→DimensionAttributeValueCombinationJoin on
OffsetLedgerDimension = DimensionAttributeValueCombination.RecIdMany LedgerAllocationRule records → zero or one DimensionAttributeValueCombination record
LedgerJournalName→LedgerJournalNameJoin on
JournalName = LedgerJournalName.JournalNameMany LedgerAllocationRule records → zero or one LedgerJournalName record
Get this data out
Tables are not exposed directly. These public entities read from LedgerAllocationRule; use one of them in Power BI, Power Platform or a data management project.
LedgerAllocationRuleEntity· 20 fields from this table
Need help with LedgerAllocationRule in a report, an integration or a migration? Talk to Dr Dynamics.