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: 

How to get the holiday list

Former Member
0 Kudos

Hi Gurus ,

I have to create a program that has to retrieve daya for the last day of the previous month from the database. Now the conditions are that if the last day for example is 31st falls on a Saturday or Sunday or a holiday then the day previous to that should be chosen and so on . I have implemented the logic to choose fridays in case of the last day falling on a weekend , but I am not able to check for the holidays.( National public)

Any clues on how to bring in the holiday list into my program ...

Thank you

Edited by: Krish M on Jan 5, 2009 10:13 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Check this thread to see if you got hints

Liang

4 REPLIES 4

amit_khare
Active Contributor
0 Kudos

There is a Factory calendar, I dont remember the name which directly gives the last working day of the month. Check in Tcode SCAL other wise search forum you will get lots of replies for the same query.

Former Member
0 Kudos

See if table THOCS is maintained.

Rob

Former Member
0 Kudos

Check this thread to see if you got hints

Liang

nkr1shna
Contributor
0 Kudos

Hi Krish,

Consider using FM HOLIDAY_GET , which will provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.

Best Regards,

Krishna