33
Data Consistency Check with SAP NetWeaver BI Accelerator For checking the consistency of data we recommend using the following reports and checks that exist in your SAP NetWeaver BI system: 1. Transaction RSTT: CATT traces of your TOP 10 business queries (scheduling of test jobs) 2. Transaction RSDDBIAMON2: Checks in the BIA consistency check center (scheduling of check set jobs e.g. in a process chain) 3. Checks in transaction RSRV (create packages and include them in a process chain) 1. Create a set of CATT traces in transaction RSTT Purpose When new software updates (e.g. support package stacks or new revisions for BIA) or critical notes are implemented in your system you could immediately verify the consistency of the data. Create reference data (REF mode) before you implement updates and compare it with same query executions (CHECK mode) after changes like the implementation of a BIA revision have taken place. A predefined SAP Business Content query immediately presents the results after execution of the test job in CHECK mode. o Define Top10 business critical queries with selections and one navigation step e.g. o Trace the queries o Create new reference data before the implementation of a new BIA revision and/or BI SPS/SP o Execute the test job in CHECK mode o Compare the reference data with the results of the execution of the set of traces Constraints o No data changes (roll up, change runs etc.) have taken place between reference data registration and check execution o The queries once have to return from database (first execution in trace tool always goes against database) The recording of reference data and the execution of the checks has to take place in the same logon language. SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 1

Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Data Consistency Check with SAP NetWeaver BI Accelerator For checking the consistency of data we recommend using the following reports and checks that exist in your SAP NetWeaver BI system:

1. Transaction RSTT: CATT traces of your TOP 10 business queries (scheduling of test jobs)

2. Transaction RSDDBIAMON2: Checks in the BIA consistency check center (scheduling of check set jobs e.g. in a process chain)

3. Checks in transaction RSRV (create packages and include them in a process chain)

1. Create a set of CATT traces in transaction RSTT Purpose When new software updates (e.g. support package stacks or new revisions for BIA) or critical notes are implemented in your system you could immediately verify the consistency of the data. Create reference data (REF mode) before you implement updates and compare it with same query executions (CHECK mode) after changes like the implementation of a BIA revision have taken place. A predefined SAP Business Content query immediately presents the results after execution of the test job in CHECK mode.

o Define Top10 business critical queries with selections and one navigation step e.g.

o Trace the queries o Create new reference data before the implementation of a new BIA revision

and/or BI SPS/SP o Execute the test job in CHECK mode o Compare the reference data with the results of the execution of the set of

traces Constraints

o No data changes (roll up, change runs etc.) have taken place between reference data registration and check execution

o The queries once have to return from database (first execution in trace tool always goes against database)

The recording of reference data and the execution of the checks has to take place in the same logon language.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 1

Page 2: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Steps First of all create traces for your TOP 10 queries with selections and maybe one navigational step. Open transaction RSTT. 1.1 Activate Trace User with option “Activation for Test Generation”

Goto RSRT and execute the first query with your selection and one navigational step.

The query is executed against the database and traced. Choose back back and traces

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 2

Page 3: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

The list of traces with the generated ID can be found under Trace Tool Traces.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 3

Page 4: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

1.2 Goto CATTtool wizard Follow the wizard steps.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 4

Page 5: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Change trace name and description and change trace type to OLAP trace.

Enter e.g. query variant and navigation step executed (it is not mandatory to enter something here).

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 5

Page 6: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

No selections/changes are necessary here.

No selections/changes are necessary here.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 6

Page 7: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Here you have to record the reference data.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 7

Page 8: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Save the trace.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 8

Page 9: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

1.3 Create a test package

Select Trace IDs.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 9

Page 10: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Choose playmode “D” (without aggregate) and save.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 10

Page 11: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

1.4 Create a job for the test package Choose trace type CATT Trace and Process Mode “REF”. Define a variant and the number of parallel processes.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 11

Page 12: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Save the settings Go back and choose “execute”.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 12

Page 13: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Now the reference data is recorded (execution against database) and can be used as data to be compared. 1.5 Check data Nevertheless you could compare the execution immediately against BIA to see if BIA returns the same data: Goto test packages change aggregate mode to “T” (= with BI Accelerator Index).

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 13

Page 14: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Goto Test Jobs and change the process mode to Check mode (Test Trace) execute test job.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 14

Page 15: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

1.6 Results The results of the comparison are shown in query 0RSTT_C01/0RSTT_C01_Q002.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 15

Page 16: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Should you encounter derivations (Message type “Error”) Goto CATTtool CATT traces and choose the relevant trace. The relevant Trace ID which has shown errors can be found in the query by drilling down to field “Trace ID”.

For a detailed analysis of the derivations in transaction RSTT choose CATTtool and the trace ID you found in the query before check and change play settings to “with BI Accelerator Index” execute. In case of errors, an error list is displayed and can be analyzed further.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 16

Page 17: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 17

Page 18: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

