Skip to Content

Troubleshooting BI 7.0 BEx Analyzer Performance

h5. General Information and Scope

This posting is the second in my BI 7.0 BEx Analyzer Blog Series.  Click here  (Blog Series:  BI 7.0 BEx Analyzer) to view the blog series.  I apologize for the long wait for this installment in the series.  I have been busy with a rollout of the BI 7.0 tools company wide.  I’ll blog about this in a future posting.  And now to get on to this posting.  This posting contains tips/tools for troubleshooting performance issues with BI 7.0 BEx Analyzer workbooks based on the 7.10 GUI.  There is a separate section for each tip/tool, so that you can easily skip to the tips that pertain to your environment.

The following covers the scope of this blog posting:

0.1. This posting only covers the BI 7.0 BEx Analyzer based on the 7.10 GUI, but many of the tips/tools also apply the 6.40 GUI.

0.2. This posting only covers Excel 2007, but many of the tips/tools are also valid for previous versions of Excel.

0.3. This posting only covers troubleshooting performance issues with the Excel Analyzer workbook itself.  It does not address troubleshooting performance issues of BEx queries or the data models of the underlying infoproviders.

Test Setup for Troubleshooting Tips/Tools:

0.1. BI 7.0 BEx Analyzer based on the 7.10 GUI with patch 800 installed

0.2. Backend BI 7.0 System at SPS15 (ABAP SP17)

0.3. 2GHz Intel CPU (single core)

0.4. 2GB RAM

Here are the tips/tools.  I hope that some prove useful.

Tool:  Netweaver Check Workstation Wizard

There are times when performance issues are caused by an issue with the installation of the netweaver frontend software.  These types of performance issues are often difficult to uncover.  It is always good to begin performance issue troubleshooting by running the Netweaver Installation Check Tool to verify that there are not any installation issues that could end up causing performance issues.   

The following explains how to run the Netweaver Check Workstation Wizard: * Type in NwCheckWorkstation.exe and click OK


  • Click Check on the next screen


  • It will take a few minutes to complete the check and you will see a progress bar

  • When the check completes it should say that there are no issues as the screenshot below shows.  You can click Finish.


  • If there were issues, then these will need to be resolved or the frontend re-installed for the BEx tools to function successfully.

Tool:  BEx Installation Check

Once you have verified that the SAP Netweaver frontend software is installed correctly by running the Netweaver Workstation Check Wizard, then you should verify that the BEx tools are installed correctly.  You do this by running the BEx Installation Check tool.  This will help to identify any installation issues that might be contributing to any performance issues that you might be experiencing.  The BEx Installation Check can help to avoid time consuming troubleshooting of a performance issue that is simply related to a BEx installation issue.  

The following explains how to run the BEx Installation Check:

1. Click the Start Menu >> Then click Run . . .

2. Enter “C:Program FilesCommon FilesSAP SharedBWSAPBExCheck.xla” into the Open input box and then click OK.


3. This will bring up an Excel Spreadsheet containing the BEx Installation Check tool.  Click the Start button to begin the BEx installation check.


4. There should not be any red signed Files found.  If there are, then there is an issue with the BEx tools installation and the BI 7.0 BEx tools should be re-installed.  Note that you might also want to look at any blue or yellow files, but these generally do not indicate an installation issue.

5. Save the workbook if there are issues, so that you have the results for later reference.  These issues will need to be fixed (generally repairing/re-installing BEx).

6. Close Excel

Tool:  SAP Note Search

Another tool that I use is the SAP Note Search.  You can get to the SAP Note Search tool via the following URL (you will need an SAP Service Marketplace logon):

I typically enter “BW-BEX-ET-WB*” in the Application Area field.  The * ensures that the areas underneath this application area are also searched.  I then configure the “View / Sorting” to sort by date in descending order, so that the most recent SAP Notes appear first in the results list.  I then type the word “performance” as the search term and click the search button.  I then scroll through the result list to see if my particular performance issue appears in the list.  This can save a lot of time attempting to research a performance issue if there is already a known fix for the issue.

Tool:  Shape & Name Count Macro

Office 2007 performance can suffer if there are a lot of shapes or names in the workbook.  I have seen degraded performance if either the number of shapes or number of names in the workbook exceeds 250.  The most common reason for a large number of shapes in a BEx workbook is due to the use of hierarchies within the BEx results.  Each node has an expand/collapse node.  If you are experiencing a performance issue with a BEx Excel workbook and want to determine if the number of shapes or names in the workbook is the reason for the slow workbook, you can include the below macro in the workbook and execute the macro.  It will give you the total count of shapes and names in the workbook.  This performance issue and macro are discussed in SAP Note 1160093.

GetShapeAndNameCount Macro (Include Information between *** lines)

