‎2009 Nov 23 6:09 AM
Hi,
I need a function module to get the employee working times based on his work schedule rule. In infotype 7 we maintain the work schedule rule, so based on that how can i get the timings of employee ?
Regards,
Srinath
‎2009 Nov 23 6:15 AM
CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE'
EXPORTING
pernr = pernr_infotypes_tab-pernr
begda = emp_per_begda
endda = emp_per_endda
TABLES
i0000 = i0000
i0001 = i0001
i0007 = i0007
perws = l_pws_days
EXCEPTIONS
error_occured = 1
abort_occured = 2.CALL FUNCTION 'HR_WORK_SCHEDULE_TIMES'
EXPORTING
pernr = pdp-pernr
begda = p_date
endda = p_date
TABLES
i0001 = p0001
i0007 = p0007
i2003 = p2003
perws = perws
daygen = i_day_gen_info
dayint = i_day_intervals
EXCEPTIONS
error_occured = 1
perws_error = 2
OTHERS = 3.Edited by: Aeda N on Nov 23, 2009 11:46 AM