Manage Supply Network Planning

Published on November 2016 | Categories: Documents | Downloads: 81 | Comments: 0 | Views: 591
of 57
Download PDF   Embed   Report

Manage Supply Network Planning

Comments

Content

Manage Supply Network Planning & CTM in SAP APO (3.x) and SAP SCM (4.x / 5.x)
Best Pra ctice for Solution Management
Version Date: November 2008 This version is valid for SAP APO 3.0A, 3.1 and SAP SCM 4.0, 4.1, 5.0 and 5.1 (2007) The newest version of this Best Practice can always be obtained through the SAP Solution Manager Contents Applicability, Goals, and Requirements................................................................................................2 Preliminary Information .................................................................................................................4 Procedure ...................................................................................................................................10 Business Process Step 1: Initialize Planning Version ............................................................. 11 Business Process Step 2: Load Data.....................................................................................13 Business Process Step 3: Safety Stock Planning ...................................................................14 Business Process Step 4: SNP Heuristic Run........................................................................15 Business Process Step 4a: CTM Planning Run......................................................................18 Business Process Step 5: SNP Optimizer Run.......................................................................23 Business Process Step 6: Capacity Leveling .........................................................................25 Business Process Step 7: SNP Interactive Planning ..............................................................26 Business Process Step 8: Shelf Life Propagation...................................................................28 Business Process Step 9: Execute Batch Macros ..................................................................30 Business Process Step 10: Exchange Requirements with Supplier ........................................32 Business Process Step 11: Load Data into BW ......................................................................33 Business Process Step 12: Create/Update Planned Orders, Transfer Orders, and Purchase Requisitions ..........................................................................................................................34 Business Process Step 13: Release SNP to DP ....................................................................35 Business Process Step 15: Deployment Heuristic..................................................................37 Business Process Step 16: Deployment Optimizer.................................................................38 Business Process Step 17: Transport Load Builder (TLB) ......................................................38 Business Process Step 18: Delete Transaction Data..............................................................39 Further Information ...........................................................................................................................40 Index.....................................................................................................................................56

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

2

Applicability, Goals, and Requirements
To ensure that this Best Practice is the one you need, consider the following goals and requirements.

Goal of Using this Service
This Best Practice enables you to set up a business process management and monitoring concept for the business process "Supply Network Planning", which is part of the SAP Supply Chain Management (SCM) solution using the SAP Advanced Planning and Optimizing (APO). This business-process management and monitoring concept aims to: Define procedures for business-process oriented monitoring, error handling, and escalation management for Supply Network Planning Define the roles and responsibilities for all persons involved in the customers’ support and monitoring organization with respect to Supply Network Planning These procedures ensure the smooth and reliable flow of the core business process to meet your business requirements.

Alternative Practices
You can get SAP experts to deliver this Best Practice on-site if you order a Solution Management Optimization (SMO) service, known as the SAP Business Process Management service.

Staff and Skills Requirements
To implement this Best Practice, you require the following teams: Application Management Team The SCM / APO business process management concept (which this Best Practice aims to produce) should be created by the Application Management Team. This team combines experts from your company’s: Business department Solution support organization (for example, the IT department and the Help Desk) Implementation project team Execution Teams The execution teams are the following groups, which taken together, form the customer’s Solution Support Organization: The Business Process Champion for each business process Application Support Development Support Program Scheduling Management Software Monitoring Team System Monitoring Team More information about roles and responsibilities of these teams can be found in the superordinate Best Practice General Business Process Management, which you can obtain through the SAP Solution Manager.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

3

Necessary or Useful Training Courses: ADM355 APO System Administration PDEF08 LiveCache Administration TTW060 SAP APO Technical Administration TEWA60 SAP APO livecache Monitoring SCM210 Core Interface APO SCM230 Supply Network Planning (SNP) SCM240 Production Planning (ERP)

System Requirements
This document applies to SAP APO releases 3.0A and 3.1 and to SAP SCM releases 4.0, 4.1, 5.0 and 5.1 (2007).

Duration and Timing
Duration Creating a business-process management concept may take around one week per business process. Implementing the business-process management concept may take around one additional week. Timing The best time to apply this Best Practice is during the planning phase or during the implementation phase of your SAP solution.

How to Use this Best Practice
Firstly, read the whole document to get an overview of its structure, contents, and details. Determine the APO SNP core business process to be monitored. If you use the APO Core Interface (CIF) within this process, you should also see the respective Manage APO Core Interface in SAP SCM Best Practice. Record all the relevant steps in your core business process; use the example business process as a template. Exclude template process steps that you do not perform. For every process step, take the monitoring elements from the tables and insert them into your own template. Complete the information according to your specific requirements, for example, frequency and time of monitoring activity. If the process step includes CIF data transfer, add the information from the CIF document, section Operation and Monitoring of the APO CIF. Do not forget to include the respective information for interfaces other than CIF and for business process steps performed with your own (Y-, Z-) programs. Determine the related monitoring activities, tools, and responsible teams and fill in the table accordingly. For activities that are not directly related to a business process step, like those mentioned in section System Administration Related to the APO CIF in the CIF best practice, create a separate table. Proceed in the same way with all your other core business processes and other activities you want to monitor.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

4

Preliminary Information

The SCM System Landscape
The substantial components of an SAP SCM system landscape are summarized in the following table and shown schematically in the subsequent figure. SAP APO System The SAP Advanced Planning and Optimization system facilitates the strategic, tactical, and operational planning processes. APO consists of several software components: a relational database system (RDBMS) just as there is in any R/3 system, known as the APO DB; an SAP Web Application Server (or for releases up to APO 3.1 an R/3 Basis); the APO application programs; a separate, very fast objectoriented SAP DB database called liveCache; application programs running in liveCache – the COM routines; and a number of programs that execute elaborated optimization algorithms, called the optimization engines. These components can run on the same or on different servers. OLTP System The Online Transaction Processing system covers functionality for sales and distribution, material and inventory management, controlling, shop floor control, logistic execution, and so on. An Online Analysis Processing system, such as SAP Business Information Warehouse (BW), provides cumulated historical data as a basis for future extrapolation purposes in APO Demand Planning.

OLAP System

OLTP System

SAP R/3 Plug-In RDBMS

SAP APO System

OLAP System

live Cache

RDBMS RDBMS

OLTP System

SAP R/3 Plug-In RDBMS

The various strategies for using SAP APO, SAP R/3, SAP Business Information Warehouse (BW), and possibly other data processing systems in combination are called integration scenarios. Data for planned independent demand can enter the Supply Network Planning (SNP) module either through the Demand Planning (DP) module, or from external systems. Since SNP can have © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

5

some or all of its Key Figures in the time series liveCache, data can enter it in the same manner as they enter Demand Planning. Usually, an APO system is connected to one or several systems that provide historical and actual data, for example, sales figures, for your Supply Network Planning business process. These systems can be SAP R/3, SAP BW, and / or third party and legacy systems or a combination of these. As APO comprises a complete SAP BW, the tools for extracting data from other systems and transferring them to APO for demand planning purposes are the same as those used by SAP BW. The APO BW reads the data using remote function call (RFC) techniques, IDocs, or OS file access. In addition, data such as sales orders, stock, production orders or purchase orders can be sent from R/3 to SNP as order objects through the Core Interface Function (CIF), which is described in the corresponding Best Practice Manage APO Core Interface in SAP SCM. On the other hand, the planning results of the supply network planning process are fed into other applications for further planning or execution purposes. The system types that can be used here are APO itself - in particular its modules DP and / or PP/DS, SAP R/3, or again third party, or legacy, systems. The latter is not considered in this Best Practice document. This Best Practice is therefore based on a general and common integration scenario for setting up an SAP Supply Chain Management solution using SAP APO. As data sources, SAP BW, SAP R/3, and flat files can be connected to the SAP APO system.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

6

SAP Advanced Planning and Optimization (APO) is the planning component of SAP SCM, the Supply Chain Management solution provided by SAP. SAP APO is used to make strategic, tactical, and operational decisions and supports you in performing the following planning activities:

Demand Planning (DP) Supply Network Planning (SNP) Production Planning (PP) Detailed Scheduling (DS) Deployment Transport Load Builder (TLB) Transport Planning and Vehicle Scheduling (TP/VS) Global Available-to-Promise (gATP)
SAP APO is most of all a planning tool, although some industry specific execution functions are available, for example, production backflush for repetitive manufacturing. In standard business scenarios, execution functions, such as confirmations, goods receipt, purchasing, and so on are performed in the SAP R/3 OLTP system, which contains all functionality for, among other things, Material Management MM, Sales and Distribution SD, Production Order Processing PP-SFC, Logistics Execution LES, and Controlling CO.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

7

Supply Network Planning
The individual core business process and its modeling in SNP for planning your supply network may differ more or less from the canonical process described and illustrated as follows.

Description: The process flow above describes a typical SNP process flow. Before data can be loaded into Supply Network Planning, a planning area and planning version must be created and initialized. The planning version can consist of order key figures, time series key figures, or both. After initialization, data can be loaded into SNP in several ways: by releasing a forecast from Demand Planning, by CIF transfer from R/3, or from a flat file using a BAPI (Data from BW can only come to SNP either via BAPI or by transferring it through the APO data mart into a DP planning area, from where later a release to SNP can be done). © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

8

Many customers then execute a batch job to calculate safety stock: in some cases this is done separately from the main planning run using report /SAPAPO/MSDP_SB. In other cases, it is calculated by a macro during the heuristic or optimizer run, depending on which safety stock planning method used. Most customers then run either the SNP Optimizer or the SNP Heuristic, depending on the size of the problem and whether they can meet their needs with the infinite planning considered by the Heuristic. After the run is complete, planners usually check the results in interactive planning, possibly using alerts. If the SNP Heuristic has been run, Capacity Leveling is often performed on bottleneck resources to ensure that a feasible plan is created. Often customers perform a variety of tasks via batch macros: these can be used to generate alerts and perform further calculations on the data either before or after the planning run. Many SNP process flows then exchange requirements with suppliers – often using collaborative planning. At some point in the planning flow, some SNP customers use remote InfocCubes in a BW system for reporting on the SNP plan. The SNP planning results can also be sent to R/3 using the CIF interface, where the planned orders and purchase requisitions produced by SNP planning are then further processed using MRP. In other cases, the constrained forecast calculated by SNP can be released back to DP, and used in evaluating the feasibility of a forecast. Another use for the SNP data is to transfer it to PP/DS, where a more detailed, single-location planning is performed. After the PP/DS run occurs, the deployment algorithms - either heuristic or optimizer based approaches are available - can be used to plan transfers of single location products from one location to another, and to implement fair share rules. Although deployment is a short-term planning, it uses algorithms similar to the SNP heuristic or optimizer, so it is classed within SNP. In some cases, a detailed transport load is needed to consider transport load building constraints (min-max load) and to ensure that loading of the transportation resources for multiple products is feasible. Some comment is also needed about the use of /SAPAPO/RLCDELETE: since SNP alone is not an execution system, many customers also use this report to clean the order objects from the planning version used for SNP Planning after the results of the planning run have been sent to their respective destinations. The system can automatically split the data set and automate the parallel scheduling of batch jobs. This is already possible in SAP SCM 4.0 for most Demand Planning and Supply Network Planning processes. With SAP SCM 5.0 and SAP SCM 4.1 (SP 4 – note 779850) this is also available for: Deployment Heuristic Transport Load Builder Master Data Initialization Consistency check Time Series consistency check Saving of optimizer results to liveCache Capable to Match (CTM) (only SAP SCM 5.0) For all functions, it is possible to specify a parallel processing profile to control the parallelization. It contains: Maximal number of parallel work processes Maximum block size Server group (optional)

Capable to Match
If you are using CTM as a planning tool within your Supply Network Planning network – also consult the above figure and paragraph – there are usually some differences to the SNP standard process. For this purpose, we also provide here a typical business process involving CTM. The numbering of the process is oriented on the SNP process to make finding related sections in this document easier. Of course, your specific process might differ more or less from this canonical process:

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

9

Description: The process flow is quite similar to the process flow of SNP above and therefore not described in detail again. Of course, you have to keep in mind that CTM can also be used with PP/DS orders and PP/DS PPMs. This then implies differences in the processes, for example, that in interactive planning, transaction /SAPAPO/RRP3 is used more often than /SAPAPO/SNP94. Please consider the following overview for a better understanding. Overview: Multilevel Supply and Demand Matching (SDM) is the umbrella for the SAP APO solution for matching prioritized customer demands and forecasts to a set of supplies, while taking the current production capacities and transport capabilities into consideration. SDM's approach is production flow-centric, not production resource-centric, as is the case with traditional planning approaches. SDM does not consider the individual distribution and production levels of the supply chain one after the other, but considers all possible paths through the distribution and production levels together. For each demand element, the search is performed through the supply chain and the first possible way to fulfill the demand element is determined. Multilevel Supply and Demand Matching (SDM) is the umbrella for the SAP APO solution for matching prioritized customer demands and forecasts to a set of supplies, while taking the current production capacities and transport capabilities into consideration. SDM aims at a medium to long-term planning horizon and guarantees a timely multilevel synchronous production flow, triggering the flow only when necessary. Because SDM is order-based, it requires a tool that also supports a multilevel dynamic order split. Capable-to-Match (CTM) is the central planning tool of SDM. In addition, an order-based method of Supply Distribution and a tool that provides a graphical, flow-oriented view of the supply chain, complement this application. SDM complements the cross-plant supply chain planning strategies of the SAP APO applications Supply Network Planning (SNP) and Production Planning and Detailed Scheduling (PP/DS). © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

10

Therefore, it is also necessary to read especially the SNP Feasibility Check Assessment Guide to understand the entire business process. The business area Multilevel Supply and Demand Matching – similarly to SNP – covers the following activities: Supply Chain Planning Creating feasible plans for purchasing, manufacturing, distribution and transportation Integrating purchasing, manufacturing, distribution, and transportation planning for the midterm Making sourcing decisions through the Supply Network Categorizing supply to meet prioritized demands Synchronizing activities and plan material flow throughout the supply chain Capable-to-Match (CTM) planning is the planning tool in SDM. It uses constraint-based heuristics to conduct cross-plant checks of production capacities and transportation capabilities based on predefined supply categories and demand priorities. At the same time, existing supplies are cleared when matching them with demands. The aim of the CTM planning run is to propose a feasible solution for fulfilling demands. CTM first prioritizes the demands then schedules them one after the other in the prioritization sequence. CTM then matches the supplies and demands on a first come, first served basis while taking the production capacities, transport options and existing supplies into consideration. Customers often use CTM as an alternative to the SNP heuristic or SNP optimizer. However, there are also customers using CTM in the PP/DS environment. For such cases, also refer to the Best Practice document Manage Production Planning in SCM / APO. The CTM engine runs on an extra optimizer server, which must be based on Windows NT/2000/XP. This will connect to an APO application server using Remote Function Calls (RFC). During installation, or after configuration changes, make sure that the connection to the optimizer server maintained in SM59 still works correctly.

Procedure
In applying this Best Practice procedure, you create a company-specific process-oriented monitoring concept. This concept consists of monitoring activities to be performed for each business-process step and its respective monitoring objects. When adapting this concept for your company, you must specify the times, responsible teams, and escalation paths (teams) for the monitoring activities associated with each business-process step and its monitoring objects. In each of the business process steps described below, you will find the following information: A detailed functional description of the process step Monitoring activities for the process step Error handling, restartability, and escalation A monitoring object table, listing each relevant monitoring object, showing the: o Monitoring object o Monitoring transaction or tool o Monitoring frequency o Monitoring time (intentionally left blank, to be filled in according to your schedule) o Indicator or error o Monitoring activity or error handling procedure o Responsible team o Escalation procedure © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

11

