You are on page 1of 9

How to Fix Inconsistencies in SAP

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

: Shah Nawaz Shabuddin

Company : Cognizant Technology Solutions


Created on: 14 September 2011

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


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com


1

How to Fix Inconsistencies in SAP BEX 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


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com


2

How to Fix Inconsistencies in SAP BEX 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:
RSRREPDIR Directory of all reports
RSZCOMPDIR Directory of reporting components
RSZELTDIR Directory of the reporting component elements
RSZELTTXT Texts of reporting component elements
RSZELTXREF Directory of query element references
RSZOPRATXT Texts of the formula operators
RSZCOMPIC Assignment reusable component to Info Cube
RSZSELECT Selection properties of an element
RSZCALC Definition of a formula element
RSZGLOBV Global variables in reporting
RSZELTPROP Element properties (settings)
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
SAP Report ANALYZE_RSZ_TABLES is designed as a check-tool for detecting and solving
different types of inconsistencies in the main query definition database tables. This program is
recommended for BW system administrators.
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:

Corrections with inconsistent definition


Corrections with technical names
Corrections due to table checks
Corrections due to missing elements

The step by step approach of using the report, reviewing the results and taking corrective actions is
described below.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com


3

How to Fix Inconsistencies in SAP BEX Tables

The Step by Step Approach to the Solution


1. Go to transaction SE38, which brings up the ABAP Editor screen. In the Program field,
enter ANALYZE_RSZ_TABLES, and then hit execute or F8 (as shown in below snap)

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


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com


4

How to Fix Inconsistencies in SAP BEX 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 dont 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


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com


5

How to Fix Inconsistencies in SAP BEX Tables

Reviewing and Correcting Problems in a Report


We can review the report for all the tables designated by red traffic light icons along the left, if any.
For example, we have been reported of an error under table RSRREPDIR and the steps followed
for resolving the inconsistency are as below:
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


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com


6

How to Fix Inconsistencies in SAP BEX 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.

We can use ABAP ANALYZE_RSZ_TABLES during an upgrade of the SAP NetWeaver BW


system, during clean-up of the system, or when removing duplicates of queries.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com


7

How to Fix Inconsistencies in SAP BEX Tables

Related Content
Note 792779 - Report ANALYZE_RSZ_TABLES
www.sdn.sap.com/irj/sdn/howtoguides

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com


8

How to Fix Inconsistencies in SAP BEX Tables

Disclaimer and Liability Notice


This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com


9

You might also like