Sie sind auf Seite 1von 10

Getting Started Newsletters Store

Products Services & Support About SCN Downloads


Industries Training & Education Partnership Developer Center
Lines of Business University Alliances Events & Webinars Innovation
Log On Join Us Hi, Guest
Activity Communications Actions
Browse
Enterprise Resource Planning (SAP ERP)
1 Tweet 1
This tutorial describes step-by-step procedure of creating and adding a new holiday to holiday and factory calendar.

Note: It is not recommended to make any changes to the factory calendar in a production system.
All the calendar data should be maintained in a customizing system.
Updates are done via transports from the customizing system.
As a special case a customizing client in the productive system can be established.
Changes in the customizing client will then directly affect the productive system, as the calendar data is
client-independent.
SAP Calendar:
SAP calendar master consists of three separate sub-objects which are inter-linked to each other:

Public Holidays,
Holiday Calendar and
Factory Calendar.


Public holidays :
Public holidays can be defined and be combined into holiday calendars.
Public holidays describe the statutory holidays for a particular country or region within a country.

Types of Public holidays:
Fixed date
Fixed day of week from a specific date
Specific number of days before or after Easter (Sunday)
Easter Sunday
Moveable holiday (with individual specification of dates during each specified year).

For holidays with fixed date (such as Christmas) and moveable holidays it is possible to specify simple rules
guaranteeing the holiday if it falls on certain days of the week (Thu, Fri, Sun, Sat/Sun). For instance, Christmas day
public holiday may be moved to the next working day if it falls on a Saturday or Sunday.

Holiday calendar :
Holiday calendar is assigned to each factory calendar.


Factory calendar
Factory calendar contain company specific dates such as alternate working Saturdays and holidays.


T-Code : SCAL
IMG SPRO -> Time Management -> Work Schedules
Creating Factory/Holiday Calendar
Posted by Kaushalya Perera in Enterprise Resource Planning (SAP ERP) on 31-Dec-2012 05:20:00
Share Share 1 1 Like Like
Creating Factory/Holiday Calendar | SCN http://scn.sap.com/community/erp/blog/2012/12/31/creating-factoryhol...
1 of 10 13/06/2014 13:20


Step 1: Create Public Holidays
Select the radio button Public holidays. 1.
Click Change button . 2.
On Change Public Holidays: Overview screen click Create button . 3.
A pop up window appear to select the Type of Public Holiday. 4.
Type of Public Holidays
with fixed date: This public holiday falls on the same date every year (e.g. Christmas Day).
Enter the Public Holiday Definition.
Day (e.g. 25) i.
Month (e.g. 12) ii.
Guaranteed : specify whether the public holiday should be moved or not if it falls on a weekend.
Not Guaranteed: Indicates that the public holiday should not be moved if it falls on a weekend. 1.
Thursday, Friday, Sunday, Saturday/Sunday: If the public holiday is to be "guaranteed", i.e.,
should be a day off in any case, you have to specify the workday to which the public holiday
should be moved.
2.
iii.
a.
Enter the Public Holiday Attributes:
Sort Criterion: use this to display logically related holidays in a block, e.g. all holidays for a country. i.
Religious Denomination: (e.g. Christianity). ii.
Public Holiday Class: this specifies the holiday type. It can be used to determine the groups of holidays iii.
b.
1.
Creating Factory/Holiday Calendar | SCN http://scn.sap.com/community/erp/blog/2012/12/31/creating-factoryhol...
2 of 10 13/06/2014 13:20
and normal days. (e.g. '1' is ordinary public holiday).
Give Long/Short Holiday Names. iv.
Click Create icon . c.
Floating Public Holiday: This public holiday is not fixed. It must be defined explicitly each year. (e.g. Vesak Full
Moon Poya Day).
Enter the Public Holiday into relevant boxes: Year/Month/Day (e.g. 2012, 05, 05). a.
Enter the Public Holiday Attributes and click Insert Date icon. b.
2.

Step 2: Create Holiday Calendar
To assign public holidays in a holiday calendar, we need to maintain one or more holiday calendars to accommodate the
differing holiday schedules of our company.

Select the radio button "Holiday Calendar". 1.
On Change Public Holiday Calendar: Overview screen click Create button . 2.
Enter the Calendar ID and the Name of the calendar. A holiday calendar is identified in the system by a
two-character calendar ID.
3.
Enter the validity of the calendar. 4.

