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.
You need the requisite authorizations to work with the ABAP editor or to start report programs.
1. From the menu on any screen, choose System ® Services ® Reporting. On the initial screen, enter the report program /SAPAPO/TS_PAREA_INITIALIZE. Choose .
2. Enter the requisite data as described in Planning Area Functions in S&DP Administration.
3. Choose to save the selection data as a variant. On the screen that appears, enter a name and a description for the variant. Choose .
4. From the menu, choose Program ® Execute in Background.
5. On the screen that appears, enter the background print parameters. Choose Save.
6. Schedule the job. For more information, see, for example, Job Scheduling Explained in the SAP Library documentation for Computing Center Management System (BC-CCM).
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 .
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 .
11. Choose .
12. Continue as in step 3 in the main procedure.
Variants in the SAP Library for the ABAP Workbench
and in particular Using Variables for Date Calculations.