Sorting of Public Holidays
Hi,
In the IDES 02(release 4.7), there are filtering options for public holidays along certain criteria like "Public Holiday","Short text", etc. Strangely there seems to be no option to sort public holidays along the criteria "Holiday type" (ex: 'fixed date' holiday or 'movable' holiday).
Is there a way to sort along the "Holiday type" criteria?
One possible way is to sort all holidays(while creating public holidays) by differentiating with a 'sort criterion' (say 1 for fixed date holidays, 2 for movable holidays, etc) as all 'holiday types' have the 'sort criterion' under 'public holiday attributes'.
Is there any other direct way for sorting along 'holiday type' criteria?
Vj
Hi
As far as i know there is no sort option at Holiday type level.
May be a custom programming should help if you are looking for a report.
Brs
Kenu
Similar Messages
-
Dear All,
I want to Maintain Public Holiday Calender with the below holidays in ECC 6.Suggest me
1. REPUBLIC DAY SATURDAY 26.01.2008
2. MAHASHIVRATRI THURSDAY 06.03.2008
3. HOLIKA DAHAN SATURDAY 22.03.2008
4. RAM NAVAMI MONDAY 14.04.2008
5. INDEPENDENCE DAY FRIDAY 15.08.2008
6. RAKSHABANDHAN SATURDAY 16.08.2008
7. GANDHI JAYANTI THURSDAY 02.10.2008
8. DUSSEHRA THURSDAY 09.10.2008
9. DIWALI TUESDAY 28.10.2008
10. GOVERDHAN POOJA WEDNESDAY
29.10.2008
Thanks,
AlamGo to SCAL t code
1. Double-click with the mouse on the Execute symbol, select the option Public holidays and choose the function Display.
2. Check whether the list of public holidays displayed contains all the public holidays that you need.
If you want to see detailed information on any public holiday, choose the function Display def.
3. If you need other public holidays, return to the initial screen of the maintenance transaction, and choose the function Change.
4. Choose the function Insert, and now make the following entries:
Public holiday type
Date or calculation rule
Public holiday text (short and long)
If required: Sort criterion, religious denomination or public holiday class (for notes on this, press the F1 Help).
Save the definition. -
Eliminating Weekends and user defined public holidays.
Hi, This is my query to date:
WITH cla_case AS
( SELECT 1 event_no, to_date('01/10/2011','dd/mm/yyyy') discover_date, to_date('02/10/2011','dd/mm/yyyy') notification_date from dual union all
SELECT 2 event_no, to_date('02/10/2011','dd/mm/yyyy') discover_date, to_date('03/10/2011','dd/mm/yyyy') notification_date from dual union all
SELECT 3 event_no, to_date('03/10/2011','dd/mm/yyyy') discover_date, to_date('04/10/2011','dd/mm/yyyy') notification_date from dual
cla_event AS
( SELECT 1 event_no, to_date('02/10/2011','dd/mm/yyyy') incident_date from dual union all
SELECT 2 event_no, to_date('02/10/2011','dd/mm/yyyy') incident_date from dual union all
SELECT 3 event_no, to_date('03/10/2011','dd/mm/yyyy') incident_date from dual
SELECT
round(cc.notification_date - GREATEST(cc.discover_date,ce.incident_date)) Days_To_Report
FROM
cla_case cc,
cla_event ce
WHERE
cc.cla_event_no = ce.cla_event_no
Problem is that I need to firstly eliminate weekends and then public holidays. I have read about creating a calendar where you list the public holidays but I have no idea how to do that.
Here is the link for the South African public Holidays: http://www.blaauwberg.net/public_holidays.php This is for 2010 - 2012. I'll need as far back as 2008 but I can find that info at a later stage.
Thanks!
Banner:
Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production"
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production@ Bravid
I added the following to the non_working_days table:
--2008 Public Holidays
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('01-JAN-2008 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('21-MAR-2008 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('24-MAR-2008 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('28-APR-2008 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('01-MAY-2008 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('16-JUN-2008 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('24-SEP-2008 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('16-DEC-2008 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('25-DEC-2008 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('26-DEC-2008 00.00', 'Public_Holiday')
--2009 Public Holidays
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('01-JAN-2009 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('10-APR-2009 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('13-APR-2009 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('27-APR-2009 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('01-MAY-2009 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('16-JUN-2009 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('10-AUG-2009 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('24-SEP-2009 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('16-DEC-2009 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('25-DEC-2009 00.00', 'Public_Holiday')
--2010 Public Holidays
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('01-JAN-2010 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('22-MAR-2010 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('02-APR-2010 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('05-APR-2010 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('27-APR-2010 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('16-JUN-2010 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('09-AUG-2010 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('24-SEP-2010 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('16-DEC-2010 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('27-DEC-2010 00.00', 'Public_Holiday')
--2011 Public Holidays
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('21-MAR-2011 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('22-APR-2011 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('25-APR-2011 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('27-APR-2011 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('02-MAY-2011 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('18-MAY-2011 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('16-JUN-2011 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('09-AUG-2011 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('16-DEC-2011 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('26-DEC-2011 00.00', 'Public_Holiday')
--2012 Public Holidays
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('02-JAN-2012 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('21-MAR-2012 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('06-APR-2012 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('09-APR-2012 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('27-APR-2012 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('01-MAY-2012 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('09-AUG-2012 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('24-SEP-2012 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('17-DEC-2012 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('25-DEC-2012 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('26-DEC-2012 00.00', 'Public_Holiday')
--2013 Public Holidays
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('01-JAN-2013 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('21-MAR-2013 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('29-MAR-2013 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('01-APR-2013 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('01-MAY-2013 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('17-JUN-2013 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('09-AUG-2013 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('24-SEP-2013 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('16-DEC-2013 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('25-DEC-2013 00.00', 'Public_Holiday')
INSERT INTO non_working_days (DAY, DAY_TYPE) VALUES ('26-DEC-2013 00.00', 'Public_Holiday')
However when I run your query it doesn't register the dates that I have inserted into the non_working_days table.
I suspect I have to make some sort of alteration to:
non_working_days AS
( SELECT NEXT_DAY(TO_DATE('01/01/2008','DD/MM/YYYY') + 7 * (rownum -1),'SATURDAY') day, 'WEEKEND' day_type FROM dual connect by level <=500 UNION ALL
SELECT NEXT_DAY(TO_DATE('01/01/2008','DD/MM/YYYY') + 7 * (rownum -1),'SUNDAY') day,'WEEKEND' day_type FROM dual connect by level <=500
However as a SQL beginner I'm not sure how to do this to incorporate my values.
Please advise. Thank-you VERY MUCH!!!!!! -
Public Holiday calendar not to be taken into account for Sick Leave
Dear All,
I need help.
Public Holiday calendar not to be taken into account for Sick Leave.
Eg -When I employee applies for sick leave, the public holiday in between the dates shouldnt be considered. How can I configure this requirement.
Please help.
Regards,
PoornimaFor that group, you need 2 counting rules:
- one for Holiday Class 0 (not a public holiday) and Day Work Schedule Class 0 (not a working day)
- one for Holiday Class 0 (not a public holiday) and Day Work Schedule Class 1 to 9 (a working day)
If you want, you can add an other one or two for Holiday Class 1 to 9 (public holiday)
extract from our T556C
2 1 10 Q 10 Sick leave deduct from quotas (incl personal/spec) XXXXX X X XXXXXXXXXX XXXXXXXXX X X XX XX 100.00 100.00 1 1 10
2 1 10 Q 11 Sick leave deduct from quotas (incl personal/spec) XXXXX X X XXXXXXXXXX X X X XX XX 0.00 0.00 1 1 10
2 1 30 Q 10 Special leave with pay (with quotas deduction) XXXXX X X XXXXXXXXXX XXXXXXXXX X X XX XX 100.00 100.00 1 1 30
2 1 30 Q 11 Special leave with pay (with quotas deduction) XXXXX X X XXXXXXXXXX X X X XX XX 0.00 0.00 1 1 30 -
iPad 2 with iOS 7.01 After the last backup to Icloud, unrequested by me, my calendar has been filled with public holidays of the UK which there doesn't seem to be any way of deleting. Also, I have been trying to delete a birthday from the calendar for months, this time using all variations of 'delete' and it keeps popping up again!
Are you also restoring from your backup? That sounds like what is happening or someone else has your Apple ID.
A backup to iCloud would have no way to add UK holidays to your calendar. Open Calendar, tap on Calendars at the bottom middle of the page and untick the ones you don't want. -
Error while accessing public holiday calendar
Friends,
Well when creating a work schedule for the year 2008 (practice mode - at home) i am getting the below message..
I checked all the configurations and no where i mention about 2009. Any tips and suggestions.
Error while accessing public holiday calendar
The function module HOLIDAY_CHECK_AND_GET)INFO has generated an errorfriends the problem still exists..
i created a new calender, new dws, pws, bws.. but again the same error comes in play.
Friends,
Well when creating a work schedule for the year 2008 (practice mode - at home) i am getting the below message..
I checked all the configurations and no where i mention about 2009. Any tips and suggestions.
Error while accessing public holiday calendar on 20090101
The function module HOLIDAY_CHECK_AND_GET)INFO has generated an error -
Error while accessing public holiday calendar on 20120101
Dear All,
When I'm posting PL(Personnel Leave) against 31.12.2011 it is working fine but If I'm posting a Sick Leave against 31.12.2011 or CB the error is coming like "Error while accessing public holiday calendar on 20120101".
Please suggest what to do.Dear All,
When I'm posting PL(Personnel Leave) against 31.12.2011
it is working fine but If I'm posting a Sick Leave against 31.12.2011 or
CB the error is coming like "Error while accessing public holiday calendar on 20120101".
Please suggest what to do.
the error clearly saying that you dont have holiday calendar for 01.01.2012,, so please change it using PT02 to avoid the error.
then you check what exactly system is doing.
you have to create a wsr with one month extra validity than the exact periods required to avoid the future errors as you are getting now.
system always takes one month extra validity it is standard functionality.
regards,
mohammed -
Error while accessing public holiday calendar on 20100101
Dear Gurus.
When i was created Work Schedule TC-PT01
Error Showing
"Error while accessing public holiday calendar on 20100101"
Message no. P2518
Diagnosis
The function module HOLIDAY_CHECK_AND_GET_INFO has generated an error.
Please Advised
Regards
MHPOHi
As Surisetti told that, that public holiday might not created in that year. So check the same in SCAL and again re-generate the work schedule.
Thanks & Regards
Bharathi -
Function Module for getting public holidays between two dates
Dear Freinds,
I want a function module which checks a day is public holiday or not based on the "HOLIDAY CALENDAR ID", i have
found a function moudule('DATE_CHECK_WORKINGDAY') which checks a holiday or not but based on Factory Calender id,
so could any one please let me know how can i get a day is a public holiday or not based on "HOLIDAY CALENDAR ID".
regards
divya.Hi,
Use HR_FORMS_READ_HOLIDAYS.
pass calendar id, begin date, end date, holiday date.
it will fetch the text of holiday... u can put a check that if the text fetched in initial then the holiday date u have passed is not a holiday..
hope it helps -
Public Holiday text not displaying in PT03 (Special Days)
Hi Experts,
For my client, I have to configure a public holiday and restrict it to only few WSRs. This public holiday is not part of any public holiday calendar. I have configured this holiday as a special day by defining the day type selection rule & special day.
When I checked the work schedule in PT03, it is not displaying the holiday class and the text of the public holiday. It is only displaying the day type for this day.
Please help.
Many Thanks for your help in advance.
Warm Rgds,
Arun.MqPane = new JScrollPane(qTextArea);
qPane.add(qTextArea);
performedOpsPane = new JScrollPane(performedOpsTextArea);
performedOpsPane.add(performedOpsTextArea);
logPane = new JScrollPane();
logPane.add(logTextArea); When you create a scrolled component, you either pass the component to the JScrollPane constructor or add it afterward, not both. If you're going to add it afterward, you use the setViewportView() method, not add(). -
What's report name show list of public holiday?
Dear all,
I want to view the list of public holiday on production system. Please help me to view this.
Thanks for your susports.
Huyen NguyenHi Dude,
We have a Function Moudule to get the details of public hoilday...
HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the
date is a holiday by checking the parameter HOLIDAY_FOUND.
Example: HOLIDAY_CHECK_AND_GET_INFO
data: ld_date like scal-datum default sy-datum,
lc_holiday_cal_id like scal-hcalid default u2018CAu2019,
ltab_holiday_attributes like thol occurs 0 with header line,
lc_holiday_found like scal-indicator.
CALL FUNCTION u2018HOLIDAY_CHECK_AND_GET_INFOu2019
EXPORTING
date = ld_date
holiday_calendar_id = lc_holiday_cal_id
WITH_HOLIDAY_ATTRIBUTES = u2018Xu2019
IMPORTING
HOLIDAY_FOUND = lc_holiday_found
tables
holiday_attributes = ltab_holiday_attributes
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
HOLIDAY_CALENDAR_ID_MISSING = 5
HOLIDAY_CALENDAR_NOT_FOUND = 6
OTHERS = 7.
if sy-subrc = 0 and
lc_holiday_found = u2018Xu2019.
write: / ld_date, u2018is a holidayu2019.
else.
write: / ld_date, u2018is not a holiday, or there was an error calling the functionu2019.
endif.
Checking dates
DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems. -
How to calculate days between 2 dates excluding public holidays over SAP ?
Hi
Have a universe over SAP data. Trying to calculate days between 2 dates. SAP holds Public Holiday data in various tables e.g Thol and data is updated via scal. Using my univeres as a source I want to run reports for different countries so need to have various bank holidays not just UK. In SAP function modules handle this. Has anyone designed a solution to cater for this situation in a universe ?
Thanks in advance
MHi,
I assume you mean SAP R/3 (ECC) when you write SAP and SAP BW.
Are you using BW? If so, I would load the data into SAP BW, create a query using customer exit variables and build your universe on top of that...
-J -
How do you un-sync public holidays in icalender
I sync my icalander to public holidays but despite my time zone in settings as Auckland NZ I get the Canadian public holidays all through my icalendar.
Can anyone help me undo this?
EmmieNot sure if you got rid of it but I found this way.
I was also plagued by this holiday sampler. Not sure why I downloaded it, probably because it was free.
Open iTunes, scroll down to the bottom and find "Purchased" under the features tab.
Scroll through the albums until you find "iTunes Holiday Sampler", hover over it and click the little "x" that appears, then click "hide" when the dialogue box appears. Then sync your iPhone/pad/pod, anything else that had the sampler on it. -
Public Holiday Class field in IDOC WORKSCHED_WITH_COST
Hi Experts,
Good day..!
Well we are working on a integration project between external rostering system & CATS.
As part of the integration we are supposed to send Work Schedules (Planned hours) from external system to Cats.
On investigation we found IDOC WORKSCHED_WITH_COST which suffice the purpose.
But this IDOC doesn't have any field for Public holiday class. its having only Day type.
Where as in Infotype 2003 we could see both the fields.
Can somebody let me if I am missing something here, do we need to do any enhancements how...?
We are on
SAP ECC 6.0
SAP_HR 604 0037 Human Resources
Your help is well appriciated,
Thanks in advance,
SaiHi All,
We somehow tried to convience business.
What we would like to do to eliminate the fuzz of Holiday Class field is , We will process data directly to IT2003 skipping CATS as they dont use Substitutions other than for HR.
We are thing of doing as below
Insert: HR_INFOTYPE_OPERATION will use this.
Delete / Reversal: HR_INFOTYPE_OPERATION with del option this is where I doubt about. do we have any option of reversal ...? or do we need to delete the record.
Will create a BAPI & IDOC respectively.
Please suggest if this apporoach is fine as I have no clue with HR dependencies.
Cheers,
Sai -
Year 2009 Malaysia Public Holidays set wrongly in SAP calendar Time Mgmt
Dear Guru,
I have a scenario that the Year 2009 Malaysia Public Holidays for Hari Raya Day 1 and Hari Raya Day 2 has set wrongly in SAP calendar Time Management.
Seeking your advice how do I change the Public Holiday dates in the SAP calendar to retify the discrepancy. From TCode:SCAL > SAP Calendar Main Menu > _____
Many thanks.
Wai ChengHi,
Please go to SCAL and then Public Holidays and then change and then inside the screen select the public holidays that have been wrongly assigned and then click on change now ur public holidays class and rest details comes up so change as per ur requirement.
Let us know if u have any doubts further
Thanks
Swati
Maybe you are looking for
-
Upload a .xls file in web dynpro abap
Hello, I want to upload a .xls file into a internal table in web dynpro abap (Netweaver 7.31). The file is not delimited, is not an csv file. In my view I have an fileUpload UI Element with the attribute data is un attribute type XSTRING and the f
-
.....ie we have Seagate external drives but both have Windows files on them, although plenty of room. Am I able to keep the Windows files on them and back up to them with Time Machine on new MacBook Pro? Don't understand....and not very clear. Thanks
-
Weird Characters in Hotmail - Someone Please Help!!!
I've just started getting the following characters in almost all my emails on hotmail (When using Safari). This never happened before:  at the top of every email.  at the beginning of every blank line. ’ in place of apostophes in words. (the wo
-
Multiple scheduling for same reports (with different prompt)
Hi, I have to plan the scheduling of 10 reports (refresh and then .pdf generating). But i have to refresh these reports for 15 countries each time (prompt different between each instance). So it will be 10*15=150 refresh done on the database !! Is it
-
Hola How can I make a blog in my website? Any suggestions where to start? Thanks