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 master consists of three separate sub-objects which are inter-linked to each other:
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.
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 is assigned to each factory calendar.
Factory calendar contain company specific dates such as alternate working Saturdays and holidays.
T-Code : SCAL
IMG SPRO -> Time Management -> Work Schedules
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.
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.
Finally, click Year Overview and check for the dates.
All changes made to the holiday or factory calendar must be transported manually.
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. :smile:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |