10-08-2008 12:56 PM
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.
10-08-2008 1:00 PM
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
10-08-2008 12:58 PM
10-08-2008 12:58 PM
Hi,
Date is a holiday by FM HOLIDAY_CHECK_AND_GET_INFO
Regards,
Surinder
10-08-2008 1:03 PM
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.
10-08-2008 1:09 PM
Hi Sasi,
Check the below link
[http://www.sap-basis-abap.com/sapab016.htm]
Regards,
Surinder
10-08-2008 12:59 PM
10-08-2008 1:00 PM
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
10-08-2008 1:02 PM
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
10-08-2008 1:03 PM
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.
10-08-2008 1:27 PM