+ All Categories
Home > Documents > Simplify Your Month End by Using the Factory Calendar for ... · PDF fileYou use the factory...

Simplify Your Month End by Using the Factory Calendar for ... · PDF fileYou use the factory...

Date post: 06-Feb-2018
Category:
Upload: dangngoc
View: 214 times
Download: 0 times
Share this document with a friend
6
September 2008 • www.SAPexperts.com For group rates on electronic access, call 1-781-751-8799 17 Imagine a company that uses a 4-4-5 calendar. The 4-4-5 fiscal calendar is a common calendar structure for some industries, such as manufacturing and retail. Its major advantage over a regular calendar is that the end date of the period is always the same day of the week, which is useful for shift or manufacturing planning. The 4-4-5 calendar divides a year into four quarters. Each quarter has 13 weeks, which are grouped into two 4-week months and one 5-week month. The grouping of 13 weeks may be set up as 5-4-4 weeks or 4-5-4 weeks, but the 4-4-5 is the most common arrangement. One disadvantage of the 4-4-5 calendar is that it has 364 days, so approximately every five years there will be a 53-week year, which can make year-to-year comparison difficult. You use the factory calendar in the SAP system for many different processes, such as customer billing dates, workforce plan- ning, Materials Requirements Planning (MRP) scheduling, and batch job control. I will focus on the last of these. Consider a batch job that needs to be run on the last day of the fiscal period. If you set it up using transaction SM36 as a repetitive batch job you see that the options provided do not match this require- ment (i.e., can have the job repeat once a month). If the last day of the month is not always on the same date, you cannot set up the repetition cycle with the settings provided in transaction SM36. By creating a factory calendar that matches your fiscal calendar and then using the restrict by factory calendar option in transaction SM36 you can set up a batch job that runs on exactly the close period date you require. I’ll show you how to do this in configuration, explore some other tools you can use, and finish with some tips and tricks. Configuration Let’s start by creating a factory calendar that has one working day which is always the last day of the fiscal period. In this example, I will set up the calendar for a company that uses a 4-4-5 fiscal calendar that starts in November. In this case its fiscal 2008 calendar runs from October 29, 2007, to October 26, 2008 (Figure 1 on the next page). The last day of the fiscal period is always a Sunday. Table 1 on the next page shows the nomenclature that the company used to identify days relative to the last day of the fiscal period (-) negative days before month end and (+) positive days after the month end. For example, day +1 is the first day after the fiscal period ends. You define the fiscal year using transaction OB29 (Figure 2 on the next page). Figure 3 shows the configuration for calendar year 2008, which covers the last 10 months of fiscal year 2008 and the first 2 months of fiscal year 2009. You use transaction SCAL to create factory calendars. The most common use of these for workforce planning, HR, MRP Examine how a factory calendar aligned to the fiscal calendar can simplify month-end batch job scheduling, especially if you are not using Schedule Manager and Closing Cockpit. Understand how to create a factory calendar that matches your fiscal calendar and how to create a batch job that follows this calendar. Every company is looking for tools to help speed up the period-end closing process. During period-end closing, a company is under pressure to produce accurate financial information in the shortest possible period. To expedite the process the company should aim to eliminate error-prone and time-consuming tasks. One way of doing this is by automating tasks. Custom factory calendars can help support this automation process and work in conjunction with tools such as Schedule Manager and Closing Cockpit. Even when using these tools, you need to have a factory calendar that matches your fiscal calendar. There is not an automatic tool to link factory calendars to a fiscal calendar. You have to set this up manually using transaction SCAL. Transporting the factory calendar has special consid- erations and it is best to manually create it in each system and not transport. When creating a factory calendar to match a fiscal calendar, especially one that does not follow the normal year (e.g., 4-4-5 periods), you need to use the special rules section of SCAL configuration. Key Concept >> Simplify Your Month End by Using the Factory Calendar for Batch Job Scheduling by Rohana Gunawardena, SAP Practice Director, Quality Systems & Software
Transcript
Page 1: Simplify Your Month End by Using the Factory Calendar for ... · PDF fileYou use the factory calendar in the SAP system for many different processes, such ... Configuration Let’s

