Show TOC Entering content frame

Procedure documentationInitializing Planning Areas in Background Jobs Locate the document in its SAP Library structure

Use

To keep the size of time series objects to a manageable minimum it makes sense to initialize planning areas by scheduling background jobs that run periodically. This is sometimes known as working with rolling horizons.

Prerequisites

You need the requisite authorizations to work with the ABAP editor or to start report programs.

Procedure

...

       1.      From the menu on any screen, choose System ® Services ® Reporting. On the initial screen, enter the report program /SAPAPO/TS_PAREA_INITIALIZE. Choose This graphic is explained in the accompanying text.

       2.      Enter the requisite data as described in Planning Area Functions in S&DP Administration.

       3.      Choose This graphic is explained in the accompanying text to save the selection data as a variant. On the screen that appears, enter a name and a description for the variant. Choose This graphic is explained in the accompanying text.

       4.      From the menu, choose Program ® Execute in Background.

       5.      On the screen that appears, enter the background print parameters. Choose This graphic is explained in the accompanying text Save.

       6.      Schedule the job. For more information, see, for example, Structure linkJob Scheduling Explained in the SAP Library documentation for Computing Center Management System (BC-CCM).

Setting Up Rolling Initialization

If you want the system to roll over periodically without scheduling the same job repeatedly, you should use selection variables to enter relative dates. The system then calculates the start and end dates each time the report is executed. For instance, you specify that the initialization period should be from 12 months in the past to 12 months in the future. If today’s date is July 1, 2003, this means that the initialization period starts on July 1, 2002 and ends on June 30, 2004. If the report is started anew on August 1, 2003, change the dates to August 1, 2002 and July 31, 2004.

       7.      On the Save as Variant screen select the Selection Variable indicator for the Start/End Date  field.

       8.      Choose the Selection variables button on the toolbar.

       9.      In the table that appears, click on the traffic lights in column D so that the lights change to green. Click on the pull-down that appears beneath the name of the field (RDAT). A list of possible entry types appears. Choose an entry type for a range such as Beginning of mth-xx months, end of mth+yy months. Choose This graphic is explained in the accompanying text.

   10.      In the dialog box that appears, enter the number of periods in the past or in the future for start and end dates. Choose This graphic is explained in the accompanying text.

   11.      Choose This graphic is explained in the accompanying text.

   12.      Continue as in step 3 in the main procedure.

See also:

Structure linkVariants in the SAP Library for the ABAP Workbench

and in particular Structure linkUsing Variables for Date Calculations.

 

 

 

 

Leaving content frame