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
608

Hi All,

I am trying to get the total number of holidays from my factory calendar in a month(or a given date is a holiday or not). I am getting only public holidays but not saturdays and Sundays. Because my factory calendar is designed to have Saturdays and Sundays as workdays. For example for July, I got the number of holidays as 1 because of July 4th. So how can I get the number of holidays in a month or how can I find whether a given date is a holiday or not? I am referring all this in US calendar times.

Thanks for the great help?

Sobhan.

Hi All,

I am trying to get the total number of holidays from my factory calendar in a month(or a given date is a holiday or not). I am getting only public holidays but not saturdays and Sundays. Because my factory calendar is designed to have Saturdays and Sundays as workdays. For example for July, I got the number of holidays as 1 because of July 4th. So how can I get the number of holidays in a month or how can I find whether a given date is a holiday or not? I am referring all this in US calendar times.

Thanks for the great help?

Sobhan.

3 REPLIES 3
Read only

Former Member
0 Likes
568

HI sHOBAN,

Check FM <b>

DATE_CONVERT_TO_FACTORYDATE

</b>

Read only

Former Member
0 Likes
568

hi,

u can use this function module

DATE_COMPUTE_DAY----


compute the working day ( that is 1st , 2nd ..day of the week )

this FM will compute day of the week

if the day is 6th and 7th then u say it is holiday.

if it not then check u r factory calender for the holiday.

in the same manner u can check all the days in a Month

HOLIDAY_CHECK_AND_GET_INFO -


check holidy

Read only

Former Member
0 Likes
568

hi sobhan,

check the FM HOLIDAY_GET.

hope this helps,

do reward if it helps,

priya.