As the frequency of SNP planning processes varies from daily activities at certain companies to only monthly or quarterly at others, the monitoring frequency in these monitoring object tables is partly only a rough estimate and has to be adapted to your particular business process. During the Going Live and stabilization phase of your APO implementation project, all items listed in this document should be monitored tightly. After becoming more experienced with system behavior, error occurrences, and application operations, the monitoring frequency can be decreased, but should never be reduced to zero unless you do not use the respective function. Important planning jobs usually have to be monitored after each run. Regular jobs of minor priority, for example, certain clean-up jobs, can be checked less frequently than the actual scheduled run times. For example, daily jobs can be checked weekly. The following seems obvious but should nevertheless be mentioned: Besides the monitoring of jobs described in the business process steps below, it is essential that you check all jobs that are running in your system at least several times per day for abnormal terminations. For status “cancelled”, see Error Handling, Restartability and Escalation. You should investigate and correct these terminations appropriately. This check can be done easily, for instance, with transaction SM37 by entering the time interval since the latest check and selecting all jobs with status “cancelled”. If you have no automatic notification in place that informs the people responsible for Program Scheduling Management in your Support Organization of abnormally terminated jobs, you need to take measures to ensure that this is done manually in a reliable and timely manner. A number of jobs must run periodically in a live R/3 installation, for example, the jobs for deleting outdated jobs or spool objects. For details and comments, see SAP Note 16083.

Business Process Step 1: Initialize Planning Version
Before a new planning version can be used in SNP, the planning version must be initialized for an SNP planning area. How the planning area is initialized depends on whether it contains only order objects, or whether some or all key figures are time series key figures. For order objects only, initializing the planning area is straightforward: execute transaction /SAPAPO/MSDP_ADMIN and find the planning area of interest; in most cases, the standard 9ASNP02 is used for order objects. Right click on the planning area, choose “initialize planning version”. Type in the name of the planning version, and execute. For planning versions with significant amounts of master data, select the “execute in background” option. General information on handling problems with version management is available in SAP Note 519014. When you need to change the validity period on a planning area with time series objects, simply enter transaction /SAPAPO/MSDP_ADMIN, right click on the planning area, and choose “Create Time Series”. Then, enter the existing planning version and the new start and end dates for the time series that are desired. For large data volumes, it is preferable to use the option “Execute in Background”, so that the program will not time out and so that the monitoring tools of SM37 are available. In SCM 5.0 it is possible to compare the results of the planning based on different master data sets. For that purpose, the standard SNP planning book contains additional key figures that can be linked to a second planning version.

Monitoring Activities
Jobs for Running and Monitoring "Initialize Planning Version" (APO) If the planning area used for SNP contains time series key figures, you should periodically check for inconsistent time series objects using report /SAPAPO/TS_LCM_CONS_CHECK_ALL or /SAPAPO/TS_LCM_CONS_CHECK. The difference between the two reports is simply that /SAPAPO/TS_LCM_CONS_CHECK_ALL runs the report in display mode for all TS planning objects, while /SAPAPO/TS_LCM_CONS_CHECK has a parameter screen that allows the user to choose a planning area and to decide whether to correct the inconsistencies. SAP Note 358283 gives a description of the report.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

12

Monitoring Object Initialize planning version

Monitor Monitor TA/Tool Freq. Report /SAPAP O/TS_L CM_CO NS_CH ECK SM37 As often as you change master data Depending on business process Depending on business process

Monit or Time

Indicator or Error Status

Monitoring Activity or Error Handling Procedure

Responsibility

Escalation Procedure Contact application support

Run the job periodically to Program ensure that processes such scheduling management as delta initialization of the planning area have not created extraneous objects in the liveCache Ensure that job completes successfully Program scheduling management Application support

Initialize planning version Initialize planning version

Status

Contact application support Contact process champion

SM37

Status/mes Whether or not the job sages completes successfully, monitor the messages in the job log to ensure that no errors occurred

See general issues of Error Handling, Restartability and Escalation below.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

13

Business Process Step 2: Load Data
Depending upon your business process, it may be that you periodically load either only transactional data or both master data changes and transactional data into SNP. Transactional data is usually loaded into SNP by a release from Demand Planning to SNP, which is described in the Best Practice Manage Demand Planning in SAP SCM / SAP APO. Master data changes cover the master data objects like location, product, resource, PPM and transportation lane which are assigned to the model as the characteristic combinations. If new master data are loaded into a model, you should perform a model consistency check using transaction /SAPAPO/CONSCHK: in many cases it is preferable to use this transaction to launch a batch job and check the output in SM37 afterwards. The profile used should be restricted to the functionality and data which you are actually using. After loading new master data, the data must be initialized for SNP planning. When the planning area contains time series key figures, this has to be done by reinitializing the SNP planning area in /SAPAPO/MSDP_ADMIN or alternatively, by running report /SAPAPO/TS_PAREA_INITIALIZE. When the planning area does not contain any time series key figures, this can either be done by reinitializing the SNP planning area or automatically by starting SNP interactive planning or SNP mass processing. Additionally, the consistency check report can be used in repair mode. The consistency check should also be executed if the master data are changed in APO but not visible or accessible via SNP. For additional information see SAP Note 577038. Usually, master data changes are sent by CIF from R/3 to SNP. If this is the case, you need to regularly check and update the selection data tables for the Planning Area(s) used for SNP. To do this, execute report /SAPAPO/MCPSH_GEN_SELTAB_MGM. There exists a consistency check for selections, in addition to functions for adding and deleting the functions. However, please read Note 332812 carefully before using this report to automatically correct inconsistencies. All CIF data interchanges should also be monitored as described in the Manage APO Core Interface in SAP SCM. Some customers also load data using a BAPI. If large amounts of data are loaded by BAPI, it is possible that tables /SAPAPO/TSQ* can become very large and cause performance problems. Ensure that only delta records are loaded by the BAPI, and reinitialize the planning area using report /SAPAPO/TS_PAREA_INITIALIZE to prevent this problem.

Monitoring Activities
Apart from safeguarding the general availability and consistency of the system components SAP APO, SAP BW, and SAP R/3 OLTP, to safeguard this business step SAP recommends that you monitor the objects listed in the following table.
Monitoring Object Master data Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error /SAPAP When O/CON data are SCHK modified /SAPAP When O/CON data are SSHOW modified Messages Monitoring Activity or Error Handling Procedure Responsibility Escalation Procedure Contact process champion Contact process champion

Check log of consistency Application check for master data objects support team that display inconsistencies. Check log of consistency check Application support team

Master Data

Messages

See general issues ofError Handling, Restartability and Escalation below.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

14

Business Process Step 3: Safety Stock Planning
There are two types of safety stock methods in SNP: standard methods (SB, SZ, SM, MB, MZ, and MM) and advanced methods (AT, AS, BT, BS). Standard methods are performed in macro SAFETY_CALC, see note 504253 for an introduction. Advanced methods are performed in report /SAPAPO/RSDP_CALC_SAFETY_STOCK (transaction: /SAPAPO/MSDP_SB). In the remainder of this section, only advanced methods are considered. The advanced safety stock methods used in SNP are based on the following assumptions (see also note 617567): Demand is regular, that is, there is demand in almost every planning period, the demand quantities are significantly greater than zero and do not fluctuate too much between planning periods. “Spare parts” is a business area that usually does not meet this assumption. In case of shortage, the missing parts can always be delivered belatedly, that is, no demand gets lost (backorder case). If neither regular stock nor safety stock suffice to cover the whole demand, the remainder is made available using alternative arrangements, for example, rush shipments (no delay approach). All uncertainties in the supply chain are statistically independent of each other. Please be aware that the safety stock values calculated may differ significantly from the correct ones if one or more of these assumptions are violated. In extreme cases, the methods will not calculate any reasonable values. Also, make sure that the supply chain does not contain "cycles" for the location products to be planned. In this context, a cycle is a sequence of PPMs and/or transportation lanes that transform a location product on to its self. If such cycles exist Safety Stock Planning will be caught in an endless loop unless SAP Note 547049 has been applied. Safety stock calculations for different location products are independent of each other. Therefore, the order of calculations is arbitrary. If you need to improve performance, you can execute parallel processing by creating separate variants for transaction /SAPAPO/MSDP_SB and running them at the same time. In general, to avoid lock issues, it is advisable not to make changes to the SNP planning version in which safety stock is run. Please also consider notes 599871 and 600766. Be aware that with release SCM 4.0, the results of extended safety stock planning can no longer be saved in auxiliary key figures, but in time series key figures only. In addition, the previous SNP standard planning folders (9ASNP94, for example) only support the methods SB, SZ and SM for safety stock planning. As of Release SCM 4.0 Support Package 08, a new 9ASNP_SSP SNP standard planning book exists for the safety stock planning, which contains two specific time series key figures for safety stock planning (9ASAFETY, 9ASVTTY). The 9ASNP_SSP folder supports all methods of the safety stock planning in SNP (SB, SZ, SM, MB, MZ, MM, AS, AT, BS, BT). Please consult SAP Note 646738 for details. As of Release SCM 5.0, the Safety Stock for sporadic demand can be calculated with a standard planning profile. This makes Safety Stock Planning also suitable for industries such as spare parts. New fields in the product-location master data also enable a Replenishment lead time determination and the consideration of maximum and minimum Safety Stock Levels As of Release SCM 5.0, it is possible to aggregate the method parameter values, demand, and replenishment lead time on a detailed level and use the results instead of the values from header level.

Monitoring Activities
The monitoring activities needed to ensure that safety stock planning runs are executed correctly are indicated in the table below.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

15

Jobs for Running and Monitoring "Safety Stock Planning" To ensure consistency and good performance of safety stock calculations, schedule the following jobs to run on a regular basis: Calculate safety stocks with advanced methods with report /SAPAPO/RSDP_CALC_SAFETY_STOCK. This report calculates the safety stock associated with reorder point methods (either alpha or beta service level; reorder cycle or reorder point). When checking the spool file, look especially for messages in the form of: "Product &1 in location &2 cannot be procured.” This indicates an error in the procurement type for the location product, which should be corrected by the application support team. Most commonly, the error is caused by a location product with procurement type E (in-house production) for which there is no valid PPM. For such location products, no safety stock can be planned since there is no way to procure it. When checking the job in SM37, in addition to looking for jobs which cancelled, also look for large values in the field Delay(sec), which might indicate that the job had to wait for another process to release locked data, and make a note of which other processes were running concurrently.
Monitoring Object Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Each time the report is run Monitoring Activity or Error Handling Procedure Check spool file for errors. Look for large values of Delay (sec) in SM37. Responsibility Program scheduling management Escalation Procedure Contact application support team.

APO Report SM37 /SAPAPO/RS DP_CALC_SA FETY_STOCK

See general issues of Error Handling, Restartability and Escalation below.

Business Process Step 4: SNP Heuristic Run
In Release 3.x, the SNP heuristic performs infinite planning for the supply chain. It can be run in one of three modes: Multilevel (all products at all locations), Network (all locations, but BOM is only exploded to one level) or Location (all products at one location, but a full BOM explosion takes place). In Release SCM 4.x, the handling of heuristic has been enhanced (not for interactive planning). For transaction /../snp01, the following changes have been made: The heuristic can be executed in two modes. Network (selected products in all locations) or Location (selected products in selected locations). In addition to both modes, you can set a flag to perform a full BOM explosion. This enables to plan a part of the network but on all levels. o For this, the report /sapapo/rsnpllcset has to be performed to determine the low-levelcode of all products of a version. This should be done on a regular basis but has to be done after relevant master data changes (for example, transportation lanes or PPMs) Use of the Net Change planning flag is not recommended, unless the number of location products is high and the number of changing demands is comparatively small. Net change planning is only available in the active version (000). The entries of objects flagged for net change planning can be viewed from transaction /SAPAPO/RRP_NETCH. When there is enough demand, it can be cheaper to distribute directly from the plant to the customer. The Planning algorithms are up to SCM 4.x not able (except partly the optimization) to take this into consideration, especially because this is typically a multi-product decision. In SCM 5.0 the SNP Heuristic is enabled to decide for a direct ship, instead of considering the quotations. For this a Transport Load Builder check is carried out to comply to load limits on multiple products.

SCM 5.0 allows users to perform an SNP run on an aggregated level, by defining hierarchies for products and locations to be taken into account by the SNP heuristic, A disaggregating logic is available to ensure that plans are consistent at all levels of aggregation and the Interactive Planning offers extended drilldown options for displaying the planning results. Larger supply chain models can be planned, performance improvements by calculation on aggregation levels can be achieved and the planning process is simplified. © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

16

To set up the aggregated planning in SNP:
1. Define the aggregated planning objects (MD aggregates: location aggregates, product aggregates, BOM/Routing aggregates, resource aggregates) 2. Define the relations between aggregated objects and detailed objects (define location-producthierarchies, BOM/Routing hierarchies, resource hierarchies) 3. Generate aggregated transactional data based on the definition of aggregated master data 4. Perform Supply Network Planning based on aggregated master data and transactional data 5. Disaggregate planning result to detailed level (optional)

To set up interchangeability in SNP Heuristic:
In Supply Network Planning (SNP), both heuristic-based and optimization-based planning take into account the interchangeability of products. You can use product interchangeability in the Supply Network Planning run to transfer demands for a product that is to be discontinued onto a successor product for instance, or to use existing stock of a current product to fulfill demand for the successor product. SNP supports the following product interchangeability methods: Supersession chain FFF classes You have to use the standard SNP planning book called 9ASNP_PS with data view PROD_SUBST to be able to take product interchangeability into account in Supply Network Planning. This planning book contains the required key figures Substitution Demand and Substitution Receipt and an adapted macro (that takes these key figures into account) for calculating the stock balance. However, you can also create your own planning book based on this standard planning book. To set up an interchangeability scenario, you need to define the necessary interchangeability master data, that is, either a supersession chain or an FFF class. You can do this via transaction /INCMD/UI. For interchangeability, only location heuristic run is allowed; you perform this either in Interactive planning (using planning book/data view 9ASNP_PS/ PROD_SUBST) or in transaction /SAPAPO/SNP01. If you run interchangeability scenario via transaction /SAPAPO/SNP01, make sure you have the flag “Add products from supersession chains” set. After running the SNP heuristic with interchangeability scenario, in the application log you will see information about the number of substitution orders created, also you have the possibility to access the details of the substitution orders. Some special features as of SCM 2007: You have the possibility to control how existing stock is used up with BADI /SAPAPO/SNP_INC_STFW You have the possibility to control the handling of horizons with BADI /SAPAPO/SNP_INC_HRCH Stock is forwarded over the whole supersession chain Validity of interchangeability rules are considered at target locations as well Stock forwarding algorithm with FFF classes is also enhanced, a member product can forward stock directly to another member products.

If the heuristic run is executed in Version 000, the inbound or outbound queues in the R/3 system should be locked during the time of the heuristic run:

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

17

If you cannot rule out that, during the heuristic run, data will be transferred from an SAP R/3 system to the SAP APO system (or from APO to R/3) over the core interface (CIF), you can lock inbound or outbound queues in the SAP R/3 system from the SAP APO system. This should prevent inconsistencies occurring in the planning if, during the heuristic run, transaction data is transferred from SAP R/3 to SAP APO that is ignored by the heuristic. To lock outbound queues, you can use the /SAPAPO/CIFSTOPQUEUES and /SAPAPO/CIFSTARTQUEUES reports in SAP APO. Reports RSTRFCI1 and RSTRFCI3 are available for locking inbound queues. See also SAP note 487261 / 528913. Occasionally, with the import of a support package, the length of data fields in report variants can change, which can cause inconsistencies if not corrected. Fortunately, this problem can be alleviated by running report RSVCHECK after implementation of a new support package.

Monitoring Activities
Regarding SM37: when several heuristics identify large values of “Delay (sec)”, it is recommended that you investigate the possibility that another process (or several parallel jobs) is locking one another. While the processes are running, locks on the APO database can be seen with transaction SM12.
Monitoring Object APO report /SAPAPO/RS NPDRP1 This report performs the SNP heuristic run. Monitor Monitor TA/Tool Freq. SM37 Depends on business process Monit or Time Indicator or Error Status Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. Also check the column “Delay(sec)- large values may indicate that another process was locking the job, and it waited for the other process to finish. If the report is not scheduled as provided by Application Support, schedule it accordingly. Spool file of report /SAPAPO/RS NPDRP1 SM37 As often as heuristic is executed As often as heuristic is executed On a regular base but after relevant master data changes Once a month, or after importing new support packages Log file Check whether the spool file has any error messages, or strange results (e.g. many orders, each with a quantity of 1 for the same locationproduct on the same date) Check whether the spool file has any error messages. Application Support Contact process champion Responsibility Program scheduling management Escalation Procedure Contact application support

Application log Slg1 of report /SAPAPO/RS NPDRP1 SCM report /sapapo/rsnpll cset Sm37

Log file

Application Support

Contact process champion

Status

Look for error messages like cycles. They are not allowed for SNP.

Program scheduling management

Contact process champion

Report variants

RSVCH ECK

List of variants with problems

Check if any variants have problems

Program scheduling management

Contact application support

See general issues of Error Handling, Restartability and Escalation below. © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

18

Business Process Step 4a: CTM Planning Run
Critical steps in CTM
The three critical areas for performance during CTM run are loading and preprocessing of data, runtime of CTM engine and the writing of the results to liveCache. In case of performance problems, it is crucial to determine which of the areas is critical -> Please see section “Monitoring Activities” for details. The most common reasons for poor performance are: 1) Slow reading and preprocessing of data: a) Order selection is slow: - due to deletion of orders taking too long - due to many orders being selected - due to pegging being analysed Possible solutions: - Filter demands and supplies considered by date - Reduce the planning horizon considered – for example, try to consider planning runs with shorter horizon during the week and with long horizon on weekends - Optimize the parameter package size for orders selection in /n/SAPAPO/CTMCUST - Verify whether you really need all the selected location-products to be planned for b) Reading further data (products, PPMs, resources, transports) is slow Possible solutions: - Filter master data using only actively planned (by CTM) objects; - Verify whether, for example, all the activities of a PPM need to be planned as well by CTM c) Slow prioritization of demands Possible solutions: - Of course the time for prioritization is depending on the amount of selected orders, so primary goal should be to only select the ones necessary for the CTM run - In the time for prioritization of demands, rule determination and evaluation are also included. Best for performance here is of course to use setting “Do Not Apply Rules”. However, if rules are necessary try to use “Apply Default Rule” instead of “Apply Rules!” and evaluate whether planning parameter “DEFAULT_RULE” is applicable (see SAP Note 441723). 2) CTM engine is slow: Possible solutions: - Use Aggregation - Reduce horizons for late and early demand fulfillment as much as possible - Filter demands by order category and date

3) Writing to liveCache is slow: Possible solutions: © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

19

- Use asynchronous liveCache update - Optimize package size for creating orders - Optimize package size for creating pegging relationships - Optimize package size for asynchronous liveCache update

Important additional performance settings
Some specific performance relevant settings and referral notes are briefly discussed in the following paragraphs: Set the indicator “Do not Evaluate Pegging Relationships” in the technical settings of the CTM profile, to delete all non-firm orders without any further checks. (In APO 3.0A and 3.10 this setting must still be carried out via the planning parameter “FAST_DEL”.) The system then does not check, for example, whether a pegging relationship exists between an order and a demand that lies outside the planning horizon. This means that the system will certainly delete the order. If you do not require these checks, you can set the indicator to shorten the runtime of the order selection. If all orders lie within the planning horizon, checks are not required as the result of the order selection is the same with or without the checks. Note that this indicator must not be used in connection with subcontracting, as the system must evaluate pegging relationships for deleting subcontracting orders. Also, only use this indicator with planning mode “Replan all Orders” and deletion mode “Delete all Non-Firm Orders”. If this functionality is used in combination with a master data selection, all orders which contain at least one location product of the master data selection will be deleted. For more information about this setting, refer to note: 533457. During the demand prioritisation and supply categorisation, the demands and supplies are stored in database tables /SAPAPO/CTMDEM, /SAPAPO/CTMSUP, /SAPAPO/CTMMAP). These database tables can grow with every new CTM profile, new planning version in a CTM profile. During a CTM planning run for the current CTM profile and planning version entries for demands and supplies are deleted form the database tables, entries are created and entries are read to be handed on to the CTM engine. If there are many entries in the database tables, the delete/read/write accesses can be time consuming. If these tables contain many entries, they can be deleted by using program /SAPAPO/CTM_DEMSUP_DELETE Also see note 375174 for further details. The table entries are automatically deleted if the planning version is deleted or the CTM profile is deleted. With release SCM4.1, it is possible to decide (customizing setting) if these tables should be updated for a CTM planning run or if the data is directly transferred. Asynchronous liveCache update: The default setting of the CTM engine is synchronous liveCache writing. This means that after the CTM engine has finished, the system starts writing the whole result to the liveCache. When changed to asynchronous update, writing is carried out in parallel to planning. After finishing a certain planning package (a planning package is finished after a specified number of demands were planned by CTM) the result is written to the liveCache while the CTM engine continues planning. In cases where liveCache time and engine runtime are approximately the same, this setting can save up to 50% of the time, as those steps will then run in parallel. The runtimes of “order selection” and “writing to liveCache” also strongly vary according to the chosen package sizes. The relevant parameters are maintained in /SAPAPO/CTMCUST. However, the package size parameter for asynchronous liveCache updates can also be maintained via the variable planning parameter “PackageSize” for each CTM profile. Please consider the following points for optimal settings for these parameters: 1. The setting for Order Selection is based on location-products rather than on number orders. If, for example, the parameter is set to 5000, CTM reads the orders for the first 5000 location products in one package from liveCache. If the average amount of orders per location product combination is a. 0.2 (each fifth loc-prod. has an order), the result is 1000 orders per package b. 10 (each loc-prod. has on average 10 orders), the result is 50000 orders per package As you can see, this setting strongly depends on the orders (including fixed orders, PP/DS orders) existing per location-product. Therefore, it is important to try different settings to clarify performance issues. As a guideline, SAP expects values of 10000-50000 orders per package for optimal performance © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

20

2. The setting for the package size for asynchronous liveCache Update considers the existing requirements and creates orders for them. The PackageSize parameter determines here the number of requirements considered before sending the resulting orders to liveCache. The possibility exists that several orders have been created per requirement or just one. Therefore, the parameter does not imply that the package includes 500 orders, if this is the current setting; it only means that 500 requirements are considered and the respective orders sent in one package. It is only necessary to change this parameter if the CTM engine is waiting for the liveCache (the queue for packages to be transferred to liveCache increases as liveCache is not dealing with the necessary updates fast enough). One can then look into the CTM Application log and find the number of orders transferred per package depending on the most relevant categories: a. planned orders / production orders b. purchase requisitions c. transport orders

d. substitution orders The amount of orders per package coming from these categories together should result in at least 5000 orders per package to have optimal performance. Note that using CTM in parallel is not usual and often not practical. Before using CTM in parallel it is crucial to verify that the two (or more) subproblems to be run in parallel are truly and completely independent / non-overlapping! Refer to SAP Note 430688 for more information.

Monitoring Activities
CTM Run Monitoring the CTM run includes understanding how long each of those three steps takes approximately to see where possible problems may be situated. For this information to be recorded, you need to have the “Save CTM messages”-Box on the “Settings”-tab in the CTM profile activated, which results in a brief application log being written. To find the information written in th log go to: - /SAPAPO/OPT11, then select the appropriate CTM run and click and press on the “Log”-icon, or - /SAPAPO/CTM -> result analysis -> display logs and choose the appropriate log from the list; from here the times and the warning messages should be regularly analyzed after CTM runs. 1) Estimate for loading data and preproccesing: end time of reading transports - start time of selecting orders; 2) Rough estimate for CTM engine runtime (This might be wrong with asynchronous liveCache update, if the writing is so slow that the CTM engine stops. In case of doubts about the runtime estimate for the CTM engine, the CTM trace file has to be looked at and the time stamps for “Engine Start” and “Engine Finished” have to be considered; this time estimate is more exact, but also more time consuming;): end time of entry for CTM Planning run in SM37->Job log - end time of reading transports; 3) Rough estimate for writing data to liveCache: Sum of the differences between End and Start times of each package to be written to liveCache. 4) In case there is safety stock being build up, there will be a second CTM run after the end of the first one. Determining times here works accordingly.

CIF Queues In addition to those steps, please notice that the CIF Queues should be locked during the execution of the planning run to prevent inconsistencies. Please see SAP Note 528913 for a full discussion. Note that this does not apply if the CTM run is executed on an inactive planning version. Also note that you

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

21

should upgrade your CTM engine in parallel with support package upgrades to ensure optimal functionality and performance. In general it is always good to take the newest available CTM engine.

Deleting locks after short dump during CTM run In the event of a short dump during the CTM run, there are two options to delete locks which prevent a new start of the CTM engine: 1) Delete CTM engine run manually in transaction /SAPAPO/OPT03 before another run can be started. See Note 393634 for details. They are also deleted by the job /SAPAPO/OM_REORG_DAILY, which should be run once a day, but NEVER concurrently with any optimizer or CTM runs. 2) Enter the planning profile via /SAPAPO/CTM. Jobs and Tools for Running and Monitoring "CTM Planning Run" To safeguard the functionality of the CTM planning run, refer to the monitoring jobs in the table below. For an additional list of transactions used to set up the engine during installation or changes to the optimizer server, refer to the section Monitoring APO Optimizers in the Best Practice: Monitoring and Administration for SCM/APO.

1. To run CTM in the background, use the CTM report /SAPAPO/CTMPLRUN. There are two options for deleting locks which prevent a new start of the CTM run in the event of a short dump during the CTM run: a. Delete the run manually in transaction /SAPAPO/OPT03 before another run can be started. See Note 393634 for details. Locks are also deleted by the job /SAPAPO/OM_REORG_DAILY, which should be run once a day, but NEVER concurrently with any optimizer or CTM runs. b. Enter the planning profile via /SAPAPO/CTM. This will automatically delete the lock table entries 2. To verify that the optimizer server is running correctly during the run: a. Lists of users and processes running on the optimizer server can be seen from transactions /SAPAPO/OPT03 and /SAPAPO/OPT12 respectively. With these transactions, you can check whether processes are still active on the optimizer server. These transactions are usually only used for problem analysis beyond the CTM engine, for example, in case of hardware or operating system problems on the optimizer server.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

22

Monitoring Object APO report CTM: /SAPAPO/C TMPLRUN This report runs the CTM in the background CTM application log

Monitor Monitor TA/Too Freq. l SM37 Dependi ng on your process.

Monitor Time

Indicator or Error Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility

Escalation Procedure

Contact Program scheduling application managemen support t

/SAPA PO/CT M -> result analysi s -> display logs or /SAPA PO/CT MAPL OG SM37

After every run

Message Type

Review messages in log with stop, red or yellow indicator

Application support

Contact process champion

Spool file

After every run

Messages Check for application errors after the CTM run, in spool too. file

Application support

Contact Process Champion

Optimizer Logs

/SAPA In case PO/OP of cancella T11 tion of engine or for perform ance analysis Daily

Check for errors and time stamps

Display and analyze logs in this section, if there is no result delivered from the optimizer.

Application support

Contact Process Champion

/SAPAPO/O SM37 M_REORG_ DAILY Among its other activities, this job will delete database entries and files on the optimizer server which are no longer needed.

Check if job is running as scheduled. If the report is not scheduled as provided by software monitoring team, schedule it accordingly.

Program scheduling managemen t

Contact software monitoring team support

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

23

Monitoring Object Master Data consistency check

Monitor Monitor TA/Too Freq. l /SAPA PO/CT M -> Edit -> Check your data After master data changes

Monitor Time

Indicator or Error

Monitoring Activity or Error Handling Procedure

Responsibility Application support

Escalation Procedure Contact process champion

Check for This job will identify any inconsiste inconsistent data prior to running the CTM run ncies

User list for Optimizers Running optimizer processes

/SAPA See PO/OP above T03 /SAPA See PO/OP above T12

Displays a user list of optimization runs Displays a list of optimizer processes on the optimization server

Software monitoring team Software monitoring team

Contact application support Contact application support

See general issues of Error Handling, Restartability and Escalation below.

Business Process Step 5: SNP Optimizer Run
The CIF Queues should be locked during the execution of the planning run to prevent inconsistencies. Please see SAP Note 528913 for a full discussion. Note that this does not apply if the optimizer is executed on an inactive planning version. Also note that you should upgrade your optimizer in parallel with support package upgrades to ensure optimal functionality and performance. To get an overview of the optimization system steps, refer to note 587407. To improve the performance of an optimization run, refer to note 485018; in addition, simply set the field “Number of Processes” in the background transactions for the optimizers. It will spawn parallel processes during some portions of the data read and model creation of the optimization run. Note that a single optimization-based planning run can use only one CPU on the optimizer server. Care should be taken that the number of processes does not exceed the number of available batch processes for this user on the system. Due to the runtime and memory requirements of the optimization engine, we must also think about the model size and complexity. For an optimal performance of the optimization engine, see note 454433. In the event of a short dump during the optimizer run, the optimizer run must be manually deleted in transaction /SAPAPO/OPT03 before another run can be started. See Note 393634 for details. They are also deleted by the job /SAPAPO/OM_REORG_DAILY, which should be run once a day, but NEVER concurrently with optimizer runs. If several optimization runs are carried out in parallel, they should never have the same names. Also ensure that you have applied Note 572220 (APO 3.0A, SP23; APO 3.1A SP13) to prevent loss of optimizer result logs. In addition, if you ever run two optimizer runs simultaneously, be sure to set the parameter enque/delay_max in transaction RZ11 as described in consulting note 572996 to avoid lock problems. SCM 5.0 allows users to perform an SNP run on an aggregated level, by defining hierarchies for products and locations to be taken into account by the SNP heuristic, A disaggregating logic is available to ensure that plans are consistent at all levels of aggregation and the Interactive Planning offers extended drilldown options for displaying the planning results. Larger supply chain models can be planned, performance improvements by calculation on aggregation levels can be achieved and the planning process is simplified.

To set up the aggregated planning in SNP: 1. Define the aggregated planning objects (MD aggregates: location aggregates, product aggregates, BOM/Routing aggregates, resource aggregates) © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

24

2. Define the relations between aggregated objects and detailed objects (define location-producthierarchies, BOM/Routing hierarchies, resource hierarchies) 3. Generate aggregated transactional data based on the definition of aggregated master data 4. Perform Supply Network Planning based on aggregated master data and transactional data 5. Disaggregate planning result to detailed level (optional) It is sometimes difficult to understand the results of the optimization, and to easily answer questions such as “what is the reason for shortfall quantities of a specific product?”, "where are resource or material constraints?”, and "what are the reasons for specific sourcing decisions?”. In SCM 5.0, an explanation tool is introduced delivering additional information in the optimizer log for more detailed explanation of the planning result. The user can choose the explanation goal, the level of detail where more information is required, and the precision of the explanation. In SCM 5.0, costs can be generated automatically based on few initial settings for storage, PPMs, transport, procurement, safety stock penalty, non-delivery penalty and late-delivery penalty. Business Logic can be expressed in a simple way that enables an economical interpretation.

Monitoring Activities
The following table describes how to monitor and ensure the correct functionality of the optimizer run. Jobs for Running and Monitoring "SNP Optimizer" and “Deployment Optimizer” (APO) To safeguard the continued functionality of the optimizer, refer to the monitoring jobs in the table below. For an additional list of transactions used to help set up the optimizer during installation or changes to the optimizer server, refer to the section Monitoring APO Optimizers in the Best Practice: Monitoring and Administration for SCM/APO. To run the optimizer in the background: Use for SNP report /SAPAPO/RMSNPOPT and Deployment report /SAPAPO/RMDPLOPT. To verify that the optimizer is running correctly during the run: Lists of users and processes running on the optimizer server can be seen from transactions /SAPAPO/OPT03 and /SAPAPO/OPT12 respectively. It is recommended that these be checked periodically to ensure that everything is functioning as expected. After the planning run is finished: Use transactions sm37, and the optimizer logs in /SAPAPO/SNPOPLOG and /SAPAPO/OPT11, and the resulting costs from the optimization run /SAPAPO/SNP106 to verify that the run was executed without problems, and that the results are as expected.

