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

Need Function Module

Former Member
0 Likes
552

Hi All,

Pls tell any Function Module which gives the number of working days between 2 dates.

Thanks in advance

Vikas

4 REPLIES 4
Read only

Former Member
0 Likes
532

Hello Vikas,

You can use the following FM

CALL FUNCTION 'RKE_SELECT_FACTDAYS_FOR_PERIOD'

EXPORTING

i_datab = date1

i_datbi = date2

i_factid = 'GB'

TABLES

eth_dats = l_it_dat.

In i_factid you have to pass factory Id like for india 'IN' or some other coutnry

n pass two dates you will get only working days in between those two dates

according to that calender

Reward If Helpful

-


Sasi.

Read only

Former Member
0 Likes
532

Hi,

RKE_SELECT_FACTDAYS_FOR_PERIOD

Thanks and Best Regards,

Vikas Bittera.

Read only

Former Member
0 Likes
532

try SD_DATETIME_DIFFERENCE for date difference...

*Reward if useful

Read only

Former Member
0 Likes
532

You can use the following FM

CALL FUNCTION 'RKE_SELECT_FACTDAYS_FOR_PERIOD'

EXPORTING

i_datab = date1

i_datbi = date2

i_factid = 'GB'

TABLES

eth_dats = l_it_dat.

In i_factid you have to pass factory Id like for india 'IN' or some other coutnry

n pass two dates you will get only working days in between those two dates

according to that calender

Thanks

Seshu