1.7 Further information on RSTT For further information on transaction RSTT please refer to note 998680 with attachments and to the official SAP documentation: http://help.sap.com/saphelp_nw70/helpdata/EN/42/ed1942bcb35433e10000000a155106/frameset.htm http://help.sap.com/saphelp_nw70/helpdata/EN/42/ed1942bcb35433e10000000a155106/frameset.htm

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 18

Page 19: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

2. Checks in the BIA consistency check center Preparation Before you schedule consistency checks, please check and, if applicable, implement the following notes: 1026157 Extended BIA consistency checks 1085358 BIA check "Random Queries" creates great load 1095886 Checking the data consistency in BI Accelerator 1060387 Analysis with incorrect results in BIA queries 1147984 BIA random query check terminates with error message 1116249 BIA - Tolerance during test for floating point key figures 1163009 Using BIA in check center even if it has status "Inactive" 1170858 BIA Random Query check terminates:

CX_SY_CONVERSION_OVERFLOW 1174578 BIA Random Query Check zeigt Fehler an - Fehler im Check (not yet

translated) Definition of checks in the consistency check center Goto RSDDBIAMON2 Goto consistency checks

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 19

Page 20: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

For details please refer to note 1026157 and the official SAP documentation: http://help.sap.com/saphelp_nw70/helpdata/EN/45/f9d95d34c606f7e10000000a155369/frameset.htm As the checks compare data in detail most of them are time-consuming. Therefore we recommend to execute some general checks regularly as described here and to execute deeper analysis via checks only in case of incidents (see matrix). All check results are displayed in the logs. Available checks in the data consistency check center are:

o Data Comparison o Totals in BIA o Totals in BIA and DB o Random Queries o Index existence

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 20

Page 21: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

In the first tab strip choose an InfoCube which contains master data that is regularly changed. Choose single tables to be checked (e.g. S/X/Y tables for one master data and the package dimension table).

This test compares the contents of each individual table with the contents of the corresponding index record-by-record. This check is only suitable for tables/indexes that do not have large amounts of data: Dimension tables, some SID, X, or Y tables, but normally not Fact tables. A table is not checked starting with a size of 10,000 records. In case you are using this check in case of an incident (suspicion of wrong data e.g.) with very large tables you might have to increase the parameter “maxlines” by using program RSDDTREX_ADMIN_MAINTAIN.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 21

Page 22: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

In tab strip “Totals in BIA” choose some of your important InfoCubes and check them with a percentage of 20% with a drill-down to an InfoObject with few characteristic values.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 22

Page 23: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

In tab strip “Totals in BIA and DB” select the same InfoCubes with the same small InfoObject but only with a percentage of 5%.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 23

Page 24: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

In tab strip “Random queries” choose 3-10 queries and an initial value.

In the check center in tab strip “random queries” the queries are executed against DB and BIA. Please use this check only after you have implemented note 1174578. Otherwise the result could show derivations between BI and BIA execution although the BIA values are correct.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 24

Page 25: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

With report RSDRT_INFOPROV_RANDOM_QUERIES you can execute the query that showed up with errors in the check protocol of the check center. Enter InfoCube, Start Value and number of query with errors. With option “Aggregate on /off” you switch between execution against database and execution against BIA.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 25

Page 26: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

In tab strip “Index Existence” the existence of the tables of the star schema of the selected InfoCubes is checked.

Should you mark the check boxes “execute after rollup/change run” please be aware that whole process chains for those actions will take longer. In fact time for rollup/change run stay the same. When the check e.g. contains 4 InfoCubes to be checked and the “Maximum Degree of Parallelization” is set to 4, the batch job will split up 4 dialog processes.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 26

Page 27: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

3. Checks in RSRV Please refer to the official SAP documentation to find the explanation for the different checks: http://help.sap.com/saphelp_nw70/helpdata/EN/6b/cda64246c6c96ae10000000a155106/frameset.htm The RSRV checks as well as the check sets from the consistency check center can be scheduled via process chains. How to configure check sets and RSRV checks in process chains will be described in the following. How to configure check sets in a process chain Use the program RSDDTREX_INDEX_CHECK for configuring the check sets and including the same in the process chain.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 27

Page 28: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Enter check set ID and create a variant. The check set can be included in a process chain.

Maintain variant.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 28

Page 29: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Enter the variant value.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 29

Page 30: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Check set is successfully included in a process chain.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 30

Page 31: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

How to configure RSRV tests in a process chain Create a test package for each RSRV check.

Save the package.

Configure the test package as a variant using program RSRV_JOB_RUNNER in SE38.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 31

Page 32: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Select test package and create a variant. Now you can include it as an ABAP program process type in your process chains.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 32

Page 33: Data Consistency Check with SAP NetWeaver BI Accelerator · The recording of reference data and the execution of the checks has to take place in ... 1.1 Activate Trace User with option

Logs The logs for the RSRV and consistency check center when scheduled via process chain can be found in transaction SLG1. RSRV-Checks Object: RSRV Subobject: BATCH Check Center Checks Object: RSDDTREX Subobject: TAGGRCHECK

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG 33