Monitoring Object APO report SNP: /SAPAPO/RM SNPOPT Deployment: /SAPAPO/RM DPLOPT This report runs the optimizer in the background Optimizer log

Monitor Monitor TA/Tool Freq. SM37 Dependi ng on your process.

Monitor Time

Indicator or Error Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility Program scheduling management

Escalation Procedure Contact application support

/SAPAP After O/SNP every run OPLOG

Status

Review messages in log with red or yellow status

Application support

Contact process champion

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

25

Monitoring Object Verify and maintain RFC connections

Monitor Monitor TA/Tool Freq. SM59 During installatio n or after config changes After every run

Monitor Time

Indicator or Error Status

Monitoring Activity or Error Handling Procedure Check that the TCP/IP connection to the optimizer server is open and functioning correctly.

Responsibility

Escalation Procedure

Contact Program software scheduling management. monitoring team Application support Contact Process Champion Contact Process Champion

Spool file of optimizer run SNP Optimizer Resulting Costs, also for Deployment

SM37

Messages Also check for application in spool file errors after the optimizer run. Results summary of the SNP Optimizer

Transac After every run tion /SAPAP O/SNP1 06

Check for reasonability of the Application results: for example, whether support the optimizer run has decided not to produce anything. Among its other activities, Program this job will delete database scheduling management entries and files on the optimizer server which are no longer needed. This job will identify any inconsistent data prior to running the optimizer run Application support

/SAPAPO/OM /SAPAP During _REORG_DAI O/OM_ installatio LY REORG n or after _DAILY config changes Consistency check /SAPAP After O/CON each SCHK change to master data /SAPAP As O/OPT1 required 1 Check for errors

Contact software monitoring team Contact process champion

Optimizer Logs

Display and analyze logs in this section, if there is no result delivered from the optimizer.

System and application monitoring teams

Depending on error type: system or application monitoring team

User list for Optimizers Running optimizer processes

/SAPAP As O/OPT0 required 3 /SAPAP As O/OPT1 required 2

Displays a user list of optimization runs Displays a list of optimizer processes on the optimization server

Basis support Contact application team Basis support Contact application team

See general issues of Error Handling, Restartability and Escalation below.

Business Process Step 6: Capacity Leveling
The SNP heuristic performs only infinite planning: that is, without considering the available capacities of resources. To create a feasible plan, it will sometimes be necessary to adjust the results of the SNP heuristic to change the production times of quantities to ensure that no resource is overloaded. SNP Capacity Leveling underwent a complete redesign in SCM 4.0. The new version is also available in APO 3.0 as of SP 22 and in APO 3.1 as of SP15 as an alternative to the original version. Among other features, the new version offers three different leveling methods - heuristic, optimizer, and BADI. It is activated by creating a user parameter /SAPAPO/SNPCAP with value 'X'. Both versions can be executed interactively from transaction /SAPAPO/SNP94. Click on the icon "Capacity Leveling" in Capacity View. The new version can also be executed as a background job using transaction /SAPAPO/SNP05. Further information on the new version, including full documentation, can be found in release note 564702.Due to the improvements made in Capacity Leveling regarding result quality, performance, and stability we would like to encourage customers to test the new version for their business scenario and to use it instead of the original if it works well. As of SCM 5.0, a resource can be also leveled with alternative resources in the same location, depending on the existing alternative PPM/PDS

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

26

For performance, consider the recommendations in Note 493258. Use an auxiliary table rather than the macro function for getting the date, and use macro function ACT_VERSION instead of macro function KEYFS_VERSION.

Monitoring Activities for Capacity Leveling
Jobs for Running and Monitoring "Capacity Leveling" (APO) The following table describes how to monitor the capacity run. Capacity Leveling: Execute transaction /SAPAPO/SNP94 and change to data view SNP94(2). If the Capacity View shows any resource overloads click on the Capacity Leveling icon in change mode. If necessary, you can select those planning periods and/or products that should be processed. In addition, the three alert macros may be run either within interactive planning or in the background to identify exceptional situations such as resource overload or under load. Capacity Leveling in Background (new version only): in addition to launching the job, you should monitor the job using SM37.
Monitoring Object Capacity leveling in interactive planning Monitor Monitor TA/Tool Freq. Alerts Depends on business process Monit or Time Indicator or Error Alerts Monitoring Activity or Error Handling Procedure Look for fields which are colored red due to exceptional resource situations. Run directly executable macros to measure capacity under load and overload situations. Ensure that job is scheduled and runs without error. Responsibility Application support team Escalation Procedure Contact process champion

Capacity run in background (new version)

SM37

Depends on business process

Status

Program scheduling management

Contact application support team

See general issues of Error Handling, Restartability and Escalation below.

Business Process Step 7: SNP Interactive Planning
In the following section, we discuss transaction /SAPAPO/SNP94, as most customers using CTM use this transaction for interactive planning. However, it is also possible to use PP/DS transactions like /SAPAPO/RRP3, depending on the customer scenario, for example, in some cases when using CTM. In such a case, please refer to the Best Practice document Manage Production Planning in SCM / APO. Within transaction /SAPAPO/SNP94, you can do almost everything that SAP APO Supply Network Planning offers. In particular, you can evaluate planning results, compare different scenarios, enter management overwrites, correct key figures manually, run macros, aggregate data, and create or view alerts. Supply Network Planning supports online simulation in multiple planning scenarios, consistent planning throughout your enterprise, drilling up and down, and aggregation. As of SCM 5.0, planning can be performed within aggregated data; this is displayed accordingly in Interactive Planning For performance reasons, any interactive processing of data should be restricted to very small data volumes by specifying the selection criteria as far as possible. This is independent of when this planning step takes place, for instance before or after a planning run. Tasks that can be performed without direct user interaction, for example, because they take place at a certain point in the business cycle where real-time feedback to online users is not required, should be performed as batch jobs rather than interactively. While tables of selection variants are usually not a problem in release 3.0A and higher, a description of monitoring and managing them is given in Note 376383. For systems with large numbers of interactive users, periodically deleting unused selections may become necessary. © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

27

If you are using notes management within interactive planning, we also recommend periodically executing report /SAPAPO/TS_GEN_DOCTAB_CHECK to eliminate possible inconsistencies in the notes. However, please read Note 332812 carefully before using this report to automatically correct inconsistencies. Please note that, for performance reasons, SNP interactive planning defaults to “display” mode when a user enters. This can be changed by altering user parameter /SAPAPO/SDP94_D_MODE, as described in Note 401830. Also in this note it is stated that it is possible to write a BADI to override the default display. You might want to do one of the two for a number of reasons; for instance, when a user switches from display to change mode, the data must be reread to set the appropriate locks. In some cases, you may wish to define one or more separate planning books for use with SNP interactive planning. Some hints on the design and usage of planning books and macros for interactive planning can be found in are listed below: (see also SAP Notes 398726 and 542341): Create a separate planning book for each user that contains only the views, macros, key figures, and any other views that are used by that individual user. In addition, users who perform more than one task type should consider creating more than one planning book to accommodate each task type. Minimize the number of default macros used for SDP interactive planning; see if any of these can be executed less frequently as start, end, or drill-down macros. In addition, each online user should verify that the macros in her/his planning book are all used regularly as part of the standard business practice and remove any which are not. Implement composite time bucket profiles with coarser time buckets in the long-term past and future, and fine time buckets only near the present time. For example, showing a year as 9 weeks and 10 months will dramatically improve the performance without decreasing the time period shown. Also, any users who do not actively view and use historical data should consider the “history not shown” flag as this allows macros to use the data without loading the data onto the screen. Each online user should create several selection variants to restrict the number of characteristic combinations considered to those which s/he needs for a specific task.

Monitoring Activities
Apart from safeguarding the general availability and consistency of the system components SAP APO, SAP BW, and SAP R/3 OLTP, SAP recommends that you monitor the objects listed in the following table in order to safeguard this business step. Jobs for Running and Monitoring "SNP Interactive Planning (APO)" To ensure a timely and efficient notification of exceptions in Supply Network Planning, schedule the following jobs to run on a regular basis: Send Alert Monitor mails with report /SAPAPO/AMON_MAIL_BROADCAST. Depending on user profiles, mails are sent with an overview of existing alerts. The responsible persons then should call up the APO Alert Monitor, investigate the reasons for the alerts and take corrective actions in order to keep the production plan close to the needs of your company. Delete Alert Monitor alerts with report /SAPAPO/AMON_REORG. It deletes old alerts and is of particular importance if you use alerts stored in the database. Information on database alerts and dynamic alerts in Demand Planning can be seen in the APO Alert Monitor and below.

Monitoring Object APO Alert Monitor

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error /SAPAP At least O/AMO daily N1

Monitoring Activity or Error Handling Procedure Check for forecast alerts and SDP alerts and correct the planning for the reported object appropriately.

Responsibility Application support

Escalation Procedure Contact process champion

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

28

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Daily Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the report is not scheduled on a regular basis, schedule it to run from between every hour to at least daily, depending on your requirements.

Responsibility Program scheduling management

Escalation Procedure Contact software monitoring team

APO report SM37 /SAPAPO/AM ON_MAIL_BR OADCAST This report ensures sending of mails about existing alerts. Alert Monitor mails SO01 (or respecti ve email system) SM37

Dependi ng on your require ments, at least daily. Weekly Status

Check if the mail lists alerts Application that are important for you. Go support to APO Alert Monitor and process the alerts appropriately.

Contact process champion

APO report /SAPAPO/AM ON_REORG. This report deletes Alert Monitor alerts.

Check if job is running as scheduled. If the job is not scheduled on a regular basis, schedule it to run once a day.

Program scheduling management

Contact application support

See general issues of Error Handling, Restartability and Escalation below.

Business Process Step 8: Shelf Life Propagation
As of release SCM 2007, SNP is able to monitor shelf life (maturation and expiration of perishable products) along the supply chain. See note 1072022 for a detailed description of the new functionalities. Shelf life is only considered for products where the planning with shelf life flag is set at the “Properties” tab page of the product master. Here, you can set default shelf life values that are assigned to all orders created by SNP Planning applications. Sales orders can be enabled to be transferred from R/3 with shelf life requirements (see notes 391018 and 483576). The shelf life values of forecasts released from DP can be set by the implementation of method CHANGE_RELDATA of BAdI /SAPAPO/SDP_RELDATA. Shelf life of batches assigned to stocks can be also integrated (see note 751392). Shelf life of purchase requisitions is integrated as of release SCM 2007. SNP planning applications do not consider shelf life (except for the SNP Optimizer - see Note 579556) and they create orders with default shelf life values. The role of shelf life propagation (transaction /SAPAPO/SNP10) is to propagate valid shelf life values to orders created by planning applications. The propagation is done in a top down direction, starting from initial demands and ending with planned orders or purchase requisitions. It is important to note that Shelf Life Propagation is not a planning tool, so it does not change any other attribute of the orders than the shelf life values (except if run in order split mode). Shelf life propagation has to be run after planning applications have changed the orders, because they reset the shelf life values. Therefore, it can be considered to re-run shelf life propagation as Business Process Step 17, after the Deployment run. The connection between demands and receipts in the propagation network is determined using the dynamic pegging functionality of liveCache, so in order that propagation works correctly, the settings on the “Pegging” tab page of the “Demand” tab page of Product master have to be considered. Especially, it is advised to extend the “Maximum Lateness of the Receipt” from the default 0 hours value because SNP Planning applications usually create late receipts due to the bucket oriented nature of the planning. © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

29

In addition to shelf life propagation, the shelf life attributes of orders can be manually modified in Interactive Planning Detailed View, in planning book 9ASNP_SHLF, data view SHELF_LIFE.

Monitoring Activities
The results of shelf life propagation can be monitored in SNP Interactive Planning using planning book 9ASNP_SHLF, data view SHELF_LIFE. The data view contains shelf life specific keyfigures and alerts. The keyfigures are: Stock on hand (shelf life) and Supply shortage (shelf life) can be used to monitor projected stock situation considering shelf life, like for example the expiry of stock elements Projected wastage and Expiring quantity can be used to monitor the wastage of stocks due to expiration. Shelf life specific macros are available to generate shelf life alerts based on the values of the shelf life keyfigures, for example when there is a projected wastage or when the demands cannot be satisfied with available stock, due to shelf life restrictions. Shelf life attributes of orders can be visualized in the Shelf Life View. The Shelf Life View, (if available – the planning book needs at least one shelf life related key figure) can be started from interactive planning with the Shelf Life View button, or from the context menu of the grid’s top-left corner. For displaying Shelf Life View, a Shelf Life Profile is needed. The Shelf Life Profile can be set up in the transaction /SAPAPO/SNP_SHLFPROF.
Monitoring Object Interactive Planning or APO Alert Monitor Monitor Monitor TA/Tool Freq. /SAPAP At least O/SDP9 daily 4 or /SAPAP O/AMO N1 As often as planning runs are executed Status Check if job is running as scheduled. If the report is not scheduled on a regular basis, schedule it to run after the SNP planning applications, depending on your requirements. Log file Check whether the spool file has any error messages. Program scheduling management Contact software monitoring team Monit Indicator or Error or Time Monitoring Activity or Error Handling Procedure Responsibility Escalation Procedure Contact process champion

Check for shelf life alerts and Application support correct the planning for the reported object appropriately.

SM37 APO report /SAPAPO/RS NP_SHLF_PR OP (shelf life propagation).

Application log Slg1 of report /SAPAPO/RS NPDRP1

As often as propagatio n is executed

Application Support

Contact process champion

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

30

Business Process Step 9: Execute Batch Macros
In SNP, the usual reasons for creating batch macros are either to perform calculations and evaluations of alert situations, or to calculate additional quantities and save them to time series key figures. After the planning run and manual adjustment, it is often desirable to monitor alert situations or calculate quantities in time series key figures using batch macros run in SNP Planning Areas. For manual corrections, see Business Process Step 7: SNP Interactive Planning. Some hints on the design and usage of macros for batch processing: Create a separate planning book for each macro background job. The planning book should contain only key figures used by the macro itself, and only macros executed as activities by the mass processing job. The planning book should only contain one planning view. A different planning book should be used whenever different key figures are needed by two macros, and a different data view whenever the time periods are different. Remove all unused macros from planning books associated with mass processing jobs, as they can be very performance-intensive and are not helpful to your business process. The planning book used for batch macros should have only the functionality it uses: in the case of SNP macros, the planning book should have no macros selected. All macros in mass processing should be defined as manually executable, and only in the planning book for the mass processing job in which they are used. In general, you do not need automatic macro execution for mass processing jobs. Furthermore, defining macros as default macros and to be executed at another time is redundant and extremely performanceintensive, since default macros are executed upon entry, loading a selection, changing data, and exit. Create several background jobs with roughly equal numbers of location products and run them in parallel. Make sure that no individual location product belongs to more than one selection variant, as this can cause lock issues. If you need to run two macros on the same key figures with the same level of aggregation, put both into one planning book and execute them as two actions within the same background activity (defined with transaction /SAPAPO/MC8T, see below). You thus save the time needed for loading the data again. For the high data volumes usually considered in background processing, use database alerts rather than dynamic alerts. When reading and writing alerts from the alert table in the APO database (table /SAPAPO/AM_ALERT), minimize the number of steps which manipulate alerts. Also, try to use “Delete” rather than “Delete in Context”, and “Add” rather than “Update in Context” whenever possible. For general advice on creating alerts in background jobs, please refer to consulting Note 521639.

