find time that employee work during the month
i have problem that i have to find how much time employee work during the month but i have to consider month with holidays and so on what is the best way to do that?
if the standard hour for month is 180 hours and employee work just half month i wont to find the relative part of employee working in this month with consider the calendar of this moth (4 or 5 Sunday or more holidays).
Ferry Lianto replied
Please try this.
Data: it_ptpsp like ptpsp occurs 0 with header line. CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' EXPORTING pernr = p_pernr "enter pernr begda = v_nextdt "enter date endda = v_nextdt "enter date TABLES perws = it_ptpsp. if it_ptpsp-tprog = 'WOFF'. * it is a week off. endif.
Also it_ptpsp-ftkla is known for public holiday class.