Factory Calender

download Factory Calender

of 12

Transcript of Factory Calender

  • 7/30/2019 Factory Calender

    1/12

    Scheduling a background job using factory calendar

    By Savitha Madhavagiri, CSC India

    Consider a batch job that needs to be run on every 3rd

    Saturday in a month.If you set it up using transaction SM36 as a repetitive batch job you see that the options provided do notmatch this requirement.We can achieve this by creating a factory calendar then using the factory calendar option in SM36.Let us see below how we configure these settings. Configuration:Create a new factory calendar that has one working day which is always the 3

    rdSaturday of the month.

    You use transaction SCAL to create factory calendars. Select the Factory calendarradio button andthen click on the change icon.

  • 7/30/2019 Factory Calender

    2/12

    In the next screen enter the calendar ID, its description, and the years for which it is valid.

    As we are going to use Special rulesonly, we dont need to enter a holiday calendar or define workdayson this screen. Press Save and then click on Special rules. In the next screen that appears enter the specific dates for which you want the calendar to be active. Tickthe Workday check box for these dates.

  • 7/30/2019 Factory Calender

    3/12

    Press save and go back to Overview screen. Click on the Calendar button to see what these dates looklike in a calendar format.

  • 7/30/2019 Factory Calender

    4/12

    Double-click on a year to see the work dates in a calendar format. Workdays are highlighted in yellow onyour screen and non-working days are in green. In our example we have set dates only for 3 months, soyou see no of workdays as 3 for year 2009.

    By following the above steps we have set up a new factory calendar Z4.

    Job scheduling in SM36:

  • 7/30/2019 Factory Calender

    5/12

    Create a new job ZTEST and click on Start condition. Press Date/Time and tick the Periodic jobcheck box. Click on the Monthly button and press Save.

    Then click on Restrictions button. In the pop-up of Start date restrictions enter calendar id as Z4 andselect Move job to next working day option which restricts the job.

  • 7/30/2019 Factory Calender

    6/12

    Then press transfer to save the settings and go back to pop-up.

  • 7/30/2019 Factory Calender

    7/12

    Press ok and return to main screen of SM36.

    We can see the job planned start date is set to 15.08.2009(3rd

    Saturday in August) and frequency is set toMonthly. Define the steps and complete the job set up by pressing save.

    FACTORY CALENDAR FOR PLANTS

    FACTORY CALENDAR

    A factory calendar distinguishes between working days and non-working days.

    Dependencies

    If you have entered an exception rule for non-working days and have selected factory calendar, you must enter a factory calendarthat is relevant to your company.

    T.CODE: - OY05

    PATH: - SPRO -> IMG ->TIME MANAGEMENT -> WORK SCHEDULES -> DEFINE PUBLIC HOLIDAY CLASSES

    Steps to create Factory Calender

    1. Define public holidays.

    http://sapmmhelp.blogspot.in/2008/09/factory-calendar-for-plants.htmlhttp://sapmmhelp.blogspot.in/2008/09/factory-calendar-for-plants.html
  • 7/30/2019 Factory Calender

    8/12

  • 7/30/2019 Factory Calender

    9/12

    2. Define Holiday Calendar and assign public holidays to holiday calendar.

  • 7/30/2019 Factory Calender

    10/12

  • 7/30/2019 Factory Calender

    11/12

    3.Define Factory Calendar, select the working days and assign holiday calendar to factory calendar.

  • 7/30/2019 Factory Calender

    12/12