*****************************************<br />Public Sub GetShapeAndNameCount()</p><p>Dim count As Long<br />count = 0<br />For Each lsheet In ThisWorkbook.Sheets<br />    count = count + lsheet.Shapes.count<br />Next<br />MsgBox ThisWorkbook.Names.count & ” names” & vbNewLine & count & ” shapes”</p><p>End Sub<br />*****************************************

Tool:  Windows Task Manager

Sometimes the BEx Analyzer is slow because there are not enough resources on the client workstation.  The Windows TaskManager is a good tool for checking for available resources and determining what is currently happening from a resource usage standpoint.  You access the task manager by pressing the alt, ctrl, and delete keys at the same time and clicking the task manager button.  Clicking on the Processes tab will show what processes are using the most resources at the current moment.  It may be that an antivirus program is consuming 100% of the CPU and that is the reason that BEx is slow.  It can be useful to click the CPU or Mem Usage column headings to sort the processes by greatest to least usage.  You will not see an entry specifically for BEx, since BEx runs as an addin to Excel.  The BEx resource usage will be reflected in the Excel process as indicated in the following screenshot.


The performance tab can be useful to watch how much additional CPU or memory is consumed while you perform an action in BEx.  You can open the task manager and click on the performance tab.  Then perform the action in BEx that is causing the performance issue.  Then go back to task manager and watch to see if the CPU and/or memory increase and for how long.  This can be useful for getting closer to the underlying performance issue or for determining what part of the computer is lacking the necessary power to meet the demands of the BEx application.  See the following screenshot for the locations on the performance tab in which to look within the Task Manager tool.


Tool:  Statistics Workbook

The built in capability to create a Statistics Workbook in the BI 7.0 BEx Analyzer is probably the biggest time saver for troubleshooting BEx Analyzer workbook performance issues.  The Statistics Workbook displays all the statistics events that occurred for the frontend session along with a breakdown of the time spent on each event, the number of times the event was called, and metrics like bytes or blocks transferred.  The Statistics Workbook includes BI statistics information like OLAP time and Cells Transferred, but also includes statistics on the rendering of the various design items in the workbook.  This is a great performance troubleshooting tool.  Below I will demonstrate how to create a Statistics Workbook, discuss some general things to note about the Statistics Workbook, and give a few examples of how Statistics Workbooks have benefitted me in my troubleshooting efforts.

To Create a Statistics Workbook

1. Open the BI 7.0 BEx Analyzer

2. Log on to the backend SAP BW system.

3. Click on the Global Settings icon in the BEx Analyzer toolbar on the Add-Ins tab within Excel


4. Verify that the Statistics collection is turned on by checking on the statistics tab.  If it is not, turn on statistics collection.


5. Perform the actions within the BEx Analyzer for which you want to collect statistics.

6. Click on the Global Settings icon in the BEx Analyzer toolbar on the Add-Ins tab within Excel


7. Click on the Statistics Tab and then Click on Display Statistics to create the statistics workbook.  Once the workbook is created, click ok to close the dialog window.


8. Click on the Filter button in the statistics workbook, right click on the object name characteristic, and choose to drilldown within the rows.  This will add extremely useful additional detail to the statistics workbook.


9. You should not see the finished results of your statistics workbook.


10. Save the statistics workbook to your local computer by using the Excel save option, so that you can refer back to the workbook as a baseline for any workbook changes that you make attempting to improve performance.

General Information on Statistics Workbooks:

0.1. I generally ignore and sometimes filter out the process dialog and wait time events from the statistics workbook, since these generally are not areas that I am troubleshooting performance problems in and they are a large portion of the overall time recorded at times.

0.2. If I suspect a performance issue due to the amount of data being passed, then I generally look at the Bytes Transferred and Number Excel Cells events to compare the amount of data being sent across the network.

0.3. If I suspect a performance issue due to complex analysis authorizations, then I generally look at the authorization related events.  This is especially true if user exit variables are used within the analysis authorizations.

0.4. If I suspect a performance issue with the rendering of design items, then I look at the times recorded for the Render Item event and check to see which design item listed in the object name column is consuming the most time.