September 2008 • www.SAPexperts.com

Forgroupratesonelectronicaccess,call1-781-751-8799 17

Imagine a company that uses a 4-4-5 calendar. The 4-4-5 fiscal calendar is a common calendar structure for some industries, such as manufacturing and retail. Its major advantage over a regular calendar is that the end date of the period is always the same day of the week, which is useful for shift or manufacturing planning.

The 4-4-5 calendar divides a year into four quarters. Each quarter has 13 weeks, which are grouped into two 4-week months and one 5-week month. The grouping of 13 weeks may be set up as 5-4-4 weeks or 4-5-4 weeks, but the 4-4-5 is the most common arrangement. One disadvantage of the 4-4-5 calendar is that it has 364 days, so approximately every five years there will be a 53-week year, which can make year-to-year comparison difficult.

You use the factory calendar in the SAP system for many different processes, such as customer billing dates, workforce plan-ning, Materials Requirements Planning (MRP) scheduling, and batch job control. I will focus on the last of these.

Consider a batch job that needs to be run on the last day of the fiscal period. If you set it up using transaction SM36 as a repetitive batch job you see that the options provided do not match this require-ment (i.e., can have the job repeat once a month). If the last day of the month is not always on the same date, you cannot set

up the repetition cycle with the settings provided in transaction SM36.

By creating a factory calendar that matches your fiscal calendar and then using the restrict by factory calendar option in transaction SM36 you can set up a batch job that runs on exactly the close period date you require. I’ll show you how to do this in configuration, explore some other tools you can use, and finish with some tips and tricks.

ConfigurationLet’s start by creating a factory calendar that has one working day which is always the last day of the fiscal period. In this example, I will set up the calendar for a company that uses a 4-4-5 fiscal calendar that starts in November. In this case its fiscal 2008 calendar runs from October 29, 2007, to October 26, 2008 (Figure 1 on the next page). The last day of the fiscal period is always a Sunday.

Table 1 on the next page shows the nomenclature that the company used to identify days relative to the last day of the fiscal period (-) negative days before month end and (+) positive days after the month end. For example, day +1 is the first day after the fiscal period ends.

You define the fiscal year using transaction OB29 (Figure 2 on the next page). Figure 3 shows the configuration for calendar

year 2008, which covers the last 10 months of fiscal year 2008 and the first 2 months of fiscal year 2009.

You use transaction SCAL to create factory calendars. The most common use of these for workforce planning, HR, MRP

Examinehowafactorycalendaralignedtothefiscalcalendarcansimplifymonth-endbatchjobscheduling,especiallyifyouarenotusingScheduleManagerandClosingCockpit.Understandhowtocreateafactorycalendarthatmatchesyourfiscalcalendarandhowtocreateabatchjobthatfollowsthiscalendar.

Everycompanyislookingfortoolstohelpspeeduptheperiod-endclosingprocess.Duringperiod-endclosing,acompanyisunderpressuretoproduceaccuratefinancialinformationintheshortestpossibleperiod.Toexpeditetheprocessthecompanyshouldaimtoeliminateerror-proneandtime-consumingtasks.Onewayofdoingthisisbyautomatingtasks.CustomfactorycalendarscanhelpsupportthisautomationprocessandworkinconjunctionwithtoolssuchasScheduleManagerandClosingCockpit.

Evenwhenusingthesetools,youneedtohaveafactorycalendarthatmatchesyourfiscalcalendar.Thereisnotanautomatictooltolinkfactorycalendarstoafiscalcalendar.YouhavetosetthisupmanuallyusingtransactionSCAL.Transportingthefactorycalendarhasspecialconsid-erationsanditisbesttomanuallycreateitineachsystemandnottransport.Whencreatingafactorycalendartomatchafiscalcalendar,especiallyonethatdoesnotfollowthenormalyear(e.g.,4-4-5periods),youneedtousethespecialrulessectionofSCALconfiguration.