Monitoring Activities
Apart from safeguarding the general availability and consistency of the system components SAP APO, SAP BW, and SAP R/3 OLTP, to safeguard this business step, SAP recommends that you monitor the objects listed in the following table. The frequency of executing these Supply Network Planning batch jobs can vary significantly depending on the business process for which the scenario is built. Macros that check for alert situations - particularly those related to Deployment and TLB - may be executed as often as daily, while other jobs, such as adjusting data released from DP to SNP, may only be executed once a month. Accordingly, the frequency of monitoring the jobs and deleting the SDP Job Logs depends on how often you run these functions. For dependencies and concurrent execution of jobs, see Operational Management – Parallel and Concurrent Execution of Jobs. Please also refer to Exception based Monitoring of APO Supply Network Planning for the handling of alerts generated by a batch macro.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

31

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Dependi ng on your process. Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility Program scheduling management

Escalation Procedure Contact application support

APO report SM37 /SAPAPO/TS_ BATCH_RUN. This report performs specified SDP mass processing activities. SDP Job Log

/SAPAP After O/MC8 each K run of /SAPAP O/TS_B ATCH_ RUN. Dependi ng on your process.

Red or According to the warning or yellow error reported (see message traffic lights long text). shown

Application support

Contact process champion

APO report SM37 /SAPAPO/TS_ BATCH_LOG FILE This report deletes old SDP Job Logs. APO report /SAPAPO/AM ON_REORG This report deletes old database alerts of various types. SM37

Status

Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Program scheduling management

Contact software monitoring team

Dependi ng on your process

Status

Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Program scheduling management

Contact software monitoring team.

See general issues of Error Handling, Restartability and Escalation below.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

32

Business Process Step 10: Exchange Requirements with Supplier
In some cases, it is desirable to exchange requirements with suppliers. In SNP, it is usual to transfer the data periodically, rather than immediately after planning is complete, as is the default setting in PP/DS. These settings are maintained in transactions /SAPAPO/SDP110 and /SAPAPO/C4 (the latter is user-specific). Note that, while the information is user specific, you cannot use wild cards here, but must either specify the full user ID or user entry ‘*’ for all users not explicitly specified. In addition, please refer to the corresponding documentation on CIF functionality regarding transactional data transfers between R/3 and APO. A number of consulting notes exist regarding the transfer of APO orders to and from R/3 in the context of exchanging information with suppliers; for example, Notes 443500, 206679, and 432038. Jobs for Monitoring "Exchange Requirements with Suppliers (APO)” To ensure that the planning results are published to R/3 and that the relevant data is consistent in both systems, certain jobs must be scheduled on a regular basis. These jobs are: Publish Planning Results with report /SAPAPO/RDMCPPROCESS. This report evaluates the APO change pointers (not the same as ALE change pointers!) that are written during planning activities. The corresponding objects, such as planned orders, are sent to R/3. Check Processing of APO Change Pointers with report /SAPAPO/RDMCPPROCESS. This report verifies that all change pointers are processed by checking that the list displayed in the report /SAPAPO/RDMCPPROCESS is empty. If change pointers remain unprocessed, contact the application support team to clarify whether these change pointers are needed and why they are not processed. Note: Deleting change pointers may cause inconsistencies, as the corresponding order changes are not transferred to R/3. The jobs mentioned in the Manage APO Core Interface in SAP SCM, section Operation and Monitoring of the APO Core Interface.

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Dependi ng on your needs, or at least once a week Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility Program scheduling management

Escalation Procedure Contact Application Support.

APO Report SM37 /SAPAPO/RD MCPPROCES S This report publishes the results of automatic and interactive planning to R/3. APO Report SM37 /SAPAPO/RD MCPPROCES S to display change pointers

Weekly

Status

Check if job is running as scheduled. If job is not scheduled on a regular basis and periodic publishing of data to R/3 is performed on the system, schedule the job daily.

Program scheduling management

Contact Application Support

See general issues of Error Handling, Restartability and Escalation below.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

33

Business Process Step 11: Load Data into BW
As mentioned above, every SAP APO system comprises a complete SAP Business Information Warehouse System (BW), which should be used exclusively for APO purposes. Though in this business process step data is extracted from a separate BW system, all periodic monitoring tasks have to be performed in the APO system as well as job definition and most of the configuration tasks. In order to load the data into BW, the data must first be extracted from the SNP planning area. Please refer to Note 428147, which discusses limitations of this functionality in detail. Note 507810 describes the complete procedure for performing BW reporting on SNP remote cubes. The function of creating, checking and testing the data source in the APO system can now be performed with report /SAPAPO/TS_PAREA_EXTR_MGM (transaction /SAPAPO/SDP_EXTR). This report is described in Note 453278. From this report, a background job for the extraction can be generated, which will run report /SAPAPO/TS_PAREA_TO_ICUBE. In addition, a consistency check and test for the remote cube are available through this functionality.

Monitoring Activities
Apart from safeguarding the general availability and consistency of the system components SAP APO, SAP BW, and SAP R/3 OLTP, to safeguard this business step SAP recommends that you monitor the objects listed under Monitoring of Business Warehouse Activities. Jobs Necessary to Keep the APO Data Structures in Good Condition (APO) To ensure that database statistics and indices for BW specific data structures are kept up-to-date, and that liveCache data structures (time series) are kept consistent, schedule the following jobs to run on a regular basis: Compute Histograms for BW InfoCubes with report SAP_ANALYZE_ALL_INFOCUBES. This is only relevant for systems running with Oracle, SAP DB or IBM DB2 UDB (DB6) database (refer to SAP Notes 16083 and 421795). Please see SAP Notes 129252 (Oracle) or 328106 (DB6). For SAP BW releases prior to 2.0B Support Package 17 please notice the dependency to running SAPDBA (optimizer statistics for non-BW tables) described in SAP Note 129252. Please also refer to SAP Note 323090. For SAP BW releases 3.0A and onwards (affects SAP APO 4.0) the InfoCube statistics can be computed using the BRCONNECT tool as well as the ‘normal’ database statistics. For SAP BW releases 2.x (affects APO 3.0A and 3.10) this is not recommended. Please refer to SAP Notes 428212 and 535986 for details.

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Weekly Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the job is not scheduled on a regular basis, schedule it to run once a week with parameter percent = 100.

Responsibility Program scheduling management

Escalation Procedure Contact software monitoring team

APO report SM37 SAP_ANALYZ E_ALL_INFO CUBES. This report creates DB statistics for all InfoCubes. Only for systems running with Oracle, SAP DB or IBM DB2/UDB (DB6) database.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

34

Monitoring Object Indices of APO InfoCubes.

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error RSA1 or Weekly RSRV Red or yellow traffic light

Monitoring Activity or Error Handling Procedure Select Check (Aggregate) Indexes. If the traffic light gets yellow or red, select Repair Indexes (now) or Delete Index (batch) and Create Index (batch).

Responsibility Software monitoring team

Escalation Procedure Contact application support

See general issues of Error Handling, Restartability and Escalation below.

Business Process Step 12: Create/Update Planned Orders, Transfer Orders, and Purchase Requisitions
After the planning runs are complete, and, if necessary, capacity leveling has been performed, many customers update the results of SNP, that is, the planned orders, transfer orders, and purchase requisitions. In SNP, it is usual to transfer the data periodically, rather than immediately after planning is complete, as is the default setting in PP/DS. These settings are maintained in transactions /SAPAPO/SDP110 and /SAPAPO/C4 (the latter is user specific). Note that, while the information is user specific, you cannot use wild cards here, but must either specify the full user ID or user entry ‘*’ for all users not explicitly specified. In addition; please refer to the corresponding documentation on CIF functionality regarding transactional data transfers between R/3 and APO. Please note that not all order types may be transferred from R/3 to SNP. In particular, planned independent requirements may only be transferred from APO to R/3, and not in the other direction (compare Note 538046). For SNP planned orders only some manual changes are transferred from R/3 to APO: changes to output quantity, availability date and order fixing. Jobs for Monitoring "Perform Interactive Planning (APO)” To ensure that the planning results are published to R/3 and that the relevant data is consistent in both systems, certain jobs must be scheduled on a regular basis. These jobs are: Publish Planning Results with report /SAPAPO/RDMCPPROCESS. This report evaluates the APO change pointers (not the same as ALE change pointers!) that are written during planning activities. The corresponding objects, such as planned orders, are sent to R/3. Check Processing of APO Change Pointers with report /SAPAPO/RDMCPPROCESS. This report verifies that all change pointers are processed by checking that the list displayed in the report /SAPAPO/RDMCPPROCESS is empty. If change pointers remain unprocessed, contact the application support team to clarify whether these change pointers are needed and why they are not processed. Note: Deleting change pointers may cause inconsistencies, as the corresponding order changes are not transferred to R/3. The jobs mentioned in the Manage APO Core Interface in SAP SCM, section Operation and Monitoring of the APO Core Interface.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

35

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Dependi ng on your needs, or at least once a week Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility Program scheduling management

Escalation Procedure Contact Application Support.

APO Report SM37 /SAPAPO/RD MCPPROCES S This report publishes the results of automatic and interactive planning to R/3. APO Report SM37 /SAPAPO/RD MCPPROCES S to display change pointers

Weekly

Status

Check if job is running as scheduled. If job is not scheduled on a regular basis and periodic publishing of data to R/3 is performed on the system, schedule the job daily.

Program scheduling management

Contact Application Support

See general issues of Error Handling, Restartability and Escalation below.

Business Process Step 13: Release SNP to DP
Many customers who also use Demand Planning release the results of the SNP run (often called the constrained demand plan) back to DP to compare with the original forecast. This process can be run in parallel, for example, by selecting properly disjoint data sets for the release. No reverse location or product split is possible.

Monitoring Activities
Apart from safeguarding the general availability and consistency of the system components SAP APO, SAP BW, and SAP R/3 OLTP, SAP recommends that you monitor the objects listed in the following table in order to safeguard this business step. Jobs for Running and Monitoring "Release SNP to DP (APO)" To release the constrained Demand Plan back to DP, do the following: Release SNP Orders to DP time series with transaction /SAPAPO/LCOUT or report /SAPAPO/RTSINPUT. With this report, you can release the quantities stored in SNP order objects into DP time series key figures.

Monitoring Object APO report /SAPAPO/RT SINPUT. This report copies the quantity stored in an SNP Order Key Figure into a DP time series key figure

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error SM37 Dependi ng on your process Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the job is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility Program scheduling management

Escalation Procedure Contact application support

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

36

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error After each run Messages in spool list.

Monitoring Activity or Error Handling Procedure

Responsibility

Escalation Procedure Contact Process Champion

Output of APO SP01 report /SAPAPO/RT SINPUT.

Check the spool file to ensure Application that all records passed have support a green status light. If red or yellow traffic lights occur, it indicates an error.

See general issues of Error Handling, Restartability and Escalation below.

Business Process Step 14: Release SNP to PP/DS
Many customers using SNP or CTM also use the PP/DS planning functionality. There are several possibilities for how to integrate SNP with PP/DS. Some of these possibilities are described in note 481906. To convert planned orders within the production horizon from SNP into PP/DS, an explicit order conversion needs to be executed. The conversion can be done in one of two ways: either using a mass conversion report launched from transaction /SAPAPO/SNP2PPDS, or for individual productlocations, using the online transaction /SAPAPO/RRP_SNP2PPDS. Note that at this point in time, releases from SNP to PP/DS may only be executed within the same planning version.

Monitoring Activities
To safeguard the functionality of releasing SNP to PP/DS, we recommend the reports listed below. Jobs for Running and Monitoring "Release SNP to PP/DS (APO)" To convert SNP/CTM orders into PP/DS orders: Release SNP Orders to PP/DS with report /SAPAPO/RRP_SNP2PPDS. This converts the SNP orders for the specified location product(s) within the production horizon into PP/DS orders. When this report is run, it should be run with logging set to normal, that is, by following the path Settings-> Planning Log. For individual product-locations you can also use online transaction /SAPAPO/RRP_SNP2PPDS.

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Dependi ng on your process Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the job is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility Program scheduling management

Escalation Procedure Contact application support

SM37 APO report /SAPAPO/RR P_SNP2PPDS This report converts an SNP or CTM order to a PP/DS order Output of APO SM37 report /SAPAPO/RR P_SNP2PPDS

Dependi ng on your process

Status, messages

Whether or not the job Application support finishes without error, application support should check the job log for error messages such as “Component 100-100 of PPM P-102 1000000100000000N500000 0401031 not valid on order dates”

Contact Process Champion

See general issues of Error Handling, Restartability and Escalation below.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

37

Business Process Step 15: Deployment Heuristic
The purpose of deployment is to calculate replenishment for one product at one location at a time, which creates deployment stock transfers. The deployment heuristic does this based on any of several distribution methods and fair share rules, which govern how the orders will be distributed across the network in cases of surplus or shortage. The distribution methods and fair share rules are described in detail in the deployment section of the APO documentation. Deployment determines which requirements can be fulfilled by the existing supply. If the available quantities match required quantities as planned in SNP planning, the result of deployment is a confirmation of the supply network plan. As of SCM 4.1 automatic parallelization can be used for the Deployment Heuristic, this improves performance and optimizes system resources utilization. Fair-share alerts for deployment are automatically generated during the deployment run. If you are not monitoring this alert type as part of your business process, turn off the alerts as described in Note 512797. If you are using these alerts, be sure to delete the old ones regularly using report /SAPAPO/AMON_REORG with appropriate filters. The Deployment heuristic only considers demands at destination locations, which are propagated to the source location as planned distribution demand (using SNP Heuristic, Optimization or CTM). As of SCM 5.0 the demand from Sales Orders and Forecast is shared among the source and distribution demands As of release SCM 2007, the Deployment algorithm supports product interchangeability, that is to say it is capable of confirming the Planned Substitution Orders created by the previous planning processes. For setting up a scenario check Business Process Step 4: SNP Heuristic Run. The results of the confirmation of the planned substitutions at the source location are Confirmed Substitution Orders at the destination location, and can be found in the new keyfigures Substitution Receipts (Confirmed) and Substitution Demands (Confirmed) in Interactive Planning. The new process can be applied for both Supersession Chains and FFF classes. If you run interchangeability scenario via transaction /SAPAPO/SNP02; make sure you have the flag “Add products from supersession chains” set.

Monitoring Activities
Jobs for Running and Monitoring "Deployment Heuristic” To execute the deployment heuristic Execute the deployment heuristic in the background with report /SAPAPO/RMSDPDEP; you should save one or more variants and execute them in the background. Note that parallel processing is possible for variants which contain no overlap in location-product or resources used. Use transaction /SAPAPO/SNP02 for small data volume only.

Monitoring Object APO report /SAPAPO/RM SDPDEP

Monitor Monitor TA/Tool Freq. Sm37 Depending on business process

Monitor Time

Indicator or Error Status

Monitoring Activity or Error Handling Procedure

Responsibility

Escalation Procedure Contact application support

Check if job is running as Program scheduled scheduling management

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

38

Monitoring Object Output of report /SAPAPO/RM SDPDEP

Monitor Monitor TA/Tool Freq. Sm37 Depending on business process

Monitor Time

Indicator or Error Status and messages

Monitoring Activity or Error Handling Procedure Whether or not the job finishes without error, application support should check the job log and spool file for error messages

Responsibility Application support

Escalation Procedure Contact process management

See general issues of Error Handling, Restartability and Escalation below.

Business Process Step 16: Deployment Optimizer
Like the deployment heuristic, the purpose of the deployment optimizer is to create deployment confirmed stock transfers. The difference is that the optimizer takes the current demand situation in the network into account rather than just the stock transfer demands of the individual location. This means rather than using one of the available fair-share techniques, the deployment optimizer instead tries to compute the lowest-cost manner in which to distribute the orders. Another difference is that Deployment Optimizer deletes all from SNP planned transport orders, both firmed and non-firmed and creates deployment confirmed stock transfers independently. See Business Process Step 5: SNP Planning Run Optimizer. It is identical.

