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: 

Factory days

Former Member
0 Kudos

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

former_member181962
Active Contributor
0 Kudos

You can use the function module:

K_ABC_WORKDAYS_FOR_PERIODS_GET

RKE_SELECT_FACTDAYS_FOR_PERIOD

Regards,

ravi

Former Member
0 Kudos

hi,

CHeck for FM <b>DAYS_BETWEEN_TWO_DATES</b>

Check this thread out

0 Kudos

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.