2006 Jul 12 12:12 PM
Hi all,
Can anybody tell me a function module or a procedure to find out number of working days between two given dates?
Thanks
Hi all,
Can anybody tell me a function module or a procedure to find out number of working days between two given dates?
Thanks
2006 Jul 12 12:14 PM
You can use the function module:
K_ABC_WORKDAYS_FOR_PERIODS_GET
RKE_SELECT_FACTDAYS_FOR_PERIOD
Regards,
ravi
2006 Jul 12 12:14 PM
2006 Jul 12 12:19 PM
parameters: p_start type sy-datum,
p_end type sy-datum.
data: idays type table of rke_dat with header line.
data: workingdays type i.
call function 'RKE_SELECT_FACTDAYS_FOR_PERIOD'
exporting
i_datab = p_start
i_datbi = p_end
i_factid = 'P8' " Fact Calender ID
tables
eth_dats = idays
exceptions
date_conversion_error = 1
others = 2.
describe table idays lines workingdays.
write:/ workingdays.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |