11-23-2007 5:43 PM
hallow,
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?
example
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).
Regards
11-23-2007 10:56 PM
Hi,
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.
Regards,
Ferry Lianto
11-23-2007 6:14 PM
There are various factors which decide working hours of an EE.
1. Workschdule rules as per infotype 7.
2. Calendar holidays
3. Non-working Days like Weekends etc
4. Absences in infotype 2001.
ETC...
I am sure what all you use in your system.
Amandeep
11-23-2007 6:23 PM
Hi Tal,
Time management and Payroll are integrated in ways are time data is collected from the <b>info type 0007 </b>and these hours are taken in basic as Number of hours worked or utilized, and even with time evaluation and last with schemas integration.
X000 schema carries xt00 and these data can be transfered between other modules.
TIME evaluation shows the exact details maintained over to the employee through<b> 2006 and 2001 info types</b>. If they are all allowed to take leave it shows leave as paid or unpaid depending on the configuration done by the consultant for these situation. In
processing time data in payroll or even Time evaluation ( Valuation of absences ) also.
Thanks,
Vinay
11-23-2007 9:19 PM
hi
i need Fm for holidays and weekends maybe someone can help with that?
Regards
11-23-2007 9:25 PM
11-23-2007 10:56 PM
Hi,
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.
Regards,
Ferry Lianto
11-24-2007 12:00 AM