Vdocuments - MX - How To Fix Inconsistencies in Sap Bex Tables
Vdocuments - MX - How To Fix Inconsistencies in Sap Bex Tables
BEX Tables
Applies to:
SAP BW 3.x & SAP BI Net Weaver 2004s. For more information, visit the Business Intelligence
homepage.
Summary
This article demonstrates how to use SAP Report - ANALYZE_RSZ_TABLES to perform
consistency checks on SAP BEX tables. This ABAP tool reviews and corrects the query definition /
elements stored in BEx tables( RSZ*). It is explained with the help of an example and the relevant
snapshots.
Author Bio
Shah Nawaz Shabuddin is a senior BI Practitioner with a total of six years experience
in the SAP BI space. He is currently working with Cognizant Technology Solutions
within its India Delivery Center, Bangalore. He is heavily involved in collaborating with
business partners to convert requirements to optimal technical solutions. He comes
with rich experience in SAP BW/BI and has worked on various BW/BI
implementation/Support projects. His expertise includes SAP BI and ABAP.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 1
How to Fix Inconsistencies i n SA P B EX Tables
Table of Contents
Business Scenario .............................................................................................................................................. 3
Solution Description ............................................................................................................................................ 3
The Step by Step Approach to the Solution ....................................................................................................... 4
Reviewing and Correcting Problems in a Report................................................................................................ 6
Related Content .................................................................................................................................................. 8
Disclaimer and Liability Notice ............................................................................................................................ 9
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 2
How to Fix Inconsi stencies in SA P B EX Tables
Business Scenario
In order to maintain the consistency of queries/query elements available to the end users and for
their optimum runtime, it is required to analyze SAP BEX query database tables. As different part
of queries are stored in different tables, it becomes essential to have underlying SAP BEX query
database tables in sync.
Precisely, all the below given SAP (BEX) tables consistency need to be maintained by BW
administrators:
We can use ABAP ANALYZE_RSZ_TABLES during an upgrade of the SAP Net Weaver BW
system, during clean-up of the system, or when removing duplicates of queries.
Solution Description
We will make use of SAP Given ABAP tool – "ANALYZE_RSZ_TABLES" to detect and solve
different types of inconsistencies in the main query definition database tables.
Using ABAP ANALYZE_RSZ_TABLES, which is available in SAP Net Weaver BW 7.0, we can
analyze our BEx tables and make the following corrections to all of those tables:
The step by step approach of using the report, reviewing the results and taking corrective actions is
described below.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 3
How to Fix Inconsi stencies in SA P B EX Tables
2. In the next screen (shown below), select the tables you want to analyze under the
"Select DB Table" heading. As part of this example, we are going to analyze all the
tables.
Then, under "Special Checks/Information", check the boxes for translation and
property errors for analysis. Select the Object Version – Chose Active or Delivered.
Active means actively available within the SAP NetWeaver BW system; Delivered
means standard business content delivered by SAP. Chose the last option " All results
in a list " under Background Mode, if you wish to see all the results in a single page.
As part of our illustration, we are not going to select this option. Now, Click on Execute (F8)
button or click on the highlighted.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 4
How to Fix Inconsi stencies in SA P B EX Tables
3. The resultant screen is shown below. It contains the summary information on which the
report is executed which includes the General Information, System Settings, and the
number of different types of query element objects.
4. The below snap provides detailed information on the output of an analysis of the
selected tables.
tables with a red traffic light need to be analyzed and corrected,
tables with a yellow traffic light are non-critical and can be ignored, and
tables with green traffic lights don’t have any issues.
An Error alert indicator means the error cannot be corrected from within this
section, but has to be corrected manually.
Anything with an I indicator is for information purposes only.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 5
How to Fix Inconsi stencies in SA P B EX Tables
5. Click the eyeglasses icon for Queries with missing definition; this has a red traffic light
next to it (as shown below).
6. A detailed view opens up that provides information regarding problems that exist within
the table. To correct the issue, click the trash can icon next to Delete Inconsistent
Records from RSRREPDIR....(Refer the above snap)
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 6
How to Fix Inconsi stencies in SA P B EX Tables
7. Once the confirmation dialogue box appears (shown in below snap), click the Yes
button to continue.
8. Upon successful completion of deleting the inconsistent records, a green check mark
appears in the detail screen to indicate that the action was successful ( Shown in below
snap).
Now, if you exit / rerun the report once again, table RSRREPDIR no longer shows a red traffic light
icon (Figure 11).
Note: We should try toward removing as many errors as possible when reviewing these analyzed tables.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 7
How to Fix Inconsi stencies in SA P B EX Tables
Related Content
Note 792779 - Report ANALYZE_RSZ_TABLES
www.sdn.sap.com/irj/sdn/howtoguides
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 8
How to Fix Inconsi stencies in SA P B EX Tables
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 9