Sunday not being considered as a regular working day
The requirement for work schedules is that there are no Saturdays and Sundays, just a 6th day/Day-off and 7th day/Rest day. My employee's planned working time is from Sunday to Thursday, with Friday and Saturday as 6th and 7th day, respectively. However, when I test my employee for overtime rendered on a Sunday (which should be considered as a regular working day), there is no OT calculated for Sunday. The daily work schedule for Sunday can be seen in the employee's PSP table, but no OT time wage type is generated in the table ZL.
You can check Day Type selection rule - perhaps it is such that for Holiday class blank on a Sunday, day type 1 is selected.
You can either change the day type selection rule, or for this particular employee, you can enter substitution record on a Sunday as a day type "blank". Then Time Eval should calculate OT as if it is a normal working day.
Another alternative is in the schema you can include a rule, which checks if employee is at work in Sunday and give the DAYPG as paid working day.
Essentially, I think it is because of the day type you are facing problems and there a re a few ways to solve this.
But I have configured the day type selection rule for Sunday which is the same for the weekdays and Saturday, that is all 1 for holiday class 1 to 9 and holiday class b is blank. If I fix the problem through the schema, where in the schema and what kind of a condition should I set up? I'm very familiar with PY schemas and rules, but I have to admit that I am not too knowledgeable about Time Mgt.
I sure hope that you can help me because this problem has been giving me a big headache for the past few days.
I sure hope that you can help me because this problem has been giving me a big headache for the past few days.
On a re-reading of your problem, I see that you have stated that the Wage type is not being generated in the table ZL - Maybe you should relook at your wage type selection rule table t510s. Here also you set the conditions of the day for which the wage type is applicable - whether you have set that it is ok for wage type to be generated on Sunday?
Also check what you have set for the function DAYMO in schema TM00 - DAYMO has 4 parameters - the second and fourth are for Sundays - based on what you put here, schema will read corresponding rule from table T510S. Is there a corresponding rule for Sunday in T510s????
I am giving below the place where the dws is changed iin the schema, but you can try that as a last resort if the above config is not working out.
----------------
BLOCK BEG Provide time data
IF NOT SIMF No simulation for future periods
PERT TD20 Evaluate errors from pair format
P2011 Provide time pairs and daily WS
ACTIO TD10 End if daily work schedule still
A2003 Process work center substitution
ACTIO TD60 AB Convert daily WS if RWH and leav
P2001 Provide absence data of the day
P2002 Provide attendance data of the d
PTIP TD80 GEN Process absence/attendance reaso
ACTIO TD90 Process generated locked records
P2005 * Provide overtime data of the day
PTIP TD40 GEN * Set PTYPE/TTYPE for overtime
ACTIO TD30 Dynamic DWS assignment: Clock-in
----------
I have pasted the xtract of TM00 above - Just after we have imported the planned working times and actual working times, there is the line ACTIO TD60 - please have a look at rule TD60 -
----------------
BLOCK BEG Provide time data
IF NOT SIMF No simulation for future periods
PERT TD20 Evaluate errors from pair format
P2011 Provide time pairs and daily WS
ACTIO TD10 End if daily work schedule still
A2003 Process work center substitution
ACTIO TD60 AB Convert daily WS if RWH and leav
P2001 Provide absence data of the day
P2002 Provide attendance data of the d
PTIP TD80 GEN Process absence/attendance reaso
ACTIO TD90 Process generated locked records
P2005 * Provide overtime data of the day
PTIP TD40 GEN * Set PTYPE/TTYPE for overtime
ACTIO TD30 Dynamic DWS assignment: Clock-in
----------
I have pasted the xtract of TM00 above - Just after we have imported the planned working times and actual working times, there is the line ACTIO TD60 - please have a look at rule TD60 -
You can make a copy of this rule, with your own requirements - Rule TD60 checks if there is a leave and changes the DWS for that day. Pl look up the documentation for the operation DAYPG.
You are so good!!!!
It was the day grouping settings at the function DAYMO in the schema that did the trick. I copied the line and placed all 01 in the parameters. Finally, overtime wage types for Sunday are being generated and can be seen in the ZL table.
Thank you very, very much! You have saved me more sleepless nights!
It was the day grouping settings at the function DAYMO in the schema that did the trick. I copied the line and placed all 01 in the parameters. Finally, overtime wage types for Sunday are being generated and can be seen in the ZL table.
Thank you very, very much! You have saved me more sleepless nights!
No comments:
Post a Comment