Pay Run Data Export: How to report earnings by work date when a pay period spans two months?
Hi everyone,
I am building a monthly export using the Pay Run Data Export (export definition XML with Pay Run and HR Export tokens, plus an XSLT to format the output file). The export runs per pay run.
Requirement:
The output file must report earnings, hours and deductions by calendar month based on the work date, not the full pay period. When a pay period spans two months, only the portion with work dates in the reporting month should be included, and the other portion is reported in the other month's file.
For example:
* Pay frequency: Bi-weekly
* Pay period: Sunday 01/25/2026 to Saturday 02/07/2026
* Pay date: 02/13/2026
* Employee works 8 hours per day, Monday to Friday, at $25/hour
* Regular earnings in this pay run: 80 hours, $2,000.00
* Retirement deduction (5%): $100.00
What the export currently returns (payrun_earning_current_REG / payrun_earninghours_current_REG): 80 hours, $2,000.00 for the whole pay period.
What I need:
* January file: work dates 01/26 to 01/30 = 40 hours, $1,000.00, deduction $50.00
* February file: work dates 02/02 to 02/06 = 40 hours, $1,000.00, deduction $50.00
What I have tried
1. payrun_earning_current_{code} and payrun_earninghours_current_{code}: return the full pay period totals.
2. payrollearning_xrefcode, payrollearning_weekstart, payrollearning_weekend and payrollearning_weeknumber: rows are returned per earning code, but the week start, week end and week number values are blank.
3. I am aware of the mtd scope and the {Accumulation Period XrefCode} scope for earning group and deduction tokens, but I am not sure whether they are based on work date or pay date.
Questions:
1. Is there any token or setting in the Pay Run Data Export (or HR Export tokens supported in it) that returns earnings, hours or deductions by work date or by date range within a pay period?
2. Under what conditions do the payrollearning_weekstart / weekend / weeknumber tokens return values? Can they be used to split earnings by week?
3. Can a custom accumulation period (with earning group and deduction tokens) be configured to accumulate by work date for a calendar month? If yes, how should it be set up?
4. Does the mtd scope use the pay date, pay period end date or work date?
5. If this is not possible in the Pay Run Data Export, what approach would you recommend (another export type, a report, or a payroll configuration option)?
Request you to please guide me regarding the same. Any suggestions would be appreciated.
