Showing results for 
Search instead for 
Did you mean: 

Rule to create actual worked days in a month

Former Member
0 Kudos

Hi Friends

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*8 Multiplication

NUM-E /846 Subtraction

NUM-E /845 Subtraction

NUM/8 Division

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.


Accepted Solutions (0)

Answers (2)

Answers (2)

Active Contributor
0 Kudos

Did you consider doing the calculation in Time Evaluation?

Each worked day could generate a counter (counting Working Days), and the total number of working days could be divided into months on the last day of the period (and transfered to ZL).

Former Member
0 Kudos

Hi friends

The issue is solved with changing the TASOLL to GASOLL.

Thank you all for your support.


Former Member
0 Kudos

Hi Friends

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.

Please help.

Former Member
0 Kudos

Try this in INP1 rule



RTE*8 Multiplication

RTE-TSAU** Subtraction

RTE*KGENAU Multiplication


RTE/8 Division

ADDWTI 5000 OT Output table