Key Concept>>

Simplify Your Month End by Using the Factory Calendar for Batch Job Scheduling

by Rohana Gunawardena, SAP Practice Director, Quality Systems & Software

Page 2: Simplify Your Month End by Using the Factory Calendar for ... · PDF fileYou use the factory calendar in the SAP system for many different processes, such ... Configuration Let’s

18 © 2008 Financials ExpertReproductionprohibited.Allrightsreserved.

planning, and so on, resembles a regular calendar with the days Monday-Friday designated as work days and then a holiday calendar assigned as well to ensure that work does not occur on holidays such as New Year’s Day. Unfortunately there is no standard tool in the SAP system to trans-late a fiscal calendar to a factory calendar. Note there are multiple transaction codes that call the screen from transaction SCAL (Table 2).

You normally set up calendars on the basis of five working days plus public holidays. However, you can set them up using special rules, in which you explicitly define which days will be considered work days for the calendar. This is ideal for setting up a calendar for a specific day once a month, such as the last day of the fiscal period. To create a new factory calendar, from trans-action SCAL select the Factory calendar radio button and then click on the change (pencil) icon. Note the change mode option is only available if your SAP system is open for cross-client customizing, a setting maintained by your Basis team in table T000.

After you enter change mode, the system displays a list of existing calendars. Click on the new calendar (blank sheet of paper) icon to create a new calendar (Figure 3).

In the detail screen enter the calendar ID, its description, and the years for which it is valid. Because you’re creating the calen-dar to use special rules only, you don’t need to enter a holiday calendar or define workdays on this screen.

Click on the Special rules button and in the screen that appears enter the specific dates for which you want the calendar to be active. Check the Workday check box for these dates (Figure 4 on page 20). In the example, dates that map to D+1 are workdays.

To see what these dates look like in a calendar format from the overview screen, select the calendar that you want

Examplefiscal2008calendar,starting10/29/2007andending10/26/2008

Figure 1

Month 1

Mon Tue Wed Thu Fri Sat Sun

-5 -4 -3 -2 -1 -0 +0

Month 2

Mon Tue Wed Thu Fri

+1 +2 +3 +4 +5

NomenclatureusedtoidentifydaysrelativetothefiscalperiodendTable 1

FiscalyearconfigurationintransactionOB29forcalendaryear2008Figure 2

Page 3: Simplify Your Month End by Using the Factory Calendar for ... · PDF fileYou use the factory calendar in the SAP system for many different processes, such ... Configuration Let’s

September 2008 • www.SAPexperts.com

Forgroupratesonelectronicaccess,call1-781-751-8799 19

days were the same so the calendar only had one working day per fiscal period, but this does not need to be the case. See Figure 7 on page 19 for examples of multi-day calendars that have been config-ured. You might need a batch job run from the Friday before close to the Monday after close, in this case day -1 to day +1. Varying the to and from dates generates a suitable factory calendar (Figure 8 on page 19).

When you create a transport for a calendar using transaction SCAL, it does not just transport the changes you have made like a regular transport, but transports all set-tings contained in transaction SCAL all public holidays, holiday calendars, and factory calendars.

Unless you are sure that the entire config-uration is correct, SAP recommends that you do not transport the calendar settings but manually make the changes in each system as you progress through your development, quality assurance, and pro-duction transport pipeline. If you use a tool such as LSMW, CATT, or eCATT to make your calendar entries for special rules, this can be a relatively painless process. In each SAP system in your transport pipeline, you need to have your Basis team open the system for cross-client customizing.

Transaction SM36 Job SchedulingYou can link a batch job to a factory calen-dar using transaction SM36. In the initial screen of transaction SM36, enter the job name and then click on the Start condition button to enter the dates (Figure 9 on page 21). To complete a batch job, you need to set up both the start condition and steps, but I will not cover the setup of batch job steps in this article.

After you click on the Start condition button, the pop-up screen shown in Figure 10 on page 21 appears. Enter the date and time for the first job run and select the

