2010 May 01 6:51 AM
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
2010 May 03 11:14 AM
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
2010 May 03 11:23 AM
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.