Business Process Step 17: Transport Load Builder (TLB)
The deployment run generates deployment confirmed stock transfers. The Transport Load Builder (TLB) then uses these stock transfers to generate TLB confirmed stock transfers and build transport loads comprised of multiple products, and which consider the minimum and maximum constraints of the means of transport, that is, number of pallets, weight and volume. TLB can be executed either using interactive planning, via transaction /SAPAPO/SNPTLB, or as a background job by running an appropriately designed variant for report /SAPAPO/RMSNPTLB. The background job can also be launched from transaction /SAPAPO/SNP04. Neither method of executing TLB will automatically create alerts; if they are desired, create a batch macro to create them. As of SCM 4.1 automatic parallelization can be used for TLB, this improves performance and optimizes system resources utilization.

Monitoring Activities
The following table contains a description of reports and monitoring objects for TLB. The monitoring object indicates whether the information refers to TLB run in batch or foreground.

Monitoring Object APO report /SAPAPO/RM SNPTLB

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error SM37 Depend s on busines s process Status

Monitoring Activity or Error Handling Procedure Check that the job is running as scheduled.

Responsibility Program scheduling management

Escalation Procedure Application support

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

39

Monitoring Object Output of report /SAPAPO/RM SNPTLB

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error SM37 Depend s on busines s process

Monitoring Activity or Error Handling Procedure

Responsibility

Escalation Procedure Contact process champion

Status/mes Independent of the job status, Application sages support check both the job log and the spool file for application problems

See general issues of Error Handling, Restartability and Escalation below.

Business Process Step 18: Delete Transaction Data
Under some business scenarios, some of the order types generated during SNP planning are not converted to PP/DS, or further processed in other ways, and deleting older ones is necessary to either keep the liveCache from growing, or as one of the steps of deleting a location-product from the system. This is often done using report /SAPAPO/RLCDELETE, or transaction /SAPAPO/RLCDEL. Basic troubleshooting tips for this transaction, along with several others for version management, are given in SAP Note 519014. The first time the transaction is run with full data volume, the person responsible for monitoring should evaluate the data volume, and determine whether the package size needs to be tuned to improve performance; this is described in SAP Note 523250. The report can also be used to delete stocks, as described in SAP Note 630751. Please be aware that using this report should be carefully evaluated with SAP Note 644676, which summarizes the information available on the RLCDELETE report. As of SCM 4.0, SAP Note 660194 describes further details.

Monitoring Activities
The following table contains a description of reports and monitoring objects for /SAPAPO/RLCDELETE.
Monitoring Object /SAPAPO/RL CDELETE Monitor Monitor TA/Tool Freq. SM37 Depends on business process Monit- Indicator or Error or Time Status Monitoring Activity or Error Handling Procedure Check that the job is running as scheduled. Responsibility Program scheduling management Application support Escalation Procedure Application support

Log

/SAPAP Depends O/RLCD on ELETE business process

Status/mes Check the log for error sages messages and data volumes

Contact process champion

See general issues of Error Handling, Restartability and Escalation below.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

40

Further Information
Troubleshooting
If executing this Best Practice did not produce the desired results, proceed as follows: If there are or seem to be problems in the data transfer via the Core Interface, see the Troubleshooting Guide Integration R/3 – APO, which you can find in SAPNet in the Literature Center of the R/3 Plug-In homepage. Search for related SAP Notes Open a SAP Customer message describing your problem

Background Information and References Related Tools and Activities
This Appendix explains: 1. APO Alert Monitor 2. Monitoring of Business Warehouse Activities 3. Maintenance of SDP Data Storage Structures 4. Running Supply Network Planning in Background 5. Exception Based Monitoring of APO Supply Network Planning

APO Alert Monitor
The APO Alert Monitor allows a management-by-exception strategy, so it is of special concern in this and other APO business process scenarios. The Alert Monitor is a standalone component of APO that enables you to have a unified approach to handling problem situations. It notifies you if a problem occurs during an ATP check or SNP run, or when production plans, demand plans, or vehicle schedules are being generated in one of the APO applications. The Alert Monitor is a tool with which planners can monitor the state of a plan. The monitoring results can be used to readjust the plan whenever necessary. The purpose of the Alert Monitor is to inform planners if the condition of a plan has been violated. The Alert Monitor belongs to the suite of supply chain monitoring components in APO, together with the Supply Chain Cockpit and the Plan Monitor. It can be used by any supply chain manager or planner who practices exception-based management in the following areas: Demand Planning (DP) Supply Network Planning (SNP) Production Planning/Detailed Scheduling (PP/DS) Available-to-Promise (ATP) TLB/Deployment Vehicle Scheduling (VS) The Alert Monitor can be called as a standalone application via transaction code /SAPAPO/AMON1 as well as from various planning applications such as, /SAPAPO/SDP94, /SAPAPO/PPT1, and others. Alerts can also be displayed in the Supply Chain Cockpit /SAPAPO/SCC01. When displaying alerts in /SAPAPO/SDP94, for example, the display of alerts is restricted to those which are assigned to the selected planning book. The goal of Supply Network Planning is to create plans for production, transportation, and/or procurement across a supply chain with multiple locations, and the role of the Alert Monitor is to notify you of exceptions that occur during the process. An exception is any situation that needs further adjustment. A sudden switch in trends, a new fad, or an unexpected change in the circumstances of a supply chain partner could all lead to exception situations. Most exceptions, if not handled immediately, can have consequences up or down the supply line. The Alert Monitor is an online tool designed to help you catch real-time exceptions well before they turn into problems and thus help you forecast your business needs more effectively. Not only can you determine which types of exceptions you want to be notified of, you can also prioritize alerts, thus © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

41

preventing an information overload. In exception-based management, you as the planner must make the ultimate decision regarding the priority of an alert. If you regularly consider Capacity Overload alerts, you will soon be able to determine whether a 15% deviation is serious or not. This knowledge would enable you to set priority variants for alerts so that you get a warning if the deviation is 10% but an error alert if it is 15%. Alert priorities are identified by icons displayed in the profile or in the monitoring slots of the Supply Chain Cockpit control panel. The three possible priority levels in the Alert Monitor are: 1. Error 2. Warning 3. Information The priorities should be defined in a way that - under normal conditions on a well run system information alerts take the biggest share and errors are generated only in rare cases. However, even an information alert should reflect an exception to the planning situation and not a “success” message saying “everything ok”. Unlike in the DP application where you can view only one planning book at a time, you can view several in the Alert Monitor, making it the ideal tool for tracking the quality of your alerts over a specific period of time. In the demand planning process, the following exception situations may arise: Changes in bias, new trends, unexpected demands Orders exceed forecast Orders fall short of forecast, which may lead to excess inventory For Supply Network Planning, both supply & demand planning (SDP) alerts and Transport Load Builder (TLB) alerts are important; each can be configured as either a dynamic alert (recommended for small data volumes in interactive planning only) or database alert (recommended for batch jobs and large data volumes). SDP alerts can be used both in the Demand Planning and Supply Network Planning applications. You have to maintain alert profiles to maintain a user-specific selection of alerts for your area of responsibility. There are forecast alert profiles and SDP alert profiles. The SDP alert profile contains a number of alerts that are specific to the tactical planning and sourcing decisions relevant for purchasing, manufacturing, and distribution. There are two different types of Supply & Demand Planning alerts: Dynamic alerts mirror the current planning situation but are not saved in the database. As opposed to SNP alerts in APO Release 2.0, alerts are now macro-dependent and thus can reflect the actual data in liveCache. This alert type is NOT suitable for dealing with a large volume of planning objects because large numbers slow down performance. For small data volumes, up to approximately 1000 alerts, dynamic alert generation is usually much faster than reading alerts from the database. For large data volumes, database alerts are usually faster. Database alerts show the planning situation as it was during the planning run, or last executed macro. When dealing with large volumes it is best to perform a batch planning-run using the appropriate database macro. The results of the planning run show the situation as it was at the time of the run, in other words, with database alerts you see a snapshot of the plan during run time. You also have the option of creating customer-specific dynamic or database alert types to be used with SDP macros. Database alerts that are no longer in use, for instance, because they have been acknowledged or because they are outdated, must be deleted from the database. Besides forecast and SDP database alerts, this also applies to ATP, VS and TLB/Deployment alerts. PP/DS alerts, however, are not stored in the database but are dynamic only. Generally, if an alert is generated, three activities must take place: 1. Analyze alert situation. 2. Inform responsible planner. 3. Make adjustment to plan and / or profile.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

42

To support the Alert Monitor's function as a tool for exception-based management, you can send messages via e-mail to other planners to inform them of the alert situation. You can also have messages sent automatically to your own inbox to inform you of alerts in your area. You can maintain a list of favorite Alert Monitor profiles so you can switch back and forth easily between various profiles. For example, you may have an alert profile for your own area of responsibility, but you may also want to look at alerts in other areas. Keep alerts to a minimum. Too many alerts slow performance and may cause you to overlook the really important ones. You can find more information concerning this tool in the SAP Documentation under "Supply Chain Monitoring – Alert Monitor". Please refer also to SAP Notes 375965, 495166, 500063, and 521639 and to Exception based Monitoring of APO Demand Planning.

Monitoring of Business Warehouse Activities
This section points out the concept for monitoring activities related to data transfers and the maintenance of data keeping structures in the SAP BW component of an SAP APO system. The data transfer can take place inbound or outbound the BW (APO) system to and from other SAP or third party components as well as within one APO system between different data storage units like InfoCubes and liveCache. When adapting this concept for your company, you must specify the times, responsible teams, and escalation paths (responsible teams) for the following monitoring activities and objects.

Monitoring Activities
Apart from safeguarding the general availability and consistency of the system components SAP APO, SAP BW, and SAP R/3 OLTP, SAP recommends that in order to safeguard any business step that is based on SAP BW techniques, you monitor the objects listed in the following table. The data transfer process from a source system to SAP BW InfoCube(s) as well as certain actions in RSA1 and RSMO write detail information to a central R/3 basis component called the Application Log. It can be browsed using transaction SLG1. The log entries are subdivided into objects and sub-objects and classified by importance. In case of errors or problems, the Application Log can be used to get more detailed information about what happened and how to resolve the problem. The monitor transaction for the Application Log is SLG1, where you should specify the (sub-) objects and the time interval you want to be displayed. Relevant objects for the SAP Business Warehouse are: RSAR BW Metadata maintenance RSAU Update rules RSD BW data basis RSDMD RSO_REPOSITORY RSSM Master data maintenance BW Repository Scheduler; Monitor; Tree callback

Jobs for Running and Monitoring Data Transfers To or Within the Business Warehouse To ensure a timely and consistent data transfer from any data source into an SAP Business Warehouse structure, schedule the following job on a regular basis: Data Extraction and Load with report RSBATCH1. The job has to be defined using the scheduler in the Administration Workbench (transaction RSA1) of the BW component of APO. The scheduler generates a background job with name prefix BI_BTCH and processes the selected Info Package. With the help of Info Package groups you can collate data requests that logically belong together and schedule them using the scheduler. In Monitoring of the Administrator Workbench (select Monitoring in transaction RSA1 or call transaction RSMO) you have the option of overseeing and controlling the data loading process into the InfoCubes and you can analyze errors that may have occurred (Menu: Monitor -> Assistant). You can also call the monitor from a selected Info Package or via transaction code RSMO. Make sure that you have selected the correct time window and data to be displayed by calling the selection screen via menu Monitor -> New Selections.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

43

Jobs for the Maintenance of the Application Log The Application Log entries are stored on tables with name prefix BAL*. As there are very many applications that use this basis component and often many table entries are made, it is important to regularly delete obsolete Application Logs from the database in order to prevent these tables from overflowing as well as to keep the applications and the log retrieval running optimally. The deletion can be performed using transaction SLG2 or in background by the appropriate report: Delete Obsolete Application Logs with report SBAL_DELETE. A log can only be deleted when it has reached its expiry date or if it has the "Deletion before expiry" attribute. For more information, please refer to SAP Note 195157.

Monitoring Object APO job BI_BTCH*. These jobs perform the data transfer from the different data sources to APO InfoCubes.

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Dependi RSMO or SM37 ng on your process Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the job is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility Program scheduling management

Escalation Procedure Contact application support

APO: RSMO Administration Workbench Monitor

After every data load

After selecting one request, Software Red or read the error message and monitoring yellow team traffic lights diagnosis under tab strip Status and the processing log under Detail. Use the Monitor Assistant to analyze and correct the error situation.

Contact application support

APO: Evaluate SLG1 Application Log for BW related objects.

At least daily

Log class

Check if there are very important logs (flagged red) or important logs (flagged yellow). Read message long text and / or details, if present. Analyze error situation, evaluate error severity and impact, and take corrective action.

Software monitoring team

Contact application support

APO report SBAL_DELET E. This report deletes obsolete Application Logs.

SM37

Weekly

Status

Check if job is running as scheduled. If the job is not scheduled as provided by Application Support, schedule it to run weekly.

Program scheduling management

Contact application support

Error Handling, Restartability and Escalation
Error Handling Procedures Error handling for background jobs is explained in detail in the SAP R/3 documentation CD, component BC-CCM, under Background Processing. If a scheduled job fails, a necessary job is not scheduled, or a scheduled job has status "finished" you may need to take action. Consider the status of the job and proceed as follows: © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

44

Status scheduled: the job steps have already been defined, but the start condition has not yet been defined. Contact the program scheduling management in order to clarify when the job will be fully defined. Status released: the job has been fully defined with a start condition and will wait for that condition to be fulfilled. Status ready: the start condition of a released job has been fulfilled. A job scheduler has put the job in a queue to wait for an available background work process. Status active: the job is currently running and can no longer be modified or deleted. Check if the job is within the given timeframe. Check for particular dependencies to other jobs. If the job exceeded the given timeframe, contact the software monitoring team. Status finished: all steps that make up this job have completed successfully. Program scheduling management must check whether the job ran in the given timeframe, and software monitoring team and / or application support must check the respective job results (such as spool output lists, message logs, and updates). Status cancelled: the job has terminated abnormally. This can happen in two ways. If an administrator intentionally canceled the job, clarify why he or she did so and whether (and if so, when) the job must be re-run. Alternatively, if a program in a job step produced an error such as issuing an "E" or "A" error message, contact the software monitoring team and investigate why the error occurred. If the program is an SAP standard program, search for appropriate messages in SAPNet and create a customer message if you cannot solve the problem. If there are problems with the Core Interface CIF or with data missing in either R/3 or APO, see the Troubleshooting Guide Integration R/3 – APO in the Literature Center (of the R/3 Plug-In homepage). Process Step Restartability If a background job is cancelled, consider possible succeeding jobs or dependencies on other jobs when deciding whether to restart the aborted job. The aborted job may also delay the start of succeeding jobs. Escalation Procedures In general, we recommend that you search for related SAP Notes in the SAPNet R/3 front-end system for any unknown problems or errors. If you have questions or problems that cannot be solved, forward the issue to the next support level. If the corresponding escalation path is not well defined, contact Application Support. If none of the defined support levels can provide a solution for a particular problem, we recommend that you create a customer problem message in the SAPNet R/3 front-end system.

Maintenance of SDP Data Storage Structures
If SNP time series objects are used in the planning areas of your company, either alone or together with order objects, the tasks associated with DP BW structures must also be executed for these time series objects. When adapting this concept for your company, you must specify the times, responsible teams, and escalation paths (responsible teams) for the following monitoring activities and objects.

Monitoring Activities
The data for your Demand Planning process is stored in different logical and physical structures such as InfoCubes, the Master Planning Object Structure, and liveCache Time Series. All these need a certain amount of surveillance and maintenance in order to stay in a technically optimal condition and therefore to allow a fast retrieval of the data stored within. Jobs Necessary to Keep the APO Data Structures in Good Condition (APO) To ensure that database statistics and indices for BW specific data structures are kept up-to-date, and that liveCache data structures (time series) are kept consistent, schedule the following jobs to run on a regular basis: © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

