Salary Calculating based on Actual working hours and there after calculate Over time
When i was started my career all most 4 years back on that time i did not think so one day i would be publised my document on this site.
This is my 1st document which i am going to discuss about “postive time managment integration with payroll and salary calculation would be based on actual working hours”.
From this topic line we can easily understand that we have to calculate employee’s actual working time in the month and there after we will pass this information to Payroll section in SAP which will calculate the salary payment for the employee for that month. So it has two sections.
1st Part Time Managment Section:-
1. Calculate Actual Work time.
To find the acctual work time we will create one time types . This time type will have the day balance as well as month balance.
So in this time type we will store daily working hours through below pcr. This pcr will add after P2011 function with PTIP finction in TM00 schema.
This pcr is calculating every working day’s hours and will add to time type and accumulate in the month balance. (please add colop * after ADDDB9998).
Now to transfer the time type value to payroll we need to create a time wage type say WT5000. In the end of the month we will generate this time wage type and will move to payroll as a cumulative value. So for below pcr need to write and will insert in the schema with IF ENDIF condition of EOM.
This is upto time managment calculation part and we have generated time wage type which is stored with monthly actual working hours and it will evaluate further in payroll.
2. 2nd Part Payroll Section:-
IMPRT B2 function will bring the time wage type value to payroll and provide it in the input table in payroll. This wage type is carrying NUM value where we will change it to RTE value because we will use it to calculate in INP1 pcr modification.
Change NUM to RTE of time wage type and also calculating OT if he had worked more than schedule monthly working hours.
Insert this pcr in XT00 sub schema just before X020 standard pcr. WT 5001 is the overtime wage type and if OT wage type is generating then we can write the OT calculation pcr and insert it just after above mention pcr but before X020 standard pcr.
Now will modify INP1 pcr according to our requirement and will use WT5000 for calculation. Because it’s holding the actual working hours. In this we are taking that all basic pay infotype permissiblity wage type having processing class 10 as 9.
After done this we will modify the value pay element pcr in INAL subschema.
After that you will get the required result in your payslips.
Here, I come to the end of this knowledge sharing. Thanks for your patience to go through it. I hope with this understanding of positive time managment to payroll integration, you will be in a better position to write PCRs to achieve various integration related requirements in time managment & payroll.