SAP Help Documentation has good descriptions of what the various statistics events represent.  Here is a link:  Statistics Events Descriptions.  (

Examples Uses of Statistics Workbooks:

0.1. Validate Workbook Compression Setting:  I wanted to validate that the number of bytes transferred for the workbook was reduced.  I created a workbook without the compression option and created a baseline statistics workbook.  I then set the workbook compression in the workbook settings and created a second statistics workbook.  I verified that the workbook compression did reduce the bytes transferred for the workbook and slightly reduced the overall processing time.

0.2. Check Impact of Optimized Storage Setting:  Frontend Support Package 800 for the BI 7.0 frontend contains a new workbook setting called Optimized Storage to help with performance with the Excel 2007 file format.  I wanted to see what the performance impact of this setting was.  I created a workbook without this setting set and then created a baseline statistics workbook.  I then set the optimized storage setting and then created a second statistics workbook.  I found out that the bytes transferred for the workbook increased slightly, but the overall time of the workbook did not change much when opened from the BW server.  I also verified that there were no other unexpected side effects to other events.  The setting did have a great impact on Excel 2007 workbooks opened from my local computer or a network share.

0.3. Troubleshoot Memory Performance Issue:  I ran into an issue with a large amount of memory being consumed when opening some workbooks, so I created a statistics workbook to see how many bytes and rows were being transferred.  I noticed the numbers were quite large.  I searched for SAP Notes regarding this issue and found Note 1150242.  I made the changes mentioned in this Note and created a second statistics workbook.  This cut the bytes transferred anywhere from 50% of the original to 10% of the original bytes transferred, which greatly reduced memory consumption and greatly improved the performance of the workbooks.

Tool:  RS Trace Tool (RSTT)

SAP provides a trace tool for BEx reporting.  That trace tool is the RS Trace Tool or transaction RSTT.  This tool allows you to record all the actions from a BEx frontend session along with their timings and gives you the ability to replay the actions.  This tool can be very useful identifying what steps within a BEx process are taking the longest.  When you find which program is taking the most time, you can also search for SAP Notes for that particular program to see if there are any performance related notes.  I have included the steps for recording and viewing an RSTT trace below.

Follow the following steps to record and then view an RSTT trace:</p><ol><li>Logon to the SAP BW system via the SAP GUI</li><li>Execute Transaction RSTT</li><li>Click on the Trace Tool Menu in the left navigation, then click on User Activation, then enter your user id, and then click the “<username> Activate” button.  This will activate your user id for RSTT tracing.<br />!|height=229|alt=image|width=448|src=|border=0!</li><li>You will notice a row added to the Trace User table.  This indicates that the tracing is active for that user.<br />!|height=187|alt=image|width=448|src=|border=0!</li><li>Next log on to the BEx Analyzer and perform the actions that you want to trace.</li><li>When you have completed your actions in the BEx Analyzer, go back to the RSTT transaction and click the “<username> Deactivate” button to deactivate tracing for your user id.<br />!|height=224|alt=image|width=448|src=|border=0!</li><li>Click on Traces in the left hand navigation, click on the newest trace, which should be at the top of the trace history list, and then click the Display button.  This will display your trace results.<br />!|height=198|alt=image|width=448|src=|border=0!</li><li>The results of your trace are now visible.  The sequence of programs that were called is listed.  The runtime for each step is listed.  This can be useful for identifying the biggest contributors to overall time.  Note:  You can also highlight a row and click the Parameters button to see the values passed to the program for that step to get a better idea of what is going on.<br />!|height=276|alt=image|width=448|src=|border=0!</li></ol>h5. Tool:  BEx Analyzer Trace File

<p>Sometimes it is useful to look at the BEx Analyzer trace file when you encounter a performance issue in order to better understand what is happening or to view the stack trace for an error that occurred.  The following steps detail how to record and view a BEx Analyzer trace file.</p><p>The first thing that you need to do is make sure that tracing is enabled with the BEx Analyzer.   Verify that tracing is enabled by performing the following steps.</p><ol><li>Click on the Global Settings icon in the BEx Analyzer toolbar on the Add-Ins tab within Excel<br />!|height=93|alt=image|width=448|src=|border=0!</li><li>Click on the Trace tab and then verify that the collect statistics checkbox is checked.  If the checkbox is not checked, then check it.  Click OK to close the dialog window.<br />!|height=336|alt=image|width=444|src=|border=0!</li></ol><p>Now perform the actions within the BEx Analyzer that you would like to trace.  Once you have completed your actions, perform the following steps to view the trace file that was recorded.</p><ol><li>Click on the Global Settings icon in the BEx Analyzer toolbar on the Add-Ins tab within Excel.<br />!|height=93|alt=image|width=448|src=|border=0!</li><li>Click on the Trace tab and then click the Display Statistics button.<br />!|height=336|alt=image|width=444|src=|border=0!</li><li>The results of the trace will be displayed in a text file.  Note that there is some performance information in the example trace file below.  It gives timings for how long the decompression of a compressed workbook takes.<br />!|height=171|alt=image|width=448|src=|border=0!</li></ol><p>Notes:

0.1. You have to close Excel and the BEx Analyzer and reopen the BEx Analyzer in order to record a new separate trace file.  Otherwise, the results get appended to the previous trace file.

0.2. Sometimes an error occurs while you are in the BEx Analyzer and you are unable to display the trace file from within the BEx Analyzer, because Excel closes due to an error.  In this case you can view the trace file by going to the following location on your computer:  “%temp% wanalyzer     races”.  You can type this location in the Start Menu >> Run . . .  and then click OK to get to this folder location.  You might want to sort the files by date to see the most recent trace file.

Tool:  RRMXP and Application Log

Sometimes you experience performance issues in the opening of the BEx Analyzer workbook and you are not opening the workbook from the BEx Analyzer GUI.  This might be the case if you are using the RRMX or RRMXP transactions from within the SAP GUI or if you are executing a link from KM in the SAP Portal that opens the BEx Analyzer workbook.  Enabling the recording of application log information during the opening of the BEx Analyzer workbook might give you additional insight into why it is taking awhile for the workbook to open.  Below I have included how to enable the recording of the application log information as well as how to view the application log information.

Steps to Enable Application Logging and View the Log Information:

1. Log on to the SAP BW system via the SAP GUI.

2. Click on the System Menu then User Profile, and then Own Data.


3. Click on the Parameters Tab.  Then enter the parameter RSAH_APPL_LOG with a value of X, hit enter, and click the Save icon.  This will enable the application logging.


4. Go to transaction RRMXP.  Enter either the workbook or the query (to be opened in the default workbook) that you would like to test.  Use the F4 help dialog windows to locate the objects.  Then click the green check mark to execute the transaction.  This will call up the BEx Analyzer and load the workbook or query that you selected.  This may take awhile, since logs are being collected.


5. Once the workbook has finished loading, go back to the SAP GUI and go to transaction SLG1 in order to view the application log.  Enter BW_XLWB for the object and LAUNCH_EXCEL for the subobject and then click the execute button.


6. This will return a list of application logs to view.  Locate the just recorded application log and double-click the entry.  This will cause the results of the application log to appear below.  View the results of the log to get an idea of the order of events that occur to open the BEx Analyzer workbook.


You must be Logged on to comment or reply to a post.
  • Hi Mark,

    Great job on this blog!!!  I'm sure that there's been some pain along the way compiling these tips and tricks, but your hard work will save others and it's much appreciated ...


  • Hi Mark,

    thanks a lot for your blog, it´s really helpful.

    One of your points is, that you have a look onto the "Item Rendering".

    That´s where I have to focus at. Now it was possible for me to reduce the time of rendering by reducing the lines of a query.

    What else could be done to reduce the time consumed by rendering?

    Thx in advance and best regards,

  • Hello Marc - First thanks for writing such an excellent blog on Bex Analyzer Performance issues.  Out of all the methods.. I found RSTT and Statistics workbook helpful.  We are having problems with performance of workbooks...and I want to exactly pinpoint the problem.  RSTT tool has function modules..from those how can anyone know where the problem is?

    Also my second question is about Statistics workbook, I did all what you said and got the output.  What does columns Validity Period, Number and Counter for Statistic Event Calls signify... Pls let me know.


  • Performance Issues independent from Excel Vesrion
    Repair Workbook while Running (Run in Repair Mode)
    1160093: Prog error/performance problems when using large workbooks

    Performance Improvement for Frontend/Backend Communication

    1150242: Improving performance/memory in the BEx Analyzer
    1094799: Corrections in the BEx Analyzer server runtime

    1179647: Performance: Network load in BEx Analyzer

    1352375: Performance improvements in a WAN (roundtrip reductions)

    Refresh of Single Queries
    1287179: Single Data Provider Refresh

    Workbook Compression
    Workbook Settings -> Use Comression When Saving Workbook
    1373214: Workbook compression

    Frontend Side Workbook Caching
    1392745: Workbook caching

    Display of Hierarchies
    1286653: Performance issues while displaying hierarchy (especially in Excel 2007)

    Workbook Initialization
    1480848: The refreshing of a workbook with huge metadata (lots of data providers, complex query definitions) takes much time for the initialization of the workbook state on the server.
    Performance Improvement for Workbooks with Lot of Excel Formulas
    1533380: The refreshing of a workbook with huge resultset and lot of Excel Formulas takes too much time.

    Performance Issues with Excel 2007
    Repair Workbook while Running (Run in Repair Mode)
    1289127: BExAnalyzer: performance issue applying styles in Excel 2007
    1293255: BExAnalyzer: crash when repairing workbook with Excel 2007

    Optimizied Storage for Excel 2007 File Formats
    1260213: Performance problems during workbook opening in Excel 2007

    Performance Issue with missing valid certificate
    Workbook Open
    1106067: BExAnalyzer: Low performance when opening Bex Analyzer on Windows

    Notes for Performance Analysis
    Collective Note for Performance Analysis
    1101143: BEx Analyzer performance

    Statistics Workbook
    1083462: Statistics workbook for performance problems

    RFC Statistics
    633441: Runtime analysis of RFC calls

    MSFT article on Excel 2007 performance