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

Factory days

Former Member
0 Likes
525

Hi all,

Can anybody tell me a function module or a procedure to find out number of working days between two given dates?

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
486

You can use the function module:

K_ABC_WORKDAYS_FOR_PERIODS_GET

RKE_SELECT_FACTDAYS_FOR_PERIOD

Regards,

ravi

Read only

Former Member
0 Likes
486

hi,

CHeck for FM <b>DAYS_BETWEEN_TWO_DATES</b>

Check this thread out

Read only

0 Likes
486

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.