Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

find time that employee work during the month

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

Tags:
Former Member
replied

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

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question