Академический Документы
Профессиональный Документы
Культура Документы
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
Alternative Practices
You can also book an on-site Solution Management Optimization (SMO) service known as SAP
Interface Management service, whereby SAP experts support you in drawing up a data consistency
concept.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
Preliminary Information
This Best Practice is based on the most common integration scenario for setting up an SAP Supply
Chain Management (SAP SCM) solution using SAP Advanced Planner and Optimizer (APO) or SAP
Supply Chain Management.
The main components of an SAP SCM system landscape are summarized in the following table and
shown schematically in the subsequent illustration.
SAP APO System
The SAP Advanced Planner and Optimizer system facilitates the strategic,
tactical, and operational planning processes.
SAP APO consists of several software components: a relational database
system (RDBMS) as in any SAP R/3 or SAP ERP System, called APO DB;
an SAP R/3 Basis; the APO application programs; a separate, very fast,
object-oriented SAP DB database called liveCache; and a number of
programs that execute the optimization algorithms, called optimizers. These
components can run on the same or on different servers.
OLTP System
The Online Transaction Processing system covers functions for sales and
distribution, material and inventory management, controlling, shop floor
control, logistic execution, and so on.
OLAP System
OLTP
System
SAP APO
System
live
Cache
OLTP
System
RDBMS
2009 SAP AG
RDBMS
RDBMS
SAP AG
OLAP
System
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
In the following sections, we will refer to SAP R/3 and SAP ERP simply as SAP ERP.
The various strategies for using SAP ERP and SAP SCM in combination are called integration
scenarios.
The SAP APO system is connected to one or more SAP ERP OLTP systems via the Core Interface
(CIF), which transfers all relevant data between them. The CIF uses queued remote function calls
(qRFCs) to ensure the desired sequence and transactional security of data transmissions. For
information about solution management for CIF, see the Best Practice Manage APO Core Interface in
SCM.
You may also use OLTP systems other than SAP ERP. These systems cannot use the CIF for a
connection to the SAP SCM system, but SAP provides BAPIs (Business Application Programming
Interfaces) for programming data supply between third party systems and SAP APO. This scenario is
not covered in this document.
The SAP APO is the planning component of SAP SCM. 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 primarily a planning tool, although some industry-specific execution functions are
available (such as 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 ERP OLTP system, which contains all functionality for (among
many others) Material Management (MM), Sales and Distribution (SD), Production Order Processing
(PP-SFC), Logistics Execution (LES), and Controlling (CO).
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
Procedure
Consistency Checks
Overview
Implementing an SAP APO system in your system landscape increases the demand on your interface
management and system administration due to the following technical requirements:
The data required for planning is held in the liveCache database, which is stored in main
memory. This data is also stored in the SAP DB. For example, this occurs in liveCache 7.2
when savepoint is written. The consistency of the information shared by these two storage
media is called internal consistency.
Implementing SAP APO in your system landscape increases the data exchange between the
systems. In particular, a close connection is created between the SAP ERP systems and SAP
APO. Getting SAP ERP data in real-time is a prerequisite for successful planning activities in
SAP APO. This data is exchanged between SAP APO and the dedicated SAP ERP systems. It
is therefore essential that the data in SAP APO and the connected SAP ERP systems remains
consistent. This type of consistency is known as external consistency.
Causes of Inconsistency
There is inconsistency between the systems if one or more of the following has occurred:
Incomplete recovery in one of the systems in the system group
Incomplete recovery of liveCache or APO DB
Manual change to (master)data in SAP ERP or SAP APO
Program errors due to bugs or modifications/user-exits leading for example, to dumps or
update errors
Incorrect intervention in the CIF interface, for example, deletion of orders without transfer to
SAP APO
End-user error
SAP provides standard tools for checking internal and external consistency.
How you use the tools depends largely on the solution you have implemented with SAP APO.
The basic procedure recommended by SAP is first to establish internal consistency within SAP
APO and then to check the external consistency between one SAP APO system and one
dedicated SAP ERP System. Depending on the checked objects, it might be necessary to check
first the internal consistency of SAP ERP as a leading system before running the external
consistency (Example: Report SDRQCR21 and table VBBE).
As of SAP SCM 4.0 and SAP R/3 with at least Plug-In 2003.1 SAP recommends running CIF
Postprocessing after completion of master data issues and internal consistency but before
starting external consistency checks.
If more than one SAP ERP System is connected to an SAP APO system, you must use the
corresponding tool for each of these SAP ERP Systems and the SAP APO system.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
The following tables show important tools with relation to the SAP APO applications used.
Table 1: Tools for Checking Internal Consistency
Check Tool
PP/DS
ATP
DP
SNP
TP/VS
VMI
CTM
X
X
X
X
Product Variants
/SAPAPO/CONFR_CHECK_VARIANTS 3
Model consistency check
/SAPAPO/CONSCHK for relevant master
data (for example, locations, resources, and
so on)
Check is included in new transaction /SAPAPO/OM17 for APO 3.1 and higher releases.
2009 SAP AG
BOP
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
PP/DS
ATP
/SAPAPO/CIF_DELTAREPORT3
RCIFORDER_RESERVATIONS_COMPARE2
X
X
/SAPAPO/SDRQCR21
/SAPAPO/VSCC1
Configuration
/SAPAPO/RCUIB_DELETE_CFG
RCUIB_SEND_CONFIGURATION
IPPE R/3
APO
Report IPPECIF_EKG_COMPARE
Runtime Objects
/SAPAPO/CURTO_ORDER_EXPLODE
Product Variant Configuration TA
/SAPAPO/COMP_VARIANT
DP
SNP
CTM
TP/VS
VMI
X
X
X
X
If you are using SAP 4.1/5.x, many of the consistency checks in tables 1 and 2 are available in
transaction /SAPAPO/OM17. See also the documentation for this transaction in the SAP Service
Marketplace or SAP Note 425825 for further information.
Execute
After running the report in background it is possible to use the functionality Evaluate Last Background
Job.
BOP
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
For more information on running the report, see SAP Notes 413127 (FAQs for CTP) and 426563.
Prerequisites
A prerequisite for using the check report is that you use the CTP scenario.
Process
You can plan report /SAPAPO/DMOPR_REORG_CTP to run regularly (for example, weekly) in the
background. You cannot and must not define variants. Parallel processing is not necessary as the
runtime is not critical.
Result
The program run deletes the reservations of components and capacities. A results list is not created there is no need to process or work through the results.
Prerequisites
As well as the case described above (connection error to liveCache), we also recommend running the
report before each consistency check for resources.
Process
Execute transaction /SAPAPO/OM17.
Result
You can view the results list in the application log (transaction SLG1). Note that this log is not stored
under the user name. You can find it under the object APO and sub-object PPDS.
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
10
The system shows a red traffic light for the resources that could not be saved to liveCache.
Corresponding error messages are displayed in the results list for these resources.
You can select resources from the results list and save them to liveCache. You can also navigate to
resource maintenance by selecting resources and choosing Change resource. You can also display
the time stream in liveCache (times in UTC) by clicking the time stream GUID and you can display the
bucket vector by clicking the green traffic light in the Bucket Vector column.
There are some differences in the checks performed by /SAPAPO/REST02 compared to
/SAPAPO/OM17:
/SAPAPO/OM17 has more checks for resources than /SAPAPO/REST02
/SAPAPO/REST02 is more flexible at the selection and it can have a look at TS (time stream)
and BV (bucket vector):
OM17:
- Resource only in DB
- Different field contents DB-LC for header data
- In LC missing or different PP-Buckets
- Different field contents DB-LC for storage attributes
- Different CDP-block definition DB-LC
REST02:
- Different field contents DB-LC for header data
- Time stream
- Bucket vector
- PP- bucket vector
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
11
Process
In releases SAP APO 3.x, in the case of recovery, you should execute report
SAPAPO/MATRIX_TO_LC_SEND first, which transfers the setup matrixes back to liveCache
consistently. You can then execute the resource check either directly from the resource maintenance
menu by selecting Tools
liveCache Check, or in the background. The processing method you use
depends on the number of resources to be checked.
Performance
The runtime of the check is correlated positively with the number of resources to be checked and the
length of the time streams used. This means that an exact value cannot be determined for the runtime.
As a general rule, a value of between 2 and 4 resources can be taken, for which checks and repairs
can be executed for each second of runtime.
Use
You can execute the consistency check by running report /SAPAPO/REBUILD_TQA. Once you have
started the program, choose Execute and confirm the security check. The runtime can be several
minutes, depending on the data volume.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
12
Verification/Subsequent Processing
If you use ALE third-party order processing in connection with product allocation or checks
against forecasting: in this special case, it is not possible to construct all of the corresponding
persistent quantity assignments automatically, therefore you have to recheck all the orders
that were created and saved in the sales system (SAP ERP - A) but have not yet been
transferred to the delivery system (ERP - B) and updated there. You can determine the
corresponding orders using table APODELTA in the sales system (ERP - A). Call transaction
SE16 and enter APODELTA. Select table content (F7) and Execute (F8). The system then lists
all order items (DOC_NUMBER and ITEM_NUMBER) that are saved in the sales system but
that have not yet been created in the delivery system. If these order items have executed a
product allocation or a check against forecasting in SAP APO, you have to check these items
again (transaction VA02) and save them. This reconstructs the missing persistent quantity
assignments.
If you create orders in a CRM system with product allocation or checks against forecasting,
using persistent quantity assignment: In this special case, it is not possible to construct all the
corresponding persistent quantity assignments automatically, therefore, you have to recheck
all the orders that were created and saved in the CRM system but have not yet been
transferred to the connected SAP ERP system and updated there.
For details on the procedure, see SAP Note 435827.
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
13
Cross check with the set process: The order GUID Ordmap relates to the wrong order type. They
exist but are not defined in the process.
There are still OLTP scheduling agreement schedule lines although the scheduling agreement in
SAP ERP is already flagged as an SAP APO scheduling agreement.
There are still APO scheduling agreement schedule lines although the scheduling agreement in
SAP ERP is already flagged as an OLTP scheduling agreement.
Neither an outbound delivery nor a goods issue exists in the database, but they are allocated in
liveCache.
Since the data in liveCache is deleted and recreated, you must proceed with the utmost caution. You
should only use the check if inconsistencies have been noted or if liveCache crashes. In the first case,
you should focus on one scheduling agreement and in the second case you should check all of the
scheduling agreements.
Use
In the case of a recovery:
Execute the report in test mode first. This does not change the operational data in any way: It
lists all the inconsistent orders that are found. Afterwards, it is possible to correct the
inconsistent orders.
In live operation
Normally, you would not expect any inconsistencies in live operation mode. We therefore
recommend that you run the report only in test mode.
Runtime/Performance
The runtimes for the report are not critical. You can run the check in parallel. To do this, use suitable
selection criteria when creating variants for mass processing.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
14
Use
Redundant information is deleted from liveCache and the database. We recommend that you run this
report weekly.
Verification/Subsequent Processing
In test mode (UPDATE flag not set), the system simply issues a log of possible inconsistencies.
Depending on the results, you can start the report again with the UPDATE flag set. The superfluous
data records are deleted from table /SAPAPO/OPR. No further activities are required.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
15
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
16
Use
The repair of inconsistencies with transaction /SAPAPO/ATPQ_CHKUSG is intended only for
interactive processing, where you use the result list to choose the time series for which a repair is to
be performed. Additionally, you can schedule transaction /SAPAPO/ATPQ_KCGRP_U as a
background job, by creating a batch input file for this transaction and letting this batch input file run in
the background.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
17
Use
The consistency check for TP/VS can be scheduled daily. As well as running report
/SAPAPO/VS_CONS_CHECK online, you can also schedule it with corresponding variants.
We are not aware of any performance bottlenecks, but you should check the runtime for a consistency
check in your productive environment. It is possible to perform checks in parallel by creating an
individual variant for each data object type for background processing. This means that you can run a
check for Customizing, master data, shipments, and so on.
Verification/Subsequent Processing
You process the results using the list produced at the end of the check. You can branch to the
corresponding transaction to process the data by double-clicking on the relevant message of the
individual check results. You can then work through the inconsistencies.
If you run the check in the background, you can display the results using the application log
(transaction SLG1). Depending on the error priority, you may have to run a new check for the
corresponding data object type or rectify the inconsistency directly based on the error message.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
18
Use
You use online transaction /SAPAPO/CONSCHK to start the model consistency checker. You can
also run the check in background processing from the initial screen.
In case of a high data volume, use transaction SM36 to create a background-processing job for report
/SAPAPO/CONSCHK and run it in cycles. It is possible to perform checks in parallel by creating a
variant for each master data object for background processing.
Verification/Subsequent Processing
A log file is issued after you have run transaction /SAPAPO/CONSCHK interactively. You can navigate
to corresponding maintenance transactions directly from this log file to correct the inconsistencies.
During background processing, the log file is written to the database and can be processed
subsequently using transaction /SAPAPO/CONSSHOW. This subsequent processing is no different to
that of the online consistency check.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
19
Report /SAPAPO/DELETE_LOCATIONS is a housekeeping tool to clean up old locations that are not
and will not be needed anymore. All directly mapped table entries belonging to such a location will
also be deleted. Only locations that are indicated by a Deletion Flag (LVORM) = X or a temporary
location flag (OSTA_FLAG) are deleted. The number of locations with a deletion flag can be seen in
table /SAPAPO/LOC.
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
20
DP BOM relationships (as of SAP SCM 4.X or SAP APO 3.0, support package 19 (extended
form 25)/APO 3.1 support package 03 (extended form 17) or SAP Note 458666 (extended
form 636465)): The system checks the existing characteristic combinations and master data to
see whether all the relationships between dependent characteristic combinations exist in
liveCache. (Characteristic combinations are dependent if they have the same PPM and the
same free characteristics.) The system also checks whether the BOM coefficients of the PPMs
are consistent with the coefficients in liveCache. A prerequisite for checking the DP BOM
relationships is that all characteristic combinations exist. Missing BOM relationships are
created, changed BOM coefficients are adjusted.
DP Seasonality checks: Here, the system checks if the planning area is relevant for
Seasonality. If so, the system checks if all characteristic combinations have a seasonal pattern
assigned, if the assigned seasonal patterns are valid, if the periodicities used in the seasonal
patterns match with one of the periodicities in the storage bucket profile of the planning area
and if the liveCache objects for each used seasonal pattern matches their configuration in the
seasonal planning settings.
If time series are used in an SNP planning area in Supply Network Planning, the
/SAPAPO/TS_LCM_CONS_CHECK report can also be used to check this time series network and
repair inconsistencies, if required. This report is used in the same way here as it is in Demand
Planning. It is also possible for the SNP master data to be checked and corrected.
However, report /SAPAPO/TS_LCM_CONS_CHECK_ALL cannot be used for SNP planning areas.
As of Support Package 17, and in extended form as of Support Package 19, you can also check the
consistency of SNP data that is stored in time series. For more details, see SAP Notes 446360 and
441398.
If time series are used in an SNP planning area in Supply Network Planning, the report
/SAPAPO/TS_LCM_REORG_SNP can also be used. This report is used in a similar way to the report
/SAPAPO/TS_LCM_REORG in Demand Planning. For more details, see SAP Note 669287.
Use
The consistency check using report /SAPAPO/TS_LCM_CONS_CHECK can be run independently of
other activities in SAP APO. Multiple planning areas or versions can be processed in parallel. To do
this, you might have to create several variants for report /SAPAPO/TS_LCM_CONS_CHECK.
However, if the Repair option is set, any inconsistencies within the chosen planning area and planning
version are repaired. If it is set, no other processes are allowed to be active for the chosen
planning area. To ensure this, a corresponding locking logic has been provided in SAP Note 543304
and Support Package 22.
You should run report /SAPAPO/TS_LCM_CONS_CHECK regularly in check mode (daily, for
instance). You do not have to restrict other system activities here.
Before performing planning runs in the background, you should run the
/SAPAPO/TS_LCM_CONS_CHECK report in repair mode. No activities with data changes should
take place in time series in the version for the planning area.
This means that no other activities are allowed to take place within the planning area, version, and
time series combination to be checked.
CIF changes to orders do not cause problems. It is also possible to plan in a different planning area of
the same version.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
21
The type and number of inconsistencies are the decisive factor in implementing the repair mode. If a
check mode does not find any errors, you do not have to run the procedure for preventing concurrent
system activities or repair mode.
If there are a large number of inconsistencies, repair mode might have to be used more often than
described above to reduce errors in day-to-day planning.
Verification/Subsequent Processing
Depending on the processing mode, the report provides a list of all the inconsistencies in the version
and the planning area.
If repair mode is active, inconsistencies are repaired automatically. However, this does not apply to the
storage buckets profile in liveCache.
Any storage bucket profile inconsistencies cannot be repaired. However, inconsistencies here are very
rare (an example would be if the fiscal year variant was subsequently changed). Inconsistencies can
only be repaired by recreating (initializing) time series. Inconsistent master data/PPM cannot be
repaired, either. This has to be done manually or by reactivating or deleting the PPM from the relevant
models.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
22
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
23
7. Inspection Lots
8. Shipments
9. Maintenance and Service Planning
10. Different kinds of Stock Quantities:
Warehouse Stock, Project Stocks, Stocks in Transit, Sales Order Stocks, Special Stock at
Vend, Special Stocks at Customer
11. Extended Configuration checks can be performed (characteristic value assignments across the
systems for different order types) starting from SAP SCM 4.1
12. Manual Reservations
13. Production Campaigns
Basically, the DELTAREPORT checks that the data exists. It then compares, for example, important
quantities and times. The level of detail varies between the different kinds of transaction data
compared.
Typical and possible cases of inconsistencies for different kinds of orders (for example for the object
type manufacturing orders) across a system landscape are
Case 1: Order missing in SCM
Case 2: Order missing in ERP and does not yet have an external number
Case 3: Order missing in ERP and already has an external number
Case 4: Order has differences in content in SCM and ERP (for example, different deadlines or
quantities)
Case 5: Order is not contained in an active integration model in ERP
You can correct these inconsistencies as follows:
Case 1: Send order to SCM
Case 2: Send order to ERP
Case 3: Delete order in SCM
Case 4: Send order to SCM or send order to ERP
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
24
Use
To start the report in SAP APO 3.0, you can use transaction SE38, program name
/SAPAPO/CIF_DELTAREPORT3. As of SAP APO 3.1, you can use transaction /SAPAPO/CCR.
Required entry fields are the Partner System field and at least 1 object type that you want to be
checked.
Important Notes
Choosing fewer restrictions when selecting data and selecting a large variety of object types
will cause a longer runtime of the transaction. If the quantity of data you have chosen is too
large, there is the possibility that a short dump (TIME_OUT) will occur. In this instance, you
have to run the report in background processing or reduce the quantity of data.
You should start the compare/reconcile report only if there is a small data load in the Core
Interface (for example, no initial data transfer). For instance, you could do this during the night,
when no planning runs that would generate CIF-relevant documents are taking place. Otherwise,
the report could display and send false temporary inconsistencies due to parallel processing. As
of SAP Note 496779 or SAP APO 3.0A with SAPKY30A21 it is recommended to prevent this from
happening by using iteration.
Iteration Functionality (Online and Background)
With SAP notes 496779 and 488747 applied, the iteration functions for the CIF_DELTAREPORT3 are
implemented: Due to long delta report runtimes, objects may have been changed and may no longer
be inconsistent. Temporary data inconsistencies occur during the transfer of data between SAP APO
and SAP ERP and disappear again after the transfer. Note, however, that in the case of lengthy
transfers, inconsistencies may still be displayed as errors.
You should use the iteration for the online comparison and for the comparison in the background, as
well as when saving and loading results.
When using the online comparison, the user should interactively compare the displayed incorrect
objects from the result list again (iteratively) after the DELTAREPORT3 has performed a comparison
and displayed the result. If you execute the iteration several times in a row, you can further minimize
the number of errors caused by temporary data inconsistencies.
For the comparison in the background, saving the results, and loading the results, set the indicator
Iteration. In this case, the system automatically executes the iteration when saving and loading the
results. Then, temporary errors or already solved errors are cleansed and dont appear in the result list
anymore. As a next step, a manual triggering of the update of the errors is performed.
You can also use the iteration after the reconciliation to check whether the correction was successful
or not. In this way, you can determine whether an error still exists after the reconciliation or not.
Compare/reconcile reports can be run in parallel. Define multiple variants for report
/SAPAPO/CIF_DELTAREPORT3. Avoid overlapping of the same combinations of selected
object types and product location ranges. To ensure this, you can assign a dedicated variant to
each object type (for example, sales order, production order, and purchase requisition).
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
25
Verification/Subsequent Processing
Online Processing
Once the compare/reconcile is complete, an output screen appears, displaying an overview of the
results. This is done separately according to documents (orders) and stocks. A line is displayed for
every object type selected on the screen for comparing, showing the following information:
Total: The number of SAP ERP objects that have been selected for comparison
Error: The total number of errors found
All other columns: Distribution of errors to individual error areas
A tab page displaying detailed lists of the individual faulty orders or stocks is displayed for every object
type that is shown to have errors in the results overview. As of SAP SCM 4.1 the comparison results
are displayed using a navigation tree on the left side and a details view on the right side of the output
screen. Tab pages are no longer used.
In the case of faulty orders and stocks, there may be an additional tab page on every tab page, or sub
nodes in the navigation tree for an incorrect object type, listing the orders or stocks for each error
area.
If required, execute a reconcile:
Choose a tab or a sub node in the navigation tree to show a detailed list of incorrect objects and
select the lines you wish to reconcile (to make multiple selections, hold down the CTRL button at
the same time).
Choose the appropriate button (for example, Send to APO) to start the reconcile.
In the dialog box that appears, confirm that you have initiated the Send.
The current state of the data is read from the database. Depending on the transaction, the data is
transferred asynchronously using the standard CIF interface of the object type.
A selection icon/deletion icon appears beside the selected lines in the Sent/Action column indicating
that the Send has been initiated for the relevant objects. An object that has a selection icon/deletion
icon cannot be processed, even if it is reselected for this purpose.
Background Processing
Up to SAP APO 3.1, the spool list is the only result of the compare function in background mode. To
view the spool list for a job that ended without errors, choose your job in the job overview (transaction
SM37), choose Spool, choose your spool list from the spool list overview, and choose Display (F6). As
of SAP APO Support Package 7, you also have access to all detailed lists of the faulty objects. To
view these, see the spool list beside the summary results overview of the comparison for documents
and stocks.
As of SAP SCM 4.0 the results of the comparison can be saved in background processing. Then they
can be loaded at a later point in time and processed afterwards. The upload is much faster than a
complete program run. However, the loaded results reflect only the inconsistencies that were found
when the comparison results were saved. Inconsistencies that were newly created in the system
afterwards are not recognized.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
26
Important notes:
For more information, see SAP Notes 439438 and 451446.
To optimize the runtime, change the block size of the filter object. We cannot provide a general
recommendation for the block size of the filter object since the ideal setting is always based on
the relationship between the filter objects and the data objects to be checked.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
27
SAP APO:
The report does not change any data directly in SAP APO. Instead, it sends corresponding events
from the SAP ERP System to SAP APO for correction (create/update/delete). To ensure that these
events can be created, sent, and processed correctly so that inconsistencies can be eliminated, check
that the list of notes given in SAP Note 444641 and Composite SAP note 607742 for report
/SAPAPO/SDRQCR21 are implemented.
Functions
Order and delivery requirements are first gathered in SAP APO and SAP ERP. When requirements
are determined in the SAP ERP System, reorganization may be executed in line with the functions of
the ERP report SDRQCR21 (table VBBE).
The requirements are then compared at field level (MBDAT, open quantity, confirmed quantity,
plan quantity, plant, and so on) and the corresponding create/update/delete events sent.
If the option to check SD order tables is selected, the system checks that these mapping tables in
SCM exist and are consistent.
If the report is executed in test mode, the table VBBE in the SAP ERP System with the selectable
result of the reorganization is not updated, nor are any events sent. If the report is not executed in
test mode, the VBBE table may be updated with the result of the reorganization. In addition,
events for creating, updating and deleting between SAP APO and SAP ERP are sent according to
the inconsistencies found.
Both the output of the result and the processing of the events can be controlled using different
parameters.
Recent enhancements of /SAPAPO/SDRQCR21 (implemented by SAP note 987299)
The redesign of SAP ERP report SDRQCR21 to new SDRQCR21 with Processing per position
resulted in a complete new coding compared to the previous version for regenerating the
requirements. The reason was to enable this report to run in parallel to sales order business activity
and to recognize and filter such temporary errors. To avoid redundancy, a new common interface was
created and /SAPAPO/SDRQCR21 will then also use the coding of the new SDRQCR21.
For further information regarding the new version of ERP report SDRQCR21 (by SAP note 998102)
check the Best Practice Manage Global ATP.
In addition, the following improvements were made to /SAPAPO/SDRQCR21 (by SAP note 987299)
It is possible to check specific order numbers or order items with /SAPAPO/SDRQCR21
Iteration (quite similar to the iteration of the DELTAREPORT3):
o The report first selects orders in SCM, then in ERP and compares
o In case of inconsistencies, a new check is triggered as long as the inconsistencies
disappear or the number of maximal iterations is reached.
o From one iteration step to the next, a waiting time [s] can be defined.
Table /SAPAPO/OBREF was only checked for RBA sub items. With note 987299, mapping
table /SAPAPO/OBREF is checked for all document types, also Stock Transfer Orders
delivery document flow.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
28
The product allocation assignment check can be filtered for the open orders only (flag exclude
delivered orders).
For details, see the report documentation and the F1 help for the individual selection fields.
Caution: If this report is not executed in test mode and without the iteration functionality, it should only
run at a time when no change is made to sales and distribution documents in the system.
Performance
To sustain performance of the deltareport3, the /SAPAPO/SDRQCR21 and generally GATP checks
and BOP, you need to clean up entries for closed requirements and check the consistency of SD order
tables. To do this, run SCM report /SAPAPO/SDORDER_DEL regularly. Make sure to implement the
most current version with all notes listed in composite SAP Note 553476.
In case of severe performance problems with /SAPAPO/SDORDER_DEL, check the Best Practice
Manage Global ATP for specific versions of /SAPAPO/SDORDER_DEL.
Additional Information:
Note that performance issues with /SAPAPO/SDORDER_DEL (for example, runtime is longer than
one or several days or database-related short dumps like DBIF_DSQL2_CONNECTERR), typically
occur because the SD-tables in APO have grown very large and you did not run the report for a long
time.
Therefore, first check if you have applied notes 1086364 and 1061860. If this is not sufficient,
evaluate if table /SAPAPO/CIFLOOKU contains a large number of records that do not refer to sales
orders. Then, you can use report ZAPO_LOOKU_PURGE (note 997241) in addition to handle this
table also for orders other than sales orders.
/SAPAPO /SDORDER_DEL should not run in parallel to ZAPO_LOOKU_PURGE because they can
delete the same entries in tables /SAPAPO/CIFLOOKU and /SAPAPO/CIFBEFCR, thus DEADLOCK
situations can occur!
It also recommended to schedule the report ZAPO_BEFCRIT_LOOKU_ADJUST to clean up table
/SAPAPO/CIFBEFCR in accordance with table /SAPAPO/CIFLOOKU. See notes 567601
(Unnecessary entries in the table /SAPAPO/CIFBEFCR) and 1085987 (performance problems with
report ZAPO_BEFCRIT_LOOKU_ADJUST).
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
29
recommend that you run /SAPAPO/CIF_DELTAREPORT3 before starting the comparison of order
reservations because this enables you to rectify inconsistencies at the order level before the
comparison. The comparison can determine the following, cross-system inconsistencies:
Reservations in the SAP ERP order (with quantity still relevant to MRP) that do not exist in the
SAP APO order are listed under the category Missing in APO.
Reservations in the SAP APO order that do not exist in the SAP ERP order are listed under the
category Missing in ERP.
Differences in material or plant in the order reservations are listed under the category Difference
in Material/Plant.
Differences in the quantity relevant to MRP are listed under the category Difference in Quantity.
Note that a comparison is not made for co-products and by-products.
Use
Report RCIFORDER_RESERVATIONS_COMPARE can be started in dialog mode using transaction
SE38 or in background processing if you create a suitable variant and background job. If parallel
activities in the system lead to inconsistencies being displayed that do not actually exist, you can
execute an iterative comparison that compares the orders that were identified as inconsistent again.
This significantly reduces the possibility of an inconsistency being displayed that does not actually
exist. Note that this function cannot be executed selectively (only for selected orders). The iteration is
executed for all orders that are identified as inconsistent.
You are also recommended to check in the corresponding CIF queues to see if the orders concerned
are currently in a queue.
Verification/Subsequent Processing
If you are working in dialog mode, all orders with inconsistencies for order reservations are displayed
after the comparison.
To receive detailed information about the inconsistencies, you can use the Display Faulty
Reservations for Order function to display all inconsistencies along with the relevant error category
Note that this function displays the details for the order on which the cursor is currently placed.
To rectify the inconsistencies, the report enables you to retransfer the orders from SAP ERP to SAP
APO. This adjusts the orders in SAP APO to the current status of the SAP ERP orders. Once you have
done this, the orders should no longer display any inconsistencies. The block size, on the initial
selection screen is used to define the number of orders that are transferred in each LUW, when data is
reconciled from SAP ERP to SAP APO. This function is executed for all orders that you have marked
in the dialog.
After the reconciliation, you should again execute an iterative comparison to repeat the comparison for
orders that were identified as inconsistent. This enables you to check whether the orders have been
transferred correctly. Note that this function cannot be executed selectively (only for selected orders).
The iteration is executed for all orders that are identified as inconsistent.
You are also recommended to check in the corresponding CIF queues to see if the (faulty) orders
concerned are currently in a queue. You can also check this using the delta report in SAP APO.
After a comparison in the background, the inconsistencies that were found are logged in detail for
each order in the spool list. Under print options, you should select a report width of at least 140
columns to ensure that you receive all information about the inconsistent reservations in the spool list.
If the comparison is executed using Reconcile Errors Automatically, the inconsistencies that are found
are reconciled using an automatic retransfer of the orders from SAP ERP to SAP APO. Only use this
option if you have made extensive tests in dialog mode.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
30
Use
It is not currently possible to determine data inconsistencies for configurations. However, report
/SAPAPO/RCUIB_DELETE_CFG requires an exact specification of the configuration to be deleted.
For this reason, it is not possible to recommend a regular procedure for avoiding inconsistencies. The
tool can only be used to rectify inconsistencies that have already been identified.
Verification/Subsequent Processing
After the configuration(s) have been deleted, they have to be retransferred from SAP ERP. To do this,
use report RCUIB_SEND_CONFIGURATION.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
31
Use
The comparison tool can be used online or in the background. It is possible to parallelize the process
by creating suitable variants. For example, it is possible to process different plants in parallel.
On the basis of the last change in SAP ERP, it can be checked if the data still has been transferred to
SAP APO or not. The following results are possible:
Inconsistent master data exist
The results are listed and can be transferred again, compared again or a protocol can be
displayed. When starting a new transfer, the existing PPDS runtime objects are overwritten.
Objects without errors get a green status. When starting a new comparison, they are no longer
compared.
No inconsistent master data exist
You are directly routed to the application log.
2.
A manufacturing order is simulated on ERP and on APO side to compare the consistency of the
master data on both sides. Here, you can get a detailed list of inconsistent data. The ERP and APO
master data explosion result including operations, phases, input- and output products and
relationships are listed next to each other in a tree. It is now possible to transfer again.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
32
Prerequisites
This report just compares APO-relevant data like routing/recipe, production version, work center,
components. On ERP side, relevant data for creating a manufacturing order has to exist. An active
integration model for the PP/DS runtime object / Production Data Structure (PDS) has to exist as well.
Restrictions
When using customer exits or BAdIs to modify the results of master data explosion, it is necessary to
adapt them if the comparison your modifications should be taken in account.
Use
If indicator extended check is set, the system also checks whether the characteristic values of the
product variants are consistent in SAP APO and in the ERP system (plug-in).
Note: The check for the characteristic values of the product variants is very time-consuming. Only
execute the check if you suspect inconsistencies in the valuation.
Use
If indicator Manual Reservations is set, the system checks if Manual reservations are consistent
between the two systems with regard to key attributes like date and quantity.
Reconciliation options are available like in other objects, which allow the user to retransfer the
reservation or delete it.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
33
Use
If indicator Production Campaigns is set, the system checks if Production Campaigns are consistent
between the two systems. The consistency may concern to the absence of the campaign in either of
the systems or a different set of planned orders contained in them. If there is an issue with the planned
orders, they need to be corrected separately first.
Standard reconciliation options are available like in other objects.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
34
Select the Object Types to be Checked and Execute the Consistency Check
Check the results Overview and rectify the inconsistencies. For more details, see the relevant
sections.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
35
Follow-up Processing:
Unlock the CIF Queues
After the consistency checks, or once you have restored internal data consistency, you can restart the
CIF queues. If you are using inbound queues, use report RSTRFCQ3. If you are using outbound
queues, you have to restart the queues using transaction SMQ1 and program RSTRFCQ3.
Release The Background Jobs That You Stopped Earlier.
You can select from all jobs with the status 'planned' for which the start date lies between the previous
day and the following day.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
36
Check Tool
Check
OM17
Parallel
Frequency (APO3.1) Processing
Once a day Y
if needed
Once a day Y
if needed
Limited Y
Setup Matrices
Resources
Pegging Areas
Transaction /SAPAPO/OM17
If needed
once per
day
If needed
once per
month
Procurement
Scheduling
Agreements
Only if
errors
occur
Order Operations
Z_CHECK_CONSISTENCY_OPERATIONS
SAP APO 3.1, SAP SCM 4.X / 5.0::
Transaction /SAPAPO/OM17
Campaigns
If needed
once per
day
Report /SAPAPO/DMOPR_REORG_CTP
If needed
(e.g. CTP
used) once
per week
(depends
on volume)
Once a day Y
if needed
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
37
Check Tool
Report /SAPAPO/RCUIB_DELETE_CFG
Configuration
Check
Frequency
OM17
(APO3.1)
Parallel
Processing
After
N
Deltareport3
if needed
After delta
report 3
After Delta- Y
transfer of
iPPE data, if
needed.
If needed
Report RCUIB_SEND_CONFIGURATION
(ERP)
3
Documents and
Stocks
Report /SAPAPO/CIF_DELTAREPORT3
Parallel Processing Profile available as of
Once a day
if needed
SCM 4.1 SP 5
4
Sales Order
Requirements
Report /SAPAPO/SDRQCR21
Production Order
Reservations
iPPE
Report IPPECIF_EKG_COMPARE
Check Tool
Check
OM17
Frequency (APO3.1)
Parallel
Processing
Once a day Y
if needed
Limited Y
Once a day N
if needed
Limited Y
Resources
Reports:
/SAPAPO/TS_LCM_CONS_CHECK
/SAPAPO/TS_LCM_CONS_CHECK_ALL
/SAPAPO/TS_LCM_REORG_SNP
Once a day Y
if needed
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
38
Check Tool
Check
OM17
Frequency (APO3.1)
Parallel
Processing
Report: /SAPAPO/CIF_DELTAREPORT3
Once a day N
if needed
After
Deltareport
3 if needed
Documents and
Stocks
SCM 4.1 SP 5
2
Sales Order
Requirements
Report: /SAPAPO/SDRQCR21
see note 444641
Check Tool
Check
Freq.
Report:
Once a day N
if needed
/SAPAPO/TS_LCM_CONS_CHECK
OM17
(APO3.1
Parallel
Processing
N
/SAPAPO/TS_LCM_CONS_CHECK_ALL
Check Tool
Check
New OM17 Parallel
Frequency (APO3.1)
Processing
Report
Once a day N
if needed
/SAPAPO/DMOPR_REORG_CTP
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
39
Check Tool
Check
New OM17 Parallel
Frequency (APO3.1)
Processing
Reports:
Once a day N
if needed
Limited Y
if used
/SAPAPO/TS_LCM_CONS_CHECK
/SAPAPO/TS_LCM_CONS_CHECK_ALL
2
Product Allocations
Transaction /SAPAPO/ATPQ_CHKUSG
Check Tool
Report : /SAPAPO/RCUIB_DELETE_CFG
Configuration
Check
Frequency
OM17
(APO3.1)
Parallel
Processing
Once a day
if needed
After
Deltareport
3 if needed
Report: RCUIB_SEND_CONFIGURATION
(ERP)
2
Schedule Line
Agreements
Report: /SAPAPO/PWB_KILL_INCO
Documents and
Report /SAPAPO/CIF_DELTAREPORT3
Stocks
SCM 4.1 SP 5
4
Sales Order
Requirements
Report: /SAPAPO/SDRQCR21
Production Order
Reservations
After delta
APO 3.X: Report
RCIFORDER_RESERVATIONS_COMPARE report 3
(ERP)
iPPE
Report IPPECIF_EKG_COMPARE
After Delta
transfer of
iPPE data,
if needed.
If needed
/SAPAPO/CURTO_ORDER_EXPLODE
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
40
Check Tool
Monitor
OM17
Frequency (APO3.1)
Parallel
Processing
Report s:
/SAPAPO/TS_LCM_CONS_CHECK
Once a day N
if needed
Limited Y
/SAPAPO/TS_LCM_CONS_CHECK_ALL
2
Product Allocations
Transaction /SAPAPO/ATPQ_CHKUSG
Product allocations
Transaction: /SAPAPO/ATPQ_ALERT
After step 2 N
Check Tool
Monitor
OM17
Frequency (APO3.1)
Parallel
Processing
TP/VS internal
consistency checks
Once a day Y
if needed
TP/VS external
consistency checks
Report : /SAPAPO/CIF_DELTAREPORT3
Once a day N
if needed
Once a day N
if needed
/SAPAPO/OM17
SCM 4.1 SP 5
3
Additional TP/VS
external and internal
consistency checks
2009 SAP AG
Transaction: /SAPAPO/VSCC
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
Further Information
Troubleshooting
If the information contained in this Best Practice did not produce the desired results, check whether
the following SAP Notes provide a solution to your problem:
998102
987299
872607
843435
625755
607742
602484
597248
589136
587496
574976
566319
543304
539199
538111
504133
488725
481281
458854
451446
446360
444641
441398
439438
436527
425825
2009 SAP AG
41
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
414908
391408
42
If you experience problems with the delta report functions, create a SAPNet message in SAPNet R/3
front end under the component SCM-APO-INT. http://service.sap.com/message.
Literature
For more detailed information about how to administer an SAP NetWeaver System, see:
Frank Fse, Sigrid Hagemann, Liane Will, SAP NetWeaver AS ABAP System Administration,
2008
For information about the administration of SAP APO and SAP SCM 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
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
43
Important: Check SAP Service Marketplace regularly to see if new notes exist for all important check
reports, for example, /SAPAPO/CIF_DELTAREPORT3. In particular, you are recommended to check
composite SAP Note 439438.
Known Problems
A heavy data load at the interface can lead to inconsistencies being reported that do not actually exist.
This is because the data that is being transferred cannot be posted fast enough. Use the iteration
functions if available or run the report again.
2009 SAP AG
Best Practice: Internal and External Consistency for SAP APO (3.x) and SAP SCM (4.x, 5.x)
44
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.
2009 SAP AG