SAP BW Workbooks

SAP BW WorkbooksSAP BW Workbooks are simply Excel sheets which hold result of queries. Formatted reports can be created with the help of SAP BW workbooks, as they allow us to change the way reports look. Apart from just formatting, you can also have Excel calculations. You can have more than one query in a single workbook and then do the analysis. A default workbook is provided to create reports with very less formatting work. Given below is the list of some of the reasons why you may choose to use SAP BW workbooks:

  • You have excellent Excel knowledge, which can be used to present the BW data in Excel format with multiple customizations (including look and feel).
  • For comparison scenarios, where you might want to do comparative analysis of multiple queries in a single worksheet.
  • You have confidential data, which can be protected through Password Protection feature of the workbook.
  • You need to broadcast regularly to multiple users. You can basically precalculate SAP BW workbooks, after which you can distribute them through email or publish on the Portal.

Consider the following report on Deliveries. The Rows/Columns section looks as follows. We have Division and Ship-To Party in rows section, whereas we have Delivered quantity in columns section.

Query Definition: Rows/Columns
Query Definition: Rows/Columns

The filters section looks as follows:

Query Definition: Filter
Query Definition: Filter

As can be seen from the above screen, there are no filters defined on the query.

Requirement

The requirement is to create a workbook on the Deliveries Report and to do Excel formatting as per the mockup given below:

Report Mockup
Report Mockup

Finally, we would like to protect the workbook for security reasons.

For the ease of understanding, this tutorial is divided into the following five sections:

  • Creating SAP BW workbook
  • Saving SAP BW workbook
  • Executing SAP BW workbook
  • Protecting SAP BW workbook

Creating SAP BW Workbooks

After logging in to the BEx Analyzer, go to File -> New -> Blank Workbook. The screenshot is given below:

Creating a Blank Workbook
Creating a Blank Workbook

Now, select a cell in the worksheet as follows:

Creating a Placeholder for the Query Result
Creating a Placeholder for the Query Result

Let us now go to the Global Settings by clicking on button highlighted in the below screen:

BEx Analysis Toolbox: Global Settings
BEx Analysis Toolbox: Global Settings

The following screen appears:

Global Settings: Select Default Workbook Tab
Global Settings: Select Default Workbook Tab

Now, go to ‘Select Default Workbook’ tab highlighted in the above screen. The following screen appears:

Global Settings: Workbook Templates
Global Settings: Workbook Templates

As can be seen from the above screen, there are three types of Workbook templates. They are given the following options:

  • Use Current
  • Use Default
  • Use SAP Standard

Let us retain the settings as they are. Now, click on Insert Analysis Grid highlighted in the below screen:

Creating a Placeholder for the Query Result: Insert Analysis Grid
Creating a Placeholder for the Query Result: Insert Analysis Grid

The following screen appears:

Inserted Analysis Grid
Inserted Analysis Grid

In order to insert the query, you have to click on the inserted analysis grid highlighted in the above screen. The following pop up appears:

Analysis Grid Properties
Analysis Grid Properties

Now, you have to create Data Provider by clicking on highlighted in the below screen:

Analysis Grid Properties: Create Data Provider
Analysis Grid Properties: Create Data Provider

The following pop up appears:

Creating Data Provider
Creating Data Provider

Let us now select the query by clicking on highlighted in the above screen. The following screen appears:

Analysis Grid Properties: Selecting the Query
Analysis Grid Properties: Selecting the Query

Select ‘ZS_DEL_WREP’ query and click on ‘Open’ button. The screenshot is given below:

Analysis Grid Properties: Selecting the Query
Analysis Grid Properties: Selecting the Query

The following screen appears:

Analysis Grid Properties: Selecting the Query
Analysis Grid Properties: Selecting the Query

Just click on ‘OK’ button highlighted in the above screen to proceed further.

Analysis Grid Properties: Confirming the Data Provider
Analysis Grid Properties: Confirming the Data Provider

As can be seen from the above screen, a Data Provider is selected. Click on ‘OK’ button highlighted above to insert the query in the workbook.

Let us now exit the design mode by clicking on button highlighted in the below screen:

Exiting the Design Mode
Exiting the Design Mode

Now, you will see the query output in the Excel as per the following screen:

Query Output
Query Output

Let us now apply the formatting as per the mockup mentioned in the requirement. It is the same as Excel formatting. The screenshot is given below:

Applying Excel Formatting to the Workbook
Applying Excel Formatting to the Workbook

Saving SAP BW Workbooks

Let us now save the workbook by clicking on button highlighted in the below screen:

Saving the Workbook
Saving the Workbook

The following screen appears:

Saving the Workbook
Saving the Workbook

Click on ‘Save Workbook’ highlighted in the above screen.

Saving the Workbook
Saving the Workbook

Let us now give the description to the workbook as ‘Deliveries Overview Workbook’ and click on ‘Save’ button highlighted in the below screen:

Enter Description and Save the Workbook
Enter Description and Save the Workbook

Executing SAP BW Workbooks

When you execute the workbook, all the formatting you’ve done earlier would be displayed automatically as you’ve saved your workbook.

Go to BEx Analyzer -> Open Workbook.

Opening the Workbook
Opening the Workbook

Select the ‘Deliveries Overview Workbook’ and click on ‘Open’ button highlighted in the below screen:

Opening the Workbook
Opening the Workbook

The output of the workbook is given below:

Output of the Workbook
Output of the Workbook

Protecting SAP BW Workbooks

Apart from the Excel settings, BEx Analyzer also offers settings for SAP BW workbooks. To see the various workbook settings, you can just go to Add-ins and click on button highlighted in the below screen:

BEx Design Toolbox: Workbook Settings
BEx Design Toolbox: Workbook Settings

The following screen appears:

Workbook Settings: General Tab
Workbook Settings: General Tab

Let us now password protect the workbook.

Protecting the Workbook with Password
Protecting the Workbook with Password

Save the workbook and execute it again. Now, the sheet is protected and you cannot do any changes using the functions of Analyzer until and unless you enter the password.

Protected Workbook
Protected Workbook

However, one can continue analyzing the result of the query without entering the password.

Tip: It is very common that your BW system might have multiple obsolete SAP BW workbooks. To cleanup your system, you need to make sure that all orphaned workbooks are deleted. But, the question is how to do that. To delete many obsolete SAP BW workbooks that are present in your BW system, you can do one of the following activities:

  • Run Function Module RRMX_WORKBOOKS_DELETE (in SE37 transaction)
  • Run Transaction RSZDELETE

Many SAP BW Consultants ignore the concepts of BEx Workbooks. They assume that any Excel Pro can work on SAP BW workbooks with ease, and there is nothing more to learn/know about SAP BW workbooks. But, as I have mentioned earlier, BEx Analyzer offers workbooks settings as well. You should understand in and out of all these features to effectively create and use them.

Did you like this tutorial? Have any questions or comments? We would love to hear your feedback in the comments section below. It’d be a big help for us, and hopefully it’s something we can address for you in improvement of our free SAP BW tutorials.

Navigation Links

Go to next lesson: SAP BW Broadcasting

Go to previous lesson: SAP BW InfoProviders

Go to overview of the course: SAP BW Training

3 thoughts on “SAP BW Workbooks”

  1. Hi,
    Can any one help to get the information of last user(Last Used) of workbook, using workbook ID.
    Thanks,
    Gaurav

Leave a Reply

Do you have a question and want it to be answered ASAP? Post it on our FORUM here --> SAP FORUM!

Your email address will not be published. Required fields are marked *