Assign Holidays
Click on the Assign Holiday button to assign the holiday. 1.
Creating Factory/Holiday Calendar | SCN http://scn.sap.com/community/erp/blog/2012/12/31/creating-factoryhol...
3 of 10 13/06/2014 13:20

From the Insert Public Holidays into Holiday Calendar screen, search for the respective calendar and select the
holidays you want to allow.
1.
Click on the Assign publ.holiday Button. 2.
The public holiday gets added; click on save button to save the holiday calendar. 3.
Acknowledge all the messages. 4.
Step 3: Define the Factory Calendar
Creating Factory/Holiday Calendar | SCN http://scn.sap.com/community/erp/blog/2012/12/31/creating-factoryhol...
4 of 10 13/06/2014 13:20
Select the working days and assign a holiday calendar to factory calendar. 1.
Select the radio button "Factory Calendar". 2.
Enter the Factory Calendar ID (same as the Holiday Calendar) and the Factory Calendar Name. 3.
Enter the Holiday Calender ID. 4.
Save. 5.

Special Rules:

Special rules are used to define a date (or periods) as a holiday or as a workday, which is not maintained in the holiday
calender (which is applicable for that year only).
In the Public Holiday definition you can determine if a holiday should be moved if it falls during weekends.
You can assign this special rules accessing the "Change Factory Calendar: Details" :: Special Rules button.
Go to Factory calendar (change) --> change calendar --> Special rules. 1.
Enter the date and specify if it is a holiday or workday, then save. 2.
The Special rules have higher priority than holiday calendar holidays or workdays. 3.

Finally, click Year Overview and check for the dates.
Creating Factory/Holiday Calendar | SCN http://scn.sap.com/community/erp/blog/2012/12/31/creating-factoryhol...
5 of 10 13/06/2014 13:20
Average User Rating
(15 ratings)
1 Tweet 1

Final Step: Transport the Calendar
All changes made to the holiday or factory calendar must be transported manually.

Go to SAP Calendar: Main Menu. 1.
Select one of the sub-objects and click Transport button . 2.


Calendar Functions

Once the SAP Calendar is configured properly, you can use this data to perform various types of calculations.
SCAL function group consists of some predefined function modules that can be use to determine whether or not a given
date is a working day, holiday, etc.


Function Module Description
DATE_COMPUTE_DAY Computes the day of the week for a given date. Day values are
calculated as 1 (Monday), 2 (Tuesday), and so on.
DATE_COMPUTE_DAY_ENHANCED Computes the day of the week just like DATE_COMPUTE_DAY; also
returns the day value as text (e.g., TUESDAY, etc.).
DATE_CONVERT_TO_FACTORYDATE Calculates the factory date value for a given date. Also provides an
indicator that confirms whether or not the given date is considered a
working day according to the selected factory calendar.
DATE_GET_WEEK Determines the week of the year for the given date. For example, the
date 9/13/2010 would be the 37th week of the year 2010.
FACTORYDATE_CONVERT_TO_DATE Converts a factory date value back into a date object.
HOLIDAY_CHECK_AND_GET_INFO Tests to determine whether or not a given date is a holiday based on the
configured holiday calendar.
WEEK_GET_FIRST_DAY Calculates the first day of a given week.


