Hi Sven
On the face, your solution seems to be cool and simpler than the one I used for a similar requirement that I solved for one of my customers. (IMPRT function code seemed to be too complex for me.)
1)Scenario:
1.1)Shift workers are paid shift penalty for their work outside of normal day time workers, hours; i.e., before 10 midnight to 6am - rate 1, 6am to 9am - rate 2, 5pm to 10pm rate 3. Hence there are 3 wage types for these 3 rates. Correspondingly, time eval schema generates these w/t's.
1.2)The employees are paid fortnightly - Friday to next fortnight Thursday.
2)Requirement:
2.1)Shift penalties of Monday to Thursday of pay week are to be paid in the following pay period.
3)My solution
3.1)Table/view Config:
3.1.1)Copy normal shift penalty w/t's as Yxxx. See further below
3.1.2)In V_T51P3 - create an Ind.for wage type assignment to link the normal shift pen w/t's to Yxxx.
3.1.3)In V_T51P1 - link normal shift pen w/t's to Yxxx.
3.2)Time eval schema: copy the normal w/t's generated, based on the day of the week and whether it was a pay week, to Yxxx.
3.3)Payroll schema:
3.3.1)Process last period's RT and copy the Yxxx w/t's to the normal shift pen w/t's - using R51P1 and the new Ind.for wage type assignment.
3.3.2)Yxxx w/t's: Just output to RT and no other process. (these w/t's config was accordingly changed)
.br, JG