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 Calendar

Former Member
0 Likes
1,130

is there any function module to find out no of workings days for a given date range of factory calendar

4 REPLIES 4
Read only

Former Member
0 Likes
547

use the below fm

call function 'RKE_SELECT_FACTDAYS_FOR_PERIOD'

exporting

i_datab = starting date

i_datbi = ending date

i_factid = 'US'

tables

eth_dats = it_eth_dats.

=================================================

Sol 2:

Message was edited by: Eswar Kanakanti

Read only

Former Member
0 Likes
547

Hi,

You need to use this FM <b>DATE_CHECK_WORKINGDAY</b>

, loop the date range and call the FM , if sy-subrc = 0.increase the counter,

and show the no of working days days after loop..

Regards

vijay

Read only

Former Member
0 Likes
547

hi,

Use FM <b>Holiday_Get</b>, you get the list of holidays. you can then subtract that from total no of days to get the working days.

Regards,

Sailaja.

Read only

MariaJooRocha
Contributor
0 Likes
547

Hi,

Try FM 'DATE_CONVERT_TO_FACTORYDATE' Returns factory calendar date for a date. This FM as documentation.

I'm on 4.6c

Best reagards,

Maria João Rocha