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: 

Need to find Holidays and Day

Former Member
0 Kudos

Hello All,

I have the PLANT and DATE.

With these details how can I find

1. DATE is a holiday?

2. DATE is which day(Mon, Tue,..., Sun)?

Good answers will be appreciated.

Thanks in advance.

Best Regards,

Sasidhar Reddy Matli.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

The function module DAY_IN_WEEK will give you the day and

DATE_CHECK_WORKINGDAY will tell you if the date is a working day (based on a factory calendar - the plant doesn't come into it).

Darren

9 REPLIES 9

Former Member
0 Kudos

Hi,

Date is which date??

Fm : RH_GET_DATE_DAYNAME

Regards,

Surinder

Former Member
0 Kudos

Hi,

Date is a holiday by FM HOLIDAY_CHECK_AND_GET_INFO

Regards,

Surinder

0 Kudos

Hello Surinder,

For the function Module which you suggested for holidays I need to have the Holiday Calender ID. How to get that?

I can get the Factory calender using the Function Module CY_READ_T001W providing PLANT.

Best Regards,

Sasidhar Reddy Matli.

0 Kudos

Hi Sasi,

Check the below link

[http://www.sap-basis-abap.com/sapab016.htm]

Regards,

Surinder

Former Member
0 Kudos

Check this FM

CHECK_HOLIDAY

Former Member
0 Kudos

Hi,

The function module DAY_IN_WEEK will give you the day and

DATE_CHECK_WORKINGDAY will tell you if the date is a working day (based on a factory calendar - the plant doesn't come into it).

Darren

raymond_giuseppi
Active Contributor
0 Kudos

Try function module [DATE_CONVERT_TO_FACTORYDATE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=date_convert_to_factorydate&adv=false&sortby=cm_rnd_rankvalue] or [HOLIDAY_CHECK_AND_GET_INFO|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=holiday_check_and_get_info&adv=false&sortby=cm_rnd_rankvalue] the factory calendar comes from table T001W.

Regards

Former Member
0 Kudos

HI

Use this function module to check weather today is holiday or not

BKK_GET_PRIOR_WORKDAY.

Pass today date to the function module if you get the same day as output then today is not holiday.

To get the name of the day use FM RH_GET_DATE_DAYNAME. Pass Langauge and Date to this FM.

Former Member
0 Kudos

I got the solution.

Thanks for your replies.