45

Compute Histograms for BW InfoCubes with report SAP_ANALYZE_ALL_INFOCUBES. This is only relevant for systems running with Oracle, SAP DB or IBM DB2 UDB (DB6) database (refer to SAP Notes 16083 and 421795) Please see SAP Notes 129252 (Oracle) or 328106 (DB6). For SAP BW releases prior to 2.0B Support Package 17 please notice the dependency in running SAPDBA (optimizer statistics for non-BW tables) described in SAP Note 129252. Please also refer to SAP Note 323090. Check Inconsistencies in Time Series Network with report /SAPAPO/TS_LCM_CONS_CHECK_ALL. This report checks all existing time series, in all planning areas and versions, and reports whether or not there are inconsistencies. If errors are found, you can repair inconsistencies in a specified planning area and version using report /SAPAPO/TS_LCM_CONS_CHECK. Mark the Log check box if you want to see a list of characteristic combinations having inconsistencies. For details and further information please refer to SAP Notes 358283, 425825, 402046, and 520876. Delete Time Series and Time Bucket Profiles having no liveCache Anchors with report /SAPAPO/TS_LCM_REORG. This report (supplied with SAP Note 542946 or Support Package 22 (APO 3.0) or SP 10 (APO 3.1), resp.; refer to SAP Note 425825) determines all liveCache time series and time buckets profiles from a selected planning version that do not have any 'liveCache anchors', independently of planning areas. These objects do not have any reference to the application data and are therefore not inconsistent as such, but simply unnecessary objects, which result in increased liveCache memory consumption. For this reason you should only have to run the report approximately once a month. If you have selected the 'Repair' option, any unnecessary time series and period patterns are deleted. Caution: When you run report /SAPAPO/TS_LCM_REORG, no other processes for a planning area (applies only to planning areas with key figures based on liveCache time series) should be allowed to run with the same planning version, since this would result in liveCache objects that are still required by the other parallel process being recognized as unnecessary, and then possibly deleted. For this reason, we recommend that you always run the report with the option 'Lock planning version'. In this case, all planning areas that use the planning version to be checked are locked for the relevant version. If you cannot activate the lock, report execution is interrupted and a list of system users is displayed, showing users who have already set a change lock for the planning version. Maintain Statistics and Indices for Planning Object Structures with report /SAPAPO/TS_PSTRU_TOOL. Run this report in separate background jobs choosing options Calculate Statistics and Check Indexes for every Master Planning Object Structure and review the list of messages being displayed. Run it with option Repair Indexes, if problems are reported by the index check. A separate background job (job name with prefix BI_STAT) will be started to execute this request. These administrative jobs have to be run after every load of data to a planning object structure. For further details, please refer to SAP Notes 393655, 492460, and 503363.

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Weekly Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the job is not scheduled on a regular basis, schedule it to run once a week with parameter percent = 100.

Responsibility Program scheduling management

Escalation Procedure Contact software monitoring team

SM37 APO report SAP_ANALYZ E_ALL_INFO CUBES. This report creates DB statistics for all InfoCubes. Only for systems running with Oracle, SAP DB or IBM DB2/UDB (DB6) database.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

46

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Weekly Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the job is not scheduled on a regular basis, schedule it to run once a week.

Responsibility Program scheduling management

Escalation Procedure Contact application support

APO report SM37 /SAPAPO/TS_ LCM_CONS_ CHECK_ALL. This report detects inconsistencie s in time series. Output of APO SP01 report /SAPAPO/TS_ LCM_CONS_ CHECK_ALL.

After each run.

Red traffic light

Check for time series with inconsistencies reported. Try to repair inconsistencies by running report /SAPAPO/TS_LCM_CONS_ CHECK for the corrupt time series setting the repair option.

Software monitoring team

Contact application support

SM37 APO report /SAPAPO/TS_ LCM_CONS_ CHECK. This report is able to repair inconsistencie s in time series. Output of APO SP01 report /SAPAPO/TS_ LCM_CONS_ CHECK. SM37 APO report /SAPAPO/TS_ LCM_REORG with option Repair. This report deletes superfluous time series and time bucket profiles. Output of APO SP01 report /SAPAPO/TS_ LCM_REORG .

After each run.

Status

Check if job has finished without errors.

Software monitoring team

Contact application support

After each run.

Traffic light

Check whether the inconsistencies in the selected time series have been repaired. Check if job is running as scheduled. If the job is not scheduled on a regular basis, schedule it to run once a month.

Software monitoring team

Contact application support

Monthly

Status

Program scheduling management

Contact application support

After each run.

Traffic light

Check whether superfluous data is reported and has been deleted without errors.

Software monitoring team

Contact application support

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

47

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error After every data load into the POS. Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility Program scheduling management

Escalation Procedure Contact application support

SM37 APO report /SAPAPO/TS_ PSTRU_TOO L with option Calculate Statistics. This report checks and generates statistics for a POS. SM37 APO report /SAPAPO/TS_ PSTRU_TOO L with option Check Indexes. This report checks the indices of a POS. Output of APO SP01 report /SAPAPO/TS_ PSTRU_TOO L. Job BI_STAT* SM37 started by /SAPAPO/TS_ PSTRU_TOO L with option Repair Indexes.

After every data load into the POS.

Status

Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Program scheduling management

Contact application support

After every run.

Message type (icon)

Look for stop icons (cancellation), and red (errors) or yellow (warnings) lights. Read message long text if present. Check if job ended correctly.

Software monitoring team

Contact application support

After every run.

Status

Software monitoring team

Contact application support

See general issues of Error Handling, Restartability and Escalation above.

Running Supply Network Planning in Background
This section outlines the monitoring concept for Supply Network Planning activities in background for processing mass data which use the same interface as Demand Planning background jobs. Mass processing allows you to run macros for large numbers of products while optimizing system resources. Also a release of DP data to SNP is usually performed in background. The different tasks that can be performed in this way have to be customized and set up as “activities” prior to job definition. Other Supply Network Planning background jobs (for example, the heuristic, optimizer, and deployment runs) are executed using a different interface, and are discussed in the pertinent chapters in earlier parts of this document.

Monitoring Activities
Apart from safeguarding the general availability and consistency of the system components SAP APO, SAP BW, and SAP R/3 OLTP, SAP recommends that you monitor the objects listed in the following table, in order to safeguard any business process step that performs Supply Network Planning activities in the background. Jobs for Running and Monitoring "Supply Network Planning in Background" (APO) To ensure a proper and timely demand planning, schedule the following jobs to run on a regular basis: Run Demand Planning in the Background with report /SAPAPO/TS_BATCH_RUN. This mass processing job is created with its necessary settings and scheduled using transactions /SAPAPO/MC8x. Using transactions /SAPAPO/MC8D and /SAPAPO/MC8E, you can create and change © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

48

respectively, such jobs. The so-called activities that are needed for these jobs have to be defined in advance via transaction /SAPAPO/MC8T, which is usually called from the customizing tree. An activity can be a forecast computation, the execution of one or several macros, a release of DP data to SNP orders, or the transfer to R/3. /SAPAPO/MC8I allows you to check the job definition prior to execution and find errors like “no macro defined”, “data view does not exist” or “release profile not found”. With /SAPAPO/MC8G, the jobs are scheduled. Standard transaction SM37 is used for a job overview and display of job logs and jump to spool lists. To check the results of a DP mass-processing job, use the DP Job Log. To request a job log, select Generate log when you create a job. To view the job log, call transaction /SAPAPO/MC8K. The job log shows whether the job completed successfully (green traffic light), with warnings (yellow traffic light) or with errors (red traffic light), a message for every characteristic value combination that was processed in the job, forecast error messages if the job included a forecast, and other details. You can also delete job logs with this transaction. With /SAPAPO/MC8J you can copy jobs and delete them with /SAPAPO/MC8F. Parallel processing: Due to the large amount of data to be processed and the limited time that can usually be spent on it, it is often necessary to process batch runs (for example, macros, and so on) in parallel. This can be achieved by defining several jobs in /SAPAPO/MC8x running the same activity but having a different selection of characteristics. Each selection ID should define a set of characteristic value combinations of approximately equal size and no individual characteristic combination should belong to more than one selection ID as this can cause lock issues and it is superfluous to process a combination more than once. These jobs can then be scheduled to run at the same time. Please remember that hardware resources like number of CPUs, CPU speed, main memory, and others limit the total number of jobs that can run on a system at the same time. Delete DP Job Logs with report /SAPAPO/TS_BATCH_LOGFILE. Old logs from planning activities must be deleted regularly to maintain high performance for the related transactions and prevent database tables from overflow. Make sure that you delete the logs in packages. Select the option 'Delete all logs with minimum age' reducing the parameter days. See also SAP Note 512184. Demand planning activities can be executed periodically with various frequencies. Computation of key figures with batch macros could possibly be done daily or weekly, whereas a release of the demand plan to production planning or R/3 is usually performed over larger intervals of time, for example, once a quarter or once a year. Accordingly, the frequency of monitoring the jobs and deleting the DP Job Logs depends on how often you run these functions. For dependencies and concurrent execution of jobs, see Operational Management – Parallel and Concurrent Execution of Jobs. Please also refer to Exception based Monitoring of APO Demand Planning for the handling of alerts generated by a forecast run or a batch macro.

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Dependi ng on your process. Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility Program scheduling management

Escalation Procedure Contact application support

APO report SM37 /SAPAPO/TS_ BATCH_RUN. This report performs specified DP mass processing activities. DP Job Log

/SAPAP After O/MC8 each K run of /SAPAP O/TS_B ATCH_ RUN.

Red or Accordingly to the warning or yellow error reported (see message traffic lights long text). shown

Application support

Contact process champion

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

49

Monitoring Object

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error Dependi ng on your process. Status

Monitoring Activity or Error Handling Procedure Check if job is running as scheduled. If the report is not scheduled as provided by Application Support, schedule it accordingly.

Responsibility Program scheduling management

Escalation Procedure Contact software monitoring team

APO report SM37 /SAPAPO/TS_ BATCH_LOG FILE This report deletes old DP Job Logs.

See general issues of Error Handling, Restartability and Escalation above.

Exception Based Monitoring of APO Supply Network Planning
This section outlines the concept for monitoring the overall planning situation in APO Supply Network Planning. The most important high-level tool for monitoring the planning situation and an exceptiondriven application management is the APO Alert Monitor. The usage of the Alert Monitor is supported by an e-mail interface that allows notification to be sent to the responsible persons in case of new alerts. Therefore, it is not necessary for planners and / or IT staff to repeatedly call the monitor transaction actively over short intervals and then to acknowledge that nothing important has happened since the last refresh. However, the overall situation shown in the Alert Monitor should be supervised daily or adapted to the frequency of the demand planning process in your company.

Monitoring Activities
Apart from safeguarding the general availability and consistency of the system components SAP APO, SAP BW, and SAP R/3 OLTP, SAP recommends that you monitor the objects listed in the following table in order to safeguard your Supply Network Planning business process. Jobs for an Exception Based Monitoring of Supply Network Planning To ensure a timely and efficient notification of exceptions in Supply Network Planning, schedule the following jobs to run on a regular basis: Send Alert Monitor mails with report /SAPAPO/AMON_MAIL_BROADCAST. Depending on user profiles, mails are sent with an overview of existing alerts. The responsible persons should then call the APO Alert Monitor, investigate the reasons for the alerts and take corrective actions in order to keep the demand plan close to the needs of your company. Delete Alert Monitor alerts with report /SAPAPO/AMON_REORG. It deletes old alerts and is of particular importance if you use alerts stored in the database. For information on database alerts and dynamic alerts in Demand Planning, see APO Alert Monitor, above.

Monitoring Object APO Alert Monitor

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error /SAPAP At least O/AMO daily N1 Daily Alert list

Monitoring Activity or Error Handling Procedure Check for forecast alerts and SDP alerts and correct the planning for the reported object appropriately. Check if job is running as scheduled. If the report is not scheduled on a regular basis, schedule it to run every hour to at least daily, depending on your requirements.

Responsibility Application support

Escalation Procedure Contact process champion Contact software monitoring team

APO report SM37 /SAPAPO/AM ON_MAIL_BR OADCAST This report ensures sending of mails about existing alerts.

Status

Program scheduling management

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

50

Monitoring Object Alert Monitor mails

Monitor Monitor Monitor Indicator TA/Tool Freq. Time or Error SO01 (or respecti ve email system) SM37 Dependi ng on your require ments, at least daily. Weekly Status

Monitoring Activity or Error Handling Procedure

Responsibility

Escalation Procedure Contact process champion

Check, if the mail lists alerts Application that are important for you. Go support to APO Alert Monitor and process the alerts appropriately.

APO report /SAPAPO/AM ON_REORG. This report deletes Alert Monitor alerts.

Check if job is running as scheduled. If the job is not scheduled on a regular basis, schedule it to run once a day.

Program scheduling management

Contact application support

See general issues of Error Handling, Restartability and Escalation above.

SAP Documentation
SAP APO 5.1 (2007) documentation is available on CD or in the SAP Help Portal in German or English. SAP APO 5.0 documentation is available on CD or in the SAP Help Portal in German or English. SAP APO 4.1 documentation is available on CD or in the SAP Help Portal in German or English. SAP APO 4.0 documentation is available on CD or in the SAP Help Portal in German or English. SAP APO 3.1 documentation is available on CD or in the SAP Help Portal in German or English. SAP APO 3.0 documentation is available on CD or in the SAP Help Portal in German or English. Print files (PDF format) of several chapters in both languages are available in the Media Center of the SAP Marketplace for SCM. Several functions that have been documented in the SAP Library for SAP APO Release 3.1 are also available in Release 3.0. Please refer to SAP Note 514971 for details.

Dependencies
Remember that there are dependencies (date and time, logical sequence) on business processes and process steps not mentioned in this document. These usually comprise, for example: General R/3 system administration, (this also applies to the R/3 basis of the APO system), for example: o Reorganization of jobs, spool entries and so on o DB offline backup – During an offline database backup no online or background activity is possible. Therefore times for such backups must be scheduled carefully. o Archiving of DB transaction logs o Updating table statistics for the DB cost based optimizer – You should not run this activity at times when application programs are likely to be creating, deleting, or updating many table entries.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

51

General APO-specific system administration: o Checkpoint writing for liveCache – You should not start a checkpoint during long running background or online planning activities because the checkpoint has to wait for the completion of the planning activity. In addition, all other users that require liveCache data have to wait for the completion of the checkpoint. This restriction applies only for liveCache 7.2.x. We recommend that you write checkpoints before and after long running planning jobs, rule of thumb 4 to 6 times per day in total. This guarantees that no checkpoint has to wait for the planning run to finish and thus causing all other transactions to wait. Second, it is warranted that the results from the planning run are safely stored away in a consistent manner with the other data in liveCache. o Checking the internal (liveCache – APO DB) and external (APO – R/3) data consistency o Backup for liveCache o Reorganization of COM-objects and optimizer application logs with report /SAPAPO/OM_REORG_DAILY) Transfer of Master Data from R/3 to APO: o Initial transfer of master data records, o Delta transfer of new master data records, o Transfer of changes made to existing master data records. You should not transfer large packages of master data to APO when CIF is needed for the transfer of transactional data, because this can overload CIF and cause an undesirable communication delay. Because of these dependencies, online and background application system activity cannot always occur whenever desired, but may need to wait, for example, for the completion of administration activity. Especially in APO, long-running planning activities should not collide with APO checkpoint writing, because this can cause long waits for online users (with liveCache 7.2.x only). Therefore, program scheduling management and the software monitoring group should plan and schedule system maintenance activities to run at appropriate times, for example, overnight or over a weekend. Then, all the work necessary for the company’s core business process can be performed in the time frames determined by the business process champions. Also, certain activities – such as background jobs – should be started only after the respective preceding activity has finished.

