Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Re: Employee Wise and week Wise data

$
0
0

You can get it using the above FMs.

 

First get all personnel numbers in a table and then loop through the table to get employee data for each pernr.

 

Use HRAR_GET_PAYROLL_PERIOD'  to get the time period, Check if the start date and end date of the week, are in the same period, else get time cluster data for both the payroll periods.


'HR_TIME_RESULTS_GET' will get the time cluster data for that month based on the period obtained from the above FM..



This will have time data for all days of the payroll period period.


Get the required data from zes internal table in the output of the above FM>


Move data from zes to another  table with an additional field - date, find the date correspoding to each relative day using the logic I have mentioned above. t549q table will give the date for relative day 01 for that period. With that you can find the dates of all other days.


Next is filtering data. Just delete all data outside the week required.


You have the required data.


Loop through the table for overtime hours time type and calculate the total overtime hours for that week for that employee.


Viewing all articles
Browse latest Browse all 9129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>