As December comes to a close, The new year is just around the corner, and it's a good time to maintain your Factory
Calendar for the coming year (if you haven't already done so); I hope this simple guide will help you.
11672 Views Tags: holiday, hcm, factory, mm, sd, calendar, scal
Share Share 1 1 Like Like
41 Comments
Jelena Perfiljeva 02-Jan-2013 18:43
Very thorough post, thank you! Perhaps it would make sense to tag it with SD and MM, so that it shows
in those spaces too. I'm sure it'd be beneficial to all the SD/MM consultants.

By the way, factory calendar may also be used in the background job scheduling (SM36), when setting
up schedule exceptions for holidays/non-working days.
Creating Factory/Holiday Calendar | SCN http://scn.sap.com/community/erp/blog/2012/12/31/creating-factoryhol...
6 of 10 13/06/2014 13:20
Like (0)
Like (0)
venu gopal 07-Sep-2013 07:37 (in response to Jelena Perfiljeva)
Dear this is very good document
Thank you so much for sharing ....
Like (0)
venu gopal 07-Sep-2013 07:37
thanks a lot
Like (0)
Rajesh Kumar Burra 22-Oct-2013 06:07
Good Document Thank you.
Like (1)
Kaushalya Perera 21-Oct-2013 19:03 (in response to Rajesh Kumar Burra)
Hi Rajesh,

Depending on your company's policies; which department is responsible for defining the rules
of company specific dates such as: alternate working Saturdays, compensating holidays (if the
holiday falls on weekend), floating holidays, plant shutdown etc
Whether it's SD/MM/HR, whomever decide on the company Holidays, should create the SAP
Factory Calender as well.
Like (0)
D' Hari 31-Oct-2013 19:30
Is there any way to customize the calendar? We want to keep only few days open for user to be
selected from only one screen. No restrictin on calendar for other screens.

Is is possible thru customization?

Thanks. - D.
Like (0)
Kaushalya Perera 02-Jan-2014 11:25 (in response to D' Hari)
Hi D'Hari,

Since your requirement is to restrict only one single selection screen, it seems you need not to
modify your factory calendar. Even if you've modified the factory calendar, the user may still
choose to manually type in a date rather than use the calendar search help.
So, best solution is to validate the date input at selection screen using:
AT SELECTION-SCREEN ON date_field.
PERFORM validate_date USING date_field.

See this thread also: http://scn.sap.com/thread/3263052
Like (0)
Pradyp Parakala 24-Dec-2013 05:52
Nice Work Kaushalya

U did a splendid job, I really appreciate it.. keep posting more like this..

Cheers
Pradyp
Like (0)
Kaushalya Perera 02-Jan-2014 11:27 (in response to Pradyp Parakala)
Thanks Pradyp! I'm glad you appreciated it!!
Like (0)
MALYADRI JWALA G 24-Dec-2013 05:58
hi kausalya ,

nice job ....come up with more like this ......keep going .....


Regards,
Jwala.
ESS MSS.
Like (1)
Kaushalya Perera 02-Jan-2014 11:28 (in response to MALYADRI JWALA G)
Thanks Malyadri!
Creating Factory/Holiday Calendar | SCN http://scn.sap.com/community/erp/blog/2012/12/31/creating-factoryhol...
7 of 10 13/06/2014 13:20
Like (0)
Aditya Varrier 24-Dec-2013 12:21
Super blog Kaushalya.

Cheers,
Aditya V
Like (0)
Kaushalya Perera 02-Jan-2014 11:28 (in response to Aditya Varrier)
Thanks Aditya!
Like (0)
Chandra Agarwal 02-Jan-2014 09:59
Looks useful. Thanks !
Like (0)
Kaushalya Perera 02-Jan-2014 11:30 (in response to Chandra Agarwal)
Thank you Chandra!
Like (0)
Anshu Lilhori 02-Jan-2014 10:00
Really useful..Thanks for this write up.

Regards,
AL
Like (0)
Kaushalya Perera 02-Jan-2014 11:31 (in response to Anshu Lilhori)
Thank you Anshu, I'm glad it was useful!!
Like (0)
seshu p 02-Jan-2014 11:52
As December comes to a close, 2013 is just around the corner, and it's a good time to create your
Factory Calendar for the new year (if you haven't already done so); I hope this simple guide will help
you.
Not only in 2013 , This guide will help for all years ,Thanks For Sharing .
Regards,
Seshu.P
Like (1)
Kaushalya Perera 03-Jan-2014 11:33 (in response to seshu p)
Thank you Seshu for your comment!!
Hehe
As December comes to a close, 2013 is just around the corner, and it's a good
time to create your Factory Calendar for the new year (if you haven't already
done so); I hope this simple guide will help you.
This part is there because I wrote it last year it's high time I should update the blog!
Like (0)
Sushant Tiwarekar 02-Jan-2014 12:13
Nice Blog.

Regards,
Sushant
Like (0)
Kaushalya Perera 03-Jan-2014 11:34 (in response to Sushant Tiwarekar)
Thank you Sushant!
Sow Ganesan 08-Jan-2014 21:24
Hi Kaushalya,

Thank you for sharing this.
I am getting into Oil & Gas and need to know what areas to learn.
Creating Factory/Holiday Calendar | SCN http://scn.sap.com/community/erp/blog/2012/12/31/creating-factoryhol...
8 of 10 13/06/2014 13:20
Like (0)

Thanks in advance..
Like (0)
Kaushalya Perera 13-Jan-2014 05:36 (in response to Sow Ganesan)
Hi Sow Ganesan,

Thank you for the comment.
But, mind you; this is not the correct space to post this question

However, the answer to your query may vary depends on your business requirement.
Basically, SAP Industry solution for Oil & Gas is divided into two streams:
- Upstream
- Downstream

Below are some of the helpful links to get you started:
Oil & Gas Software | Industries | SAP
SAP for Oil & Gas SAP Help Portal Page
SAP for Oil & Gas SAP Help Portal Page

Join the SAP Oil & Gas SCN Community Network to share your knowledge:
http://scn.sap.com/community/oil-and-gas

Go to training.sap.com where you can find plenty of training courses:
Curriculum | SAP for Oil & Gas Downstream
Curriculum | SAP for Oil & Gas Upstream

Good Luck!
Like (0)
Wasem Hassan 17-Jan-2014 12:48
Hi kaushalya,

its too good document.
Regards
Wasem
Like (1)
Kaushalya Perera 04-Apr-2014 06:18 (in response to Wasem Hassan)
Thanks Wasem for your comment!
Like (0)
Ibrahim Syed 15-Feb-2014 22:40
Kaushalya-

Very good document.Thanks for sharing.

Regards,

Ibrahim
Like (0)
Kaushalya Perera 04-Apr-2014 06:19 (in response to Ibrahim Syed)
Thank you Ibrahim!
Like (0)
Saikat Pal 25-Mar-2014 12:57
Appreciating your work and thanks for the document .
Like (0)
Kaushalya Perera 04-Apr-2014 06:20 (in response to Saikat Pal)
Thanks Saikat! I'm glad you appreciated my work!!
Like (0)
Mario S 26-Mar-2014 14:07
Amazing post! It was very useful if you want to create calendar and define the labour not labour days.

Thanks
Like (0)
Kaushalya Perera 04-Apr-2014 06:21 (in response to Mario S)
Thanks Mario, I'm glad it was useful!
Dv Ptr 01-Apr-2014 12:33
Creating Factory/Holiday Calendar | SCN http://scn.sap.com/community/erp/blog/2012/12/31/creating-factoryhol...
9 of 10 13/06/2014 13:20
Follow SCN
Site Index Contact Us SAP Help Portal
Privacy Terms of Use Legal Disclosure Copyright
Like (0)
Good document..
Very useful for the year start or at the time of implement..
Nice effort..

Regards
Dev
Like (0)
Kaushalya Perera 04-Apr-2014 06:23 (in response to Dv Ptr)
Thanks Dv! I'm glad it was useful!!
Like (1)
Jeewana Premarathne 06-May-2014 09:42
Best article read about SCAL in SAP.
Like (0)
Kaushalya Perera 26-May-2014 14:46 (in response to Jeewana Premarathne)
Thanks Jeewana for your comment!
Like (0)
Bruno Esperana 07-May-2014 18:19
Great document,

thanks for this.

Best regards,
Bruno
Like (0)
Kaushalya Perera 26-May-2014 14:47 (in response to Bruno Esperana)
Thanks Bruno for your comment!
Like (0)
Mohammad Nizam Uddin 23-May-2014 10:51
It is a very helpful document, excellent work! Thanks Perera
Like (0)
Kaushalya Perera 26-May-2014 14:48 (in response to Mohammad Nizam Uddin)
Thanks Mohammad, I'm glad it was helpful!
Like (0)
Ghaith Al Hashemi 12-Jun-2014 13:46
Thanks for sharing
*IMG SPRO -> Time Management -> Work Schedules -> Define Public Holiday Classes
Like (0)
Jose Antonio Martinez 12-Jun-2014 14:23
Thanks to share this info.

Regards Antonio
Creating Factory/Holiday Calendar | SCN http://scn.sap.com/community/erp/blog/2012/12/31/creating-factoryhol...
10 of 10 13/06/2014 13:20

Das könnte Ihnen auch gefallen