Transaction code Description

OVR3 CSDtab.customercalendar

OVR4 CSDtab.billingschedules

OY05 Factorycalendar

SCA1 Maintainpublicholidays

SCA2 Maintainpublicholidaycalendar

SCA3 Maintainfactorycalendar

SFT1 Maintainpublicholidays

SFT2 Maintainpublicholidaycalendar

SFT3 MaintainfactorycalendarAdditionaltransactioncodesTable 2

Calendarssetuptoassistwithbatchjobschedulingbasedonthefiscalcalendar

Figure 3

to review and click on the Calendar button in Figure 3 to see the list of years that are configured (Figure 5 on the next page).

Double-click on a year to see the work dates in a calendar format (Figure 6 on the next page). Workdays are highlighted in yellow on your screen and non-working days are in green.

The data entry process for setting up the factory calendars can be quite time con-suming and error prone. You should use a tool such as Legacy System Migration Workbench (LSMW), Computer Aided Test Tool (CATT), or extended Computer

Aided Test Tool (eCATT) to make your calendar entries. With these, you can prepare your data in Excel and then upload the data to make multiple calendar configuration a relatively painless process. To find out more about these tools, read Mitresh Kundalia’s articles, “Fast Data Conversion, Migration, and Updates for Functional Analysts with LSMW” (Volume 2, Number 7) and “Use CATT to Test Your End-to-End Business Processes” (Volume 4, Number 2) in the Financials Expert knowledgebase at www.Finan-cialsexpertOnline.com.

In the above example, the to and from

Page 4: Simplify Your Month End by Using the Factory Calendar for ... · PDF fileYou use the factory calendar in the SAP system for many different processes, such ... Configuration Let’s

20 © 2008 Financials ExpertReproductionprohibited.Allrightsreserved.

Periodic job check box. Then click on the Period values button to bring up the Period Values pop-up screen.

Click on the Daily button and then click on the save icon. This sends you back to Figure 9. Do not select Monthly because this implies repetition based on the regular calendar. In the case of a 4-4-5 calendar the interval between two dates, P01 D+1 to P02 D+1, is 28 days, which is less than most calendar months, which are 30 or 31 days.

After returning to the Start Time pop-up screen (Figure 10), click on the Restric-tions button to bring up the Start Date Restrictions pop-up screen. Enter the factory calendar and restrict the batch job to run only on the workdays defined in this calendar. Select the radio button Move job to next workday; the default value Always execute job does not restrict the job. Click on the Transfer button to save the settings and return to the start conditions pop-up screen.

After returning to the Start Time screen, click on the save icon to go back to trans-action SM36. You now see the planned start date and the job frequency (Figure 11 on page 22). Remember the daily fre-quency is restricted to workdays defined in the factory calendar. To complete the batch job setup, define the steps for the batch job and then follow Job>Save from the transaction SM36 initial screen.

Schedule Manager and Closing CockpitYou can use two tools for scheduling period-end closing activities: Schedule Manager and Closing Cockpit.

Schedule Manager is available with stan-dard SAP ERP Central Component (ECC) or R/3 Release 4.6 or higher. When con-figuring Schedule Manager, you need to assign a calendar to each task list. To do this, you can use the factory calendars configured for workday to ensure the correct scheduling of the task list. From

Specialrulesforcalendar+1Figure 4

ListofyearsconfiguredfortheselectedfiscalcalendarFigure 5

Calendaroverviewdisplaywithworkingdayshighlightedinyellowonthescreen(01/28,02/25,03/31,04/28,05/26)

Figure 6

the Schedule Manager overview screen, follow Task List>Create and the new task list pop-up screen appears (Figure 12 on page 22).

In the task list header enter the required

factory calendar (Figure 13 on page 22).

Note that after you create the task list you

cannot change the calendar assignment. To

see the calendar settings for an existing task

list, follow Goto>Header from the menu.

Page 5: Simplify Your Month End by Using the Factory Calendar for ... · PDF fileYou use the factory calendar in the SAP system for many different processes, such ... Configuration Let’s

September 2008 • www.SAPexperts.com

Forgroupratesonelectronicaccess,call1-781-751-8799 21

To find out more about Schedule Manager, see Anurag Barua’s article “Configure and Manage All Period-End Closing Activities with Schedule Manager” (Volume 6, Number 3) in the Financials Expert knowledge-base at www.FinancialsexpertOnline.com.

Closing Cockpit is a tool available with ECC 5.0 or higher. You typically use it to schedule period-end closing activities. It has a richer functionality than the previously mentioned Schedule Manager. For more details on the tool see Gary Fullmer’s arti-cles “SAP Closing Cockpit in mySAP ERP Automates Fast Close” (Volume 6, Number 2) and “Set Up SAP Closing Cockpit for Speedier and Better-Controlled Financial Closings in 5 Steps” (Volume 7, Number 2) in the Financials Expert knowledgebase at www.Financialsexpert-Online.com.

Tips and Tricks Here are three tips and tricks you can perform with calendars.

Change calendars. Some situations require that you change your calendars, such as if your company close coincides with a major holiday and you decide to push back the close cycle by one day. In this case, you need to make sure all calen-dar changes are done at least one fiscal period in advance. The reason for this is that the next date for a repetitive batch job is determined when it runs, so if a job is always run on day -0 then the specific date for fiscal period 4 day -0 is chosen on fiscal period 3 day -0. If you change the factory calendar for fiscal period 4 day -0 after the job has run you will not affect the start date of the job and it will run as if the calendar had not been changed.

Report variants. When you schedule reports using transaction SM36, Schedule Manager, or Closing Cockpit, you often need to ensure the selection variants you have set up for the reports change their values. For example, the reports selection screen has fiscal year and period as input parameters, and the report has a key date

Factorycalendarssetuptosupportbatchjobswhichneedtorunonmultipledaysoftheclose

Figure 7

FactorycalendarcoveringmultipledaysFigure 8

InitialscreenoftransactionSM36Figure 9

Batchjobstartconditionspop-upscreenFigure 10

Page 6: Simplify Your Month End by Using the Factory Calendar for ... · PDF fileYou use the factory calendar in the SAP system for many different processes, such ... Configuration Let’s

22 © 2008 Financials ExpertReproductionprohibited.Allrightsreserved.

that should be the last day of the fiscal period. If you create the variant in P01/2008 and save it with these values when you run it for P02/2008, the system uses the incor-rect value P01/2008 unless you manually update the variant each period. You can simplify this process a great deal by using variant variables, sometimes referred to as TVARV or TVARVC variables. For more information on this, read Mitresh Kunda-lia’s article “Use Your Program Variants More Effectively with the Help of TVARV Variables” (Volume 4, Number 3) in the Financials Expert knowledgebase at www.FinancialsexpertOnline.com.

Refresh calendar buffer. When you make changes to an existing factory cal-endar you may notice that the changes do not take effect immediately. This is because the system buffers the calendars. To make sure that the changes are avail-able immediately, use the refresh calendar option in transaction SCAL. This is the same as executing ABAP report RSSCALT2. n

TransactionSM36initialscreenupdatedwithstartdateandtimeandjobfrequency

Figure 11

ScheduleManageroverviewscreenFigure 12

AssignafactorycalendartoaschedulemanagertasklistFigure 13

Rohana Gunawardena is the SAP practice director of Quality Systems & Software, a specialist SAP consulting firm. Rohana has been working with SAP systems since 1992, focusing on the order-to-cash process with emphasis on global rollouts, business segment reporting, cross-module integration, and the financial impact of Supply Chain Management transactions. He has helped multiple clients on detailed system correction projects, activating group currency, and clean up of inter-company accounting trans-actions. Rohana has spoken at many SAP conferences and has published more than 20 articles on various aspects of SAP. He is a Fellow of the Institute of Chartered Accountants in England & Wales. You may contact Rohana at [email protected].


Recommended