Operational Management – Parallel and Concurrent Execution of Jobs
The combination of liveCache and database lock issues and system resource usage makes concurrent execution of some SNP job types problematic. Recommendation: Observe the following rules for scheduling or executing SNP transactions and jobs: 1) Design SNP Planning runs to run in parallel with selection variants that avoid concurrent locks. Concurrent locks in SNP jobs can occur due to: a) SNP Planning Jobs that run in parallel on the same location products or objects (for example, same resources for handling, production, or, on rare occasions, transportation resources b) Other planning activities (for example, PP/DS or SNP Optimizer) during the SNP Planning run c) Change of data by CIF during the SNP Planning run 2) The following job types may be run in parallel provided that they obey rule 1: a) SNP Batch Macros b) Deployment Heuristic c) TLB Heuristic d) Safety Stock Planning using report /SAPAPO/MSDP_SB 3) Parallel processing for the SNP heuristic may be executed for ONLY two of the three heuristic modes. © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

52

a) Multilevel Heuristic: parallel processing only if the selection variants executed in parallel specify different products AND none of the products in different variants use the same resources. b) Network Heuristic: parallel processing only if the selection variants executed in parallel specify different products AND none of the products in different variants use the same resources. c) Location heuristic: parallel processing if selection variants specify different locations OR if selection variants which specify the same location contain non-overlapping sets of products AND the products in the different selection variants do not use any common resources. When a locking situation occurs during an SNP Heuristic Run, the Heuristic will attempt to re-plan the product for a fixed number of times. It unsuccessful, it will create an error message in the job log. Refer to SAP Note 539348 for technical details. Parallel processing for a complete optimiser run is possible only if the following rules are observed: a) The complete ppm for a final product, across all appropriate locations, should be contained in the variant for that product. b) To avoid a non-optimal solution, separate variants should contain only products for which there is absolutely no overlap in components, resources, ppms, or transportation lanes. Otherwise the solution will not be optimal. c) No product-location should belong to more than one variant, and products in one variant should not use resources, transportation lanes, or ppm used by products in other variants. 5) Two users should not selection variants in SNP interactive planning which lock the same datasets. Specifically, no two selection variants which contain overlapping characteristic combinations, or else one job must wait until the other has released the lock on the data, resulting in performance problems. 6) Parallel execution should be designed to avoid CPU bottlenecks on the application server. Optimal performance is achieved when one CPU is available for each process. How critical this is depends upon how much of the response time is CPU time. For optimal performance, only run as many jobs as there are CPU on the system, and less if there are memory limitations. More jobs will run more slowly - depending upon how many CPU resources are needed by the particular job type. Some job types, such as the SNP heuristic, are heavily dependent upon the application CPU resources, while others, such as a batch macros which add two key figures, are not. Note that the SNP optimiser will consume CPU resources on the optimiser server, which can be separate from the application server. 7) Parallel execution of the SNP optimiser should be designed to avoid CPU and memory bottlenecks on the optimiser server. A good rule of thumb is that one CPU is needed for each two optimiser jobs run in parallel, although the relative amount of time spent will vary with the problem structure. Memory is often a bottleneck for the SNP optimizer; some customers configure separate optimizer servers for each run. 8) Parallel execution should be designed to avoid memory bottlenecks. To avoid this, a trial run of the process to be parallelized must be run: you should: a) Collect the statistical records for the run with FULL details b) Know how much total memory your system has (call this M_total) c) From the statistical records, find out how much memory was used by the individual process; call this number M_proc. The maximum number of parallel processes which should run at once is: N = (M_total)/(M_proc) 9) Execute all mass processing jobs at times of low system load due to their large data volume. Typically this means these jobs should be run during the night. Also run these as background jobs. 10) Do not execute the daily liveCache reorganization job concurrently with ANY type of SNP planning run or CTM. © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

53

11) Do not execute SNP planning runs concurrently with the release from DP to SNP. 12) If you are using alerts in SNP, regularly delete old alerts using report /SAPAPO/AMON_REORG. 13) If you are executing batch macros in SNP, and are creating spool files for these runs, regularly delete old job logs using transaction /SAPAPO/MC8K, or report /SAPAPO/TS_BATCH_LOGFILE. 14) Ensure that you are running report /SAPAPO/OM_REORG_DAILY on a regular basis, as described in Note 139558. However, do not run this report concurrently with any of the SNP planning runs. 15) Execute model consistency checks any time the master data for SNP is changed using transaction /SAPAPO/CONSCHK with a profile appropriate for the SNP functionality you are using. 16) If you are using time series objects in SNP, run a time series consistency check any time you make changes to the planning object structure, or add master data, using report /SAPAPO/TS_LCM_CONS_CHECK_ALL. A description of this report exists in Note 425825, and a discussion of errors caused by inconsistent time series objects can be found in Note 509479. 17) If you are using notes management within interactive planning, it is also recommended that you periodically run report /SAPAPO/TS_GEN_DOCTAB_CHECK to eliminate possible inconsistencies in the notes. However, please read Note 332812 carefully before using this report to automatically correct inconsistencies.

Literature
For more detailed information about how to administer an SAP Netweaver System, see: Frank Föse, Sigrid Hagemann, Liane Will, SAP NetWeaver AS ABAP – System Administration, 2008 For information about the administration of SAP APO systems, see: Liane Will, SAP APO System Administration, 2002 For information about how to monitor and tune general system performance, see: Thomas Schneider, SAP Performance Optimization Guide, 2008 For background information on administrative tasks with emphasis on system planning and setup, see: Hartwig Brand, SAP R/3 Implementation with ASAP, 1999

Other Best Practice Documents
In SAP Service Marketplace, alias /scm >> Related Topics / Best Practices for Solution Management: SAP SCM, you can find several Best Practice Documents for Solution Management like this one. Monitoring and Administration for SCM / APO helps you analyze the workload and performance on liveCache and the APO database. Manage APO Core Interface in SAP SCM deals with the Business Process Management of the APO Core Interface CIF and is an essential enhancement to this document. All the jobs and monitoring activities listed in the CIF document have to be considered in every business process step listed above that sends or receives data through CIF. Manage Production Planning in SAP SCM / SAP APO deals with Production Planning and Detailed Scheduling in APO and Production Execution in R/3. Manage Demand Planning in SAP SCM / SAP APO discusses the operation of Demand Planning processes. Data Consistency For SAP APO (3.x) / SAP SCM (4.x, 5.x) contains important information about master data consistency as well as internal consistency between APO DB and liveCache.

© 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

54

SAP Notes
(See also http://service.sap.com/notes) The following SAP Notes contain useful information on the performance of SAP APO: 303743: Support Packages for APO Release 3.0A 438712: Support Packages for APO Release 3.1 420669: Collective note: General Performance Improvement APO 420594: Collective Note: Performance for DP 3.0A 447708: Composite SAP note about APO system administration 500843: Composite SAP note for COM and SAP liveCache >= 7.2 Please refer to the Best Practice Document dedicated to CIF for SAP Notes with information on qRFC and CIF. The following SAP Notes contain information about the SAP Business Information Warehouse and the database underlying an SAP APO system: 124532: Performance when loading data into BW 115407: Loading large amounts of data 129252: Oracle DB Statistics for BW Tables 130253: Notes on upload of transaction data into the BW 130645: Collective note: Performance SAP BW 130691: Collective note for BW - tips & tricks 180605: Oracle database parameter settings for BW 184905: Collective note Performance BW 2.0 323090: Performance problems due to degenerated indexes 325839: Considerable increase of tablespace PSAPODSD 378509: Oracle DB Parametrisierung für APO 384023: Optimizing performance of ODS objects 400191: Further processing of data from the PSA 409641: Examples of packet size dependency on ROIDOCPRMS 421795: SAP_ANALYZE_ALL_INFOCUBES report 428212: Update of statistics of InfoCubes with BRCONNECT 458077: For all entries: Performance problems in APO Demand Planning 459188: Many small partitions in PSA tables under ORACLE 485878: DB2/390: BW: Partitioning the PSA tables 535986: MONITORING for BW fact tables under Oracle 558563: How does a client copy work with Demand Planning? The following SAP Notes contain information about the APO Supply Network Planning module including CTM planning: 206679: Transfer requirement not physically deleted 332812: Inconsistencies in selection/notes management 358283: Repair tool for existing time series network 359761: Demand Planning: loading performance data 360935: Demand Planning 3.0: Realignment tool – consulting 363092: Demand Planning: Performance Mass Processing 373756: Data extraction from a planning area 383906: DP 3.0: Data extraction - memory problems / COM errors 384550: APO 3.0 promotion: Consulting: Reporting 386735: DP: Extract data to an IC with delta update 391625: Backup and Recovery for APO 3.0A Demand Planning © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

55

393634: Release of the optimization server after 398726: DP 3.0: performance planning book/data view 401830: Display <=> Change in Interactive Planning 402046: DP 3.0: 'No liveCache anchor found' 403050: Consulting DP 3.0: Release from DP to SNP 412429: Definition of jobs with macros 413526: Consultation: Navigation attributes versus basic characteristics 420927: Data extraction of selected key figures 425825: Consistency checks, /sapapo/om17, /sapapo/cif_deltareport 426806: Memory/performance problems during data extraction 428102: Performance: Loading planning area version 428147: Extraction of data from an SNP planning area 430688: CTM: Parallel CTM runs on a planning version 432038: Creating location product to customers and vendors 441723: CTM: Profile dependency of the default rule 443500: R/3 versus APO: Dates in sales orders and deliveries 453278: Analysis tool for export DataSources (Part 3) 482494: Loading data from liveCache: Performance optimization 485018: Info on the Performance of the Optimizer-Interface 492460: Check double entries in planning object structure 495027: Changing delivered APO InfoObjects (9A*) 505886: Performance improvement during drilldown 507810: BW Reporting with SNP RemoteCubes 509479: Elimination of inconsistencies in time series objects 512184: Background processing: Periodically delete job log 512797: Use of alerts in the deployment 514593: Performance improvement with DP background processing 520876: Inconsistencies in time series objects 528913: Lock R/3 data transfer during SNP, CTM, PP/DS planning 529663: Performance during /SAPAPO/TS_LCM_CONS_CHECK 533457: CTM: Deletion of orders without enhanced checks 538046: Checklist transfer planned independent requirement 539797: Collective consulting note on macros 539848: Collective consulting note on background processing in DP 540571: Collective consulting note on data extraction in DP 541189: Collective consulting note on selections in Demand Planning 541252: Collective consulting note for planning book maintenance 541618: Collective consulting note on BW and InfoObjects in DP 541633: Collective consulting note on interactive planning 542946: Error message time series/period pattern does not exist 546079: FAQ: Background jobs in Demand Planning 549184: FAQ: What is important for extraction 568671: Collective consulting note on versions 568669: Collective consulting note on release DP – SNP 570397: Consulting: Workaround - Copying Planning Object Structures 571629: How does the note management work? 572220: Avoid use of optimizer runs with the same "names" © 2008 SAP AG

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

56

572996: Simultaneously started optimization runs 644676: Consulting note on RLCDELETE report 646738: SNP standard planning folder for safety stock planning 660194: RLCDELETE does not delete the selected orders Please also refer to the following SAP Notes: 016083: Standard jobs, reorganization jobs 139558: Scheduling report /SAPAPO/OM_REORG_DAILY 195157: Application log: Deletion of logs 375965: APO Consulting: Alerts in forecast 425825: Consistency checks, /sapapo/om17, /sapapo/cif_deltareport 495166: Tips and Tricks for Handling Alert Monitor 500063: Overview of performance notes for the Alert Monitor 519014: Handling Planning Version Management 521639: Generation of DB Alerts in Background 572003: SCM operating concept

Feedback and Questions
Send any feedback by formulating an SAP customer message to component SV-SMG-SER. You can do this at http://service.sap.com/message.

Index
/SAPAPO/AMON_MAIL_BROADCAST..27, 49 /SAPAPO/AMON_REORG......... 27, 31, 37, 49 /SAPAPO/AMON1 ........................... 27, 29, 40 /SAPAPO/C4 .........................................32, 34 /SAPAPO/CIFSTARTQUEUES ....................17 /SAPAPO/CIFSTOPQUEUES ......................17 /SAPAPO/CTM ............................................20 /SAPAPO/CTM_DEMSUP_DELETE ............19 /SAPAPO/CTMPLRUN ................................21 /SAPAPO/LCOUT ........................................35 /SAPAPO/MC8x............................... 30, 31, 47 /SAPAPO/MCPSH_GEN_SELTAB_MGM ....13 /SAPAPO/MSDP_ADMIN.......................11, 13 /SAPAPO/MSDP_SB ...................................14 /SAPAPO/OM_REORG_DAILY..............21, 23 /SAPAPO/OPT03...................................21, 23 /SAPAPO/OPT11 ...................................20, 24 /SAPAPO/OPT12...................................21, 24 /SAPAPO/RDMCPPROCESS ................32, 34 /SAPAPO/RLCDEL ......................................39 /SAPAPO/RLCDELETE ...............................39 /SAPAPO/RMDPLOPT ................................24 © 2008 SAP AG /SAPAPO/RMSDPDEP ................................37 /SAPAPO/RMSNPOPT ................................24 /SAPAPO/RMSNPTLB.................................38 /SAPAPO/RRP_NETCH...............................15 /SAPAPO/RRP3...........................................26 /SAPAPO/RSDP_CALC_SAFETY_STOCK..14 /SAPAPO/RSNPDRP1.................................17 /sapapo/rsnpllcset ........................................15 /SAPAPO/RTSINPUT ..................................35 /SAPAPO/SCC01.........................................40 /SAPAPO/SDP_EXTR .................................33 /SAPAPO/SDP110.................................32, 34 /SAPAPO/SDP94 ...................................26, 40 /SAPAPO/SNP02.........................................37 /SAPAPO/SNP04.........................................38 /SAPAPO/SNP05.........................................25 /SAPAPO/SNP106.......................................24 /SAPAPO/SNP2PPDS .................................36 /SAPAPO/SNP94.........................................25 /SAPAPO/SNPOPLOG ................................24 /SAPAPO/SNPTLB ......................................38 /SAPAPO/TS_BATCH_LOGFILE ...........31, 48

Best Practice: Manage Supply Network Planning & CTM in SAP APO (3.x) / SAP SCM (4.x / 5.x)

57

/SAPAPO/TS_BATCH_RUN ..................31, 47 /SAPAPO/TS_GEN_DOCTAB_CHECK........27 /SAPAPO/TS_LCM_CONS_CHECK ............45 /SAPAPO/TS_LCM_CONS_CHECK_ALL...11, 45 /SAPAPO/TS_LCM_REORG .......................45 /SAPAPO/TS_PAREA_EXTR_MGM ............33 /SAPAPO/TS_PAREA_INITIALIZE...............13 /SAPAPO/TS_PAREA_TO_ICUBE ..............33 /SAPAPO/TS_PSTRU_TOOL ......................45 BRCONNECT ..............................................33 © Copyright 2008 SAP AG. All rights reserved.

RSA1.....................................................34, 42 RSBATCH1 .................................................42 RSMO..........................................................42 RSTRFCI1...................................................17 RSTRFCI3...................................................17 RSVCHECK.................................................17 SAP_ANALYZE_ALL_INFOCUBES.......33, 45 SBAL_DELETE............................................43 SLG1 ...........................................................42 SO01 ...........................................................28

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, xSeries, zSeries, System i, System i5, System p, System p5, System x, System z, System z9, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, Informix, i5/OS, POWER, POWER5, POWER5+, OpenPower and PowerPC are trademarks or registered trademarks of IBM Corporation. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, Duet, PartnerEdge, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. Disclaimer: SAP AG assumes no responsibility for errors or omissions in these materials. These materials are provided “as is” without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP shall not be liable for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. SAP does not warrant the accuracy or completeness of the information, text, graphics, links or other items contained within these materials. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third party Web pages nor provide any warranty whatsoever relating to third party Web pages.

© 2008 SAP AG

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close