Table

PayrollBenefitAccountingRule

Benefit accounting rule

Sets the main account used for a benefit plan, by legal entity and payroll type (contribution or deduction). The key is those three values together.

Table name
PayrollBenefitAccountingRule
Module
Payroll
Table group
Reference
Table type
Regular
Data per company
No
Configuration key
HRMAdministrationPayrollInfo
Primary index
None
Replacement key
PayrollBenefitAccountingRuleIdx_AK1
Key fields
BenefitPlan, LegalEntity, PayrollType
Model
Foundation

Fields (8)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BenefitPlanPoints to the benefit plan record.Int64
HcmBenefitPlanRecId
YesHcmBenefitPlan.RecIdPayrollBenefitAccountingRuleEntity
LegalEntityPoints to the legal entity record.Int64
CompanyInfoRecId
YesCompanyInfo.RecIdPayrollBenefitAccountingRuleEntity
PayrollTypeSays whether the rule is for a contribution or a deduction.Enum
PayrollType (enum)
YesPayrollBenefitAccountingRuleEntity
LedgerDimensionThe main account, stored as a dimension code combination record.Int64
LedgerDimensionDefaultAccount
YesDimensionAttributeValueCombination.RecIdPayrollBenefitAccountingRuleEntity
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
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (3)

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

  • CompanyInfo → CompanyInfo

    Join on LegalEntity = CompanyInfo.RecId

    Many PayrollBenefitAccountingRule records → exactly one CompanyInfo record

  • DimensionAttributeValueCombination → DimensionAttributeValueCombination

    Join on LedgerDimension = DimensionAttributeValueCombination.RecId

    Many PayrollBenefitAccountingRule records → exactly one DimensionAttributeValueCombination record

  • HcmBenefitPlan → HcmBenefitPlan

    Join on BenefitPlan = HcmBenefitPlan.RecId

    Many PayrollBenefitAccountingRule records → exactly one HcmBenefitPlan record

Get this data out

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

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

Email sales@drdynamics.co.uk