Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Need Function Module for HR WorkSchedule Rule

Former Member
0 Likes
3,431

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

1 REPLY 1
Read only

NAeda
Contributor
0 Likes
1,238
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