Application Development 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: 

ABAP HR- calculation of workind days (excluding weekend) for an employee

Former Member
0 Kudos
147

Hi,

I need to get number of working days between two dates excluding weekends for an employee. Please let me know below questions in this regard:

1. I have to use Factory calender or holiday calender for this purpose?

2. Will FM RKE_SELECT_FACTDAYS_FOR_PERIOD solve this purpose ?

Regards,

Aleria

2 REPLIES 2

Former Member
0 Kudos
69

Hi Aleria,

Use the FM DAY_ATTRIBUTES_GET in this FM pass the holiday and factory calendar of the employee along with the period. In the output structure if free day is set then it is SAT/SUN and if holiday is set then it is Public holiday marked in the calendar.

Regards

Bala

kesavadas_thekkillath
Active Contributor
0 Kudos
69

Hi RKE_SELECT_FACTDAYS_FOR_PERIOD can be used

just pass the factory calendar and the date range.

The count of the internal table records is your working days.