Hi SAP ,
You have to write a custom rule both Time and PY side and
A Common methods are compare actual times vs the work schedule IT2002, IT2011 against the the planned hours in IT0007, Then using T510S to generate the relevant overtime wage types.
Time mgt side :
1)Overtime is assigned processing type M, planned working times processing type S. Specific wage types for planned working time and overtime can then be selected on the basis of the processing type.
Processing types are S(Plnned work time) and M (OT). and query in rule VARSTVTYPE.
The function P2005 imports the overtime data (number of hours or clock times) from the OT infotype. They are written directly to TIP and assigned processing type M.
2)Determining overtime from clock times
3)Determining overtime from attendance hours (
You can use constants in table T511K (Payroll Constants), the planned working hours in the daily work schedule and so on as comparison values.)
Another factor which must be taken into account when determining overtime is the overtime approval. Here, the system checks if the employee is permitted to work overtime, and if yes, determines the number of hours permitted. This check is performed only if an overtime approval is required.
The following approval procedures can be used:
In the case of standard overtime approval, employees do not require a special approval for overtime work. Standard overtime approval can be granted on the basis of the following factors:
Payroll End :
1.Maintain Time Wagetype Selection(V_T510s).
2. Run Time evaluation. So that Time Wagetype will be sent to ZL table.
3. Main Valuation base in v_512w_b.
4. Make sure that for basic pay, Processing class 1 is maintained accordingly.
5. Run Payroll. so that Time Wagetype will be valuated.
Check the payroll log under XT00 .
There are ways in generating Overtime in SAP.
You can directly generate Overtime from Time Evaluation (PT60) and pass the entries to payroll using operation ADDZL.
If you dont want any approval process, based entries in IT2011 we can generate OT checking Processing Type M (M means Overtime) if any entries are filled with processing type these results we can directly update it to payroll.
Else one more options using T510S table.
Else if Overtime you want go with approval process , then create subtype in IT2002, as Overtime, the same can be called in ESS, employee have to apply everyday and it will go for the manager , once manager approves we can update the same to payroll.
Else you can use CATS for Overtime here also we can give options of entering Overtime Daily , Weekly, Bi-weekly. Once employee apply it will go for the approval process.Once manager approves we can update it to payroll.