We can create the elements manually or use the PayrollElementDetails.dat to load the elements using questionnaires. We only specify the base element in the PayrollElementDetails.dat and it automatically creates the related elements.
Once the elements are created, PayrollElementDefinition.dat can be used to update the attributes of the element.
Sample HDL for updating element details: PayrollElementDefinition.dat
METADATA|PayrollElementDefinition|ReportingName|ElementName|PrimaryClassificationCode|ProcessingType|LegislativeDataGroupName|EffectiveStartDate|EffectiveEndDate|InputCurrencyCode|InputCurrencyName|OutputCurrencyCode|OutputCurrencyName|ProcessOncePerPeriodFlag|ProcessInPayrollRunFlag|AssignmentLevelFlag|EarliestEntryDateCode|LatestEntryDateCode|ElementId|BalanceAdjustmentOnlyFlag|ElementCode|CalculationFormulaId|PrimaryClassificationId|ClosedForEntryFlag|DefaultingFormulaId|GrossupDuringCalculationFlag|EnableIterativeCalculationFlag|IterativeFormulaId|IterativeOrder|LegislativeDataGroupId|MultipleEntriesAllowedFlag|Priority|RetroactiveEventGroupId|SecondaryClassificationId|AutomaticEntryFlag|RelationshipLevelFlag|TermLevelFlag|AdditionalEntryAllowedFlag|ValidationFormulaId|ProrationFormulaId|CalculationFormulaCode|DefaultingFormulaCode|IterativeFormulaCode|ProrationFormulaCode|ValidationFormulaCode|SecondaryClassificationCode|ProrationGroupId|EarliestEntryDateId|LatestEntryDateId|TimeDefinitionCode|AllowFormulaResultsOnlyFlag|SkipRuleId|SkipRuleCode|FrequencyId|FrequencyCode|ProrationGroupCode|RetroactiveEventGroupCode|TimeDefinitionType|PayrollComponentId|PayrollComponentCode|DeductionOrExemption|ProcessSeparateFlag|PaySeparateFlag|SourceSystemOwner|SourceSystemId
MERGE|PayrollElementDefinition|Hourly Base Salary|Hourly Base Salary|Standard Earnings|R|AE Legislative Data Group|1951/01/01|4712/12/31|AED||AED||Y|Y|Y|FSED|LSED|||Hourly Base Salary|||N|||||||N|2500|||N|N|N|N|||#NULL|#NULL|#NULL|GLB_EARN_PRORATION|#NULL||||||||||#NULL|Entry Changes for Proration|||||||||
MERGE|PayrollElementDefinition|Hourly Base Salary Retro|Hourly Base Salary Retro|Standard Earnings|R|AE Legislative Data Group|1951/01/01|4712/12/31|AED||AED|||Y|Y|FSED|LSED|||Hourly Base Salary Retro|||N|||||||N|2500|||N|N|N|N|||#NULL|#NULL|#NULL|#NULL|#NULL||||||||||#NULL||||||||||
If you are using translation, then you might also need to use the PayrollElementDefinitionTranslation.dat to update the translation details if any.
Sample HDL file: PayrollElementDefinitionTranslation.dat
METADATA|PayrollElementDefinitionTranslation|ElementId|Language|Description|ReportingName|LegislativeDataGroupName|ElementCode|ElementName|SourceSystemOwner|SourceSystemId
MERGE|PayrollElementDefinitionTranslation||US|Hourly Base Salary|Hourly Base Salary|AE Legislative Data Group|Hourly Base Salary|Hourly Base Salary||
MERGE|PayrollElementDefinitionTranslation||US|Hourly Base Salary Retro|Hourly Base Salary Retro|AE Legislative Data Group|Hourly Base Salary Retro|Hourly Base Salary Retro||