Sie sind auf Seite 1von 14

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

SAP BUSI NE SS OBJ EC TS BI 4 S ERVI C E PAC K 05 SUPPORT FOR BE X QUERY ELE ME NTS S AP BUS I NES SOBJ E CTS BI 4 D ATA CONNE CTI V I TY OPTI ONS F OR SAP NE TW EAVE R BW

Follow @ihilgefort

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel


B Y IHIL G E F ORT ON J A NUA RY 1 7 , 2 0 1 3 A D D C OMM E NT IN C RYS TA L RE P ORTS , D A S HB OA RD S , S A P B US INE S S OB J E C TS E NTE RP RIS E , S A P NE TWE AV E R B W , WE B INTE L L IGE NC E , X C E L S IUS

Ask Ingo Season 4 SAP BusinessObjects BI4 Data Connectivity Options for SAP NetWeaver BW Mapping BEx Query

Tweet

Share Share

In the following sections of this document you will learn how elements from a BEx query are being leveraged by Web Intelligence and where to find them in the query panel for Web Intelligence. Even though the screenshots are focusing on Web Intelligence, the document is also

Elements to the SAP BusinessObjects BI 4 Query Panel SAP BusinessObjects BI 4 Service Pack 05 Support

. 1 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

applicable to Crystal Reports for Enterprise and SAP BusinessObjects Dashboards as all three BI clients are sharing the integration with the BEx queries via the semantic layer.

for BEx Query Elements SAP BusinessObjects Web Intelligence 4.0 Service Pack 05 Whats new

So lets start with a very simple BEx Query:

Analysis BI BI 4

BusinessObjects
BusinessObjects Explorer

Crystal Reports

Dashboards

Data Connectivity
SAP Enterprise Portal SAP

Installation and Configuration

NetWeaver BW
Uncategorized

Figure 1: Mapping BEx Query Elements

Web Intelligence Xcelsius

As shown in Figure 1 here we are starting with a very simple BEx Query example with a set of characteristics in the Rows, in the Free Characteristics, and a set of key figures in the Columns.

. 2 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

Analysis, edition for Microsoft Office Analysis, edition for OLAP

Characteristics (= Dimension in the Query Outline)Each characteristic will be presented in the query outline with separate fields for the key, and description based on the definition of the InfoObject. For example characteristic Country is shown with a Key, Text, and Medium Text because the InfoObject has been defined with key, text, and medium text but no long text. The dimension object in the query outline for the characteristic represents the Text value.

Crystal Reports Dashboards Installation and Configuration SAP BusinessObjects Enterprise SAP Enterprise Portal SAP ERP SAP NetWeaver BW

In addition each characteristic also has an element called the default hierarchy which is the very first entry below the dimension object. The default hierarchy represents the hierarchical display in cases a hierarchy has been configured. In case no hierarchy has been configured then the default hierarchy is simply showing the members of the characteristic. The default hierarchy is very important for BEx queries with hierarchy variables.

Uncategorized Web Intelligence Xcelsius

July 2013

Navigational Attributes (= Dimension in the Query Outline) Navigational Attributes are treated like other characteristics and are also represented with the key and text based on the definition of the Navigational Attribute. Key Figures (called Measure in the Query Outline) Each Key Figure can have up to four elements: numeric value, unit, formatted value, and scaling factor. Calculated and Restricted Key Figures (called Measure in the Query Outline) Calculated and Restricted Key Figures are treated like any other Key Figure and can have up to four elements: numeric value, unit, formatted value, and scaling factor. Information about the details of the calculated or restricted Key Figure is not available in the Query Outline.

April 2013 January 2013 June 2012 March 2012 February 2012 January 2012 November 2011 June 2011 May 2011 April 2011 March 2011 February 2011

. 3 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

January 2011 December 2010 November 2010 October 2010 September 2010 August 2010 July 2010 June 2010 May 2010 April 2010 March 2010 December 2009 September 2009 August 2009 July 2009

Figure 2: Mapping BEx Query Elements

Figure 2 shows the elements for characteristic Country in more details.

. 4 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

Figure 3: Mapping BEx Query Elements

In Figure 3 we can see the Display attributes for characteristic Sales Organization. Display Attributes are turned into Detail objects and are shown as subordinates for each of the characteristics. It is important to note, that Display Attributes are shown in the Query outline even if they are not part of the BEx Query itself. Display Attributes for the Characteristics are leveraged based on the definition of the InfoObject in SAP NetWeaver BW. In Figure 3 you can see that the Display Attribute Country for the Characteristic Sales Organization is shown as a Detail object in the outline below the dimension object Sales Organization.

. 5 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

Figure 4: Mapping BEx Query Elements

Figure 4 shows the Characteristic Restrictions area of our BEx Query, which shows three BEx Variables. BEx Variables are turned automatically into prompts / parameters. Those prompts will be shown to the user each time the report is being refreshed, but the person creating the report also has access to these prompts already in the Query outline. Prompts as a result of BEx Variables used in the underlying BEx query can be used in the

. 6 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

query outline already by using the Variable Manager (see Figure 4). The Variable Manager allows the user in the query outline to see the list of available prompts and to configure default values (in addition to default values from a BEx query). The Variable Manager is very important when using BEx queries with a hierarchy and a hierarchy node variable or BEx queries with time-dependent objects, as the Variable Manager then allows the user to resolve those dependencies before creating the actual report.

Figure 5: Mapping BEx Query Elements Two Structures

Figure 5 shows a BEx Query with a custom structure in the rows and another custom structure in the columns. In the BEx Query designer only one the structures can contain actual key figures in the example above it is the structure in the columns and each of the structure elements of the structure with key figures will be mapped to measures (=key figures) in the query outline (in the example Quarter 1 to Quarter 2).

. 7 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

Figure 6: Mapping BEx Query Elements Hierarchies

Figure 6 shows a BEx Query with characteristic Product in the Rows and characteristic Product has been configured with a Hierarchy Variable. In case the underlying BEx Query contains a Hierarchy Variable, the query outline will not contain a list of available hierarchies based on the InfoObject in SAP NetWeaver BW, but instead the characteristic

. 8 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

will only be shown with the Default Hierarchy and the report designer can use the Default Hierarchy to create the report and the user will then be able to select a hierarchy using the prompt every time the report is being refreshed.

Figure 7: Mapping BEx Query Elements Variable Manager

In Figure 7 you can see the steps involved to resolve a hierarchy variable input in the query panel.

. 9 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

In step 1 the report designer is creating a new report based on a BEx query which contains a hierarchy variable. In step 2 the report designer is opening the Variable Manager in the query panel. In the Variable Manager the report designer is able to set a default value for the hierarchy variable. In step 3 based on the configured default value for the hierarchy variable the report designer is now able to open the list of members for the hierarchy so that the report designer can select specific nodes or leafs from the hierarchy in the report.

In addition to the member based selection, Web Intelligence, Crystal Reports for Enterprise, and SAP BusinessObjects Dashboards are now (SAP BusinessObjects BI4 Service Pack 04) also offering a level based selection, which allows the report designer to keep the report more flexible by not configuring a fixed set of members and leafs but instead to select levels of a hierarchy.

. 10 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

Figure 8: Mapping BEx Query Elements Hierarchy Node Variable

Figure 8 shows the Characteristic Restrictions area of the BEx Query Designer with a Hierarchy Node Variable. In case the BEx query has been configured with a Hierarchy Node variable (without a hierarchy variable) the characteristic has been configured with a specific hierarchy (in the example shown Product Hierarchy 1) and the hierarchy node variable allows the user to filter based on hierarchy nodes or leafs. In such a scenario the query outline will not show all available hierarchies and also the default hierarchy will not be shown in the query outline; in the query outline the report designer will see a single entry for the selected hierarchy.

. 11 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

Figure 9: Mapping BEx Query Elements Time dependency

In case the underlying BEx query contains time dependent objects for example a characteristic with time dependent hierarchies (not time dependent hierarchy structures) it is important to note that the query panel will not prompt for a key date before the meta-data is shown to the report design. In Figure 9 in Step 1 the characteristic Sales Group is shown with two hierarchies Sales Group Hry 1 and Sales Group Hry 2.

. 12 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

In Step 2 the report designer is opening the Variable Manager and sets a specific date for the key date variable and based on the set date the query panel is being refreshed and as shown in Step 3 one of the hierarchies is not available anymore for the specified timeframe. Especially when using BEx queries with time-dependent objects it is important to use the Variable Manager also in the query panel to resolve the time-dependency so that the report designer is able to see the correct information in the query panel.

Figure 10: Mapping BEx Query Elements Local Calculations

. 13 14

24.09.2013 11:06

Mapping BEx Query Elements to the SAP BusinessObjects BI 4 Query Panel

http://www.mastering-sap-and-businessobjects.com/mapping-bex-query-elements-to-the-sap-businesso...

TA G GE D W ITH

BI 4 BusinessObjects Crystal Reports Dashboards Data Connectivity SAP

NetWeaver BW Web Intelligence Xcelsius

Share

Tweet

Share

S HA RE

Tweet

Share

StumbleUpon

. 14 14

24.09.2013 11:06

Das könnte Ihnen auch gefallen