I have a situation here. I have created a wage type 5000 to get the actual worked days in a month and I have written a rule as well. Please find the rule below
ZD10 Calculate worked days
NUM-E /846 Subtraction
NUM-E /845 Subtraction
ADDWTE5000 RT Results table
I am checking the working days in a month and multiplying the same with 8 as the Total paid non-work(/845) and Total unpaid absences(/846) are formed in hours. This is perfectly working for me , but the problem is occurring when any retro happens, for eg: an employee had unpaid leave for the previous month and we updated the same and performed the payroll run for the current month. The system is creating wage type 5000 with the actual working days for that period and the remaining its showing for the current period.
Please find the scenario below
In April, an employee had unpaid leave for 8 days and this was updated later during the current month payroll, so when we process the payroll, the retro is checking for the working days (25 days) and deducting 8 days which is absolutely right and shows 17 days for the month of April(Retro).
For the month of May, there are 26 working days, but the wage type 5000 is created with only 9 days. This is wrong. We would like to have the wage type created with 26 days as there are no unpaid absence or paid working days in that month.
Friends please help.
The problem we are facing now is not with respect to retro, but there is a split happening in Org Assignment infotype, so the records are getting splitted to 01.05.2010 to 14.05.2010 and 15.05.2010 to 31.05.2010. The rule is picking only the last 15 days from PARTT table .
Under PARTT, while processing the below two values are forming in the following nodes.
Planned values for WPBP period 01 TASOLL (12 days)
Planned values for WPBP period 02 TASOLL (15 days)
Friends, please let me know any functions which i can use in my rule to fetch the two periods 01 and 02 and combine it and use it my rule.