You are on page 1of 23

BW305

China Hewlett Packard

253607054.doc

BW305-02
Query Designer

Part IVersion Management


Version

Change Date

Changed by

Change Description

SAP BW
HP Confidential.

Page 1 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

Objective:

Use the BEx Query Designer to create your own queries

Change existing queries

Open queries in the BEx Analyzer and in a Web browser

Prerequisites:

Install SAP GUI 710 and Business Explorer

See SAP GUI 710 and Business Explorer Installation Guide.

Query Designer Step by Step:


Task 1:
You are interested in finding out the incoming order values and the incoming order
quantities of your customers for specific materials between March and June
1998. You want to enable the users of your report to select by specific countries.

Create a new query using the SAP Demo Cube 0D_DECU with the
characteristic Sold-to party (0D_SOLD_TO) in the row Billed Quantity
(0D_INV_QTY) and Costs (0D_COST) in the column.

1. Choose Start All


Programs Business
Explorer Analyzer

SAP BW
HP Confidential.

Page 2 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

2. In the Microsoft Excel BEx


toolbar, choose Tools Create
New Query.

3. Choose the BW7 IDES system


E-learning and click on the OK
button.
Note: The system name maybe
different on your PC. Just
choose the one you defined
for BW7 IDES system.

SAP BW
HP Confidential.

Page 3 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

4. Logon with your user ID and


password when prompted.
Note: Please using your
assigned ID to replace ##

5. The BEx Query Designer


opens, to create a new query,
choose the icon New Query
from the toolbar or Query
New.

SAP BW
HP Confidential.

Page 4 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

6. Click Find on the left and


then set Display Object Name
as to show object technical
name.

7. Enter either the technical


name or description of the
InfoProvider as search criteria.
Here, we use the technical name

0D_DECU, check the box


Search in Technical Name and
click Find on the right.

8. Select that InfoProvider and


choose Open.

9. Click on Technical Names to


show the technical name.

SAP BW
HP Confidential.

Page 5 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

10. From the Customer


dimension, transfer the Sold-to
party (0D_SOLD_TO)
into the Rows using Drag&Drop

11. From the Key Figures folder,


transfer Billed Quantity
(0D_INV_QTY)
and Costs SAP
Demo(0D_COST) into the
Columns using
Drag&Drop.

Save the query in the role Standard Authorizations for HPVL SAP eLearning
solutions:
Description: GR## BW305 Customer Query 1
Technical name: BW3054F##
Execute the query in the BEx Analyzer, view the results, then close the query
results (do not close the BEx Analyzer).

SAP BW
HP Confidential.

Page 6 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

1. To save the query, choose


Save Query.

2. Choose Roles Standard


Authorizations for HPVL
SAP eLearning solutions
and enter the following
description and technical
name:
Description: GR## BW305
Customer Query 1
Technical name:
BW3054F##
Note: Replace ## in the
description and technical
name with ID assigned to
you.

3. Choose Save

SAP BW
HP Confidential.

Page 7 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

4. Execute the query as a


report in the BEx Analyzer by
choosing Exit and use the
Query.

5. View the results, then close


the report results without
saving them. Leave the BEx
Analyzer open for the next
exercise step.

In this step, you want to change the query definition. Find the query you
created (GR## BW305 Customer Query 1) using the search function.
In the query definition, include the material in the report in order to display
the incoming orders for each material for the customers. You also want to
filter the data with a characteristic restriction to only report data for the
months 03.1998 ~ 06.1998.

SAP BW
HP Confidential.

Page 8 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

1. Choose Tools Create


New Query to enter the BEx
Query Designer.

2. In the BEx Query Designer


choose Open Query and
then Find.

SAP BW
HP Confidential.

Page 9 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

3.

China Hewlett Packard

Search for the technical


name of your query. Choose
Search Method Search
in Technical Names. Enter
BW3054F## then Find.
Note: Replace ## with ID
assigned to you.

4. Select the query GR##


BW305 Customer Query 1
from the selection list and
choose Open.

5. In the Query Designer, move


the characteristic Material
(0D_MATERIAL) from the
Product (0D_DECU5)
dimension into the Rows,
and position it under the
characteristic Sold-to party.

SAP BW
HP Confidential.

Page 10 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

6. Choose Cal. year / month


(0CALMONTH)
Characteristic from the Time
(0D_DECUT) dimension,
and place it into the
Characteristic Restriction
area on the Filter tab page
using Drag&Drop.

7. From the context menu for


Cal year / month, choose
Restrict.

8. In the screen Select Values


for , choose Value
Ranges and then Between.

SAP BW
HP Confidential.

Page 11 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

9. Select Select from list and


Enter 03.1998 and 06.1998
in the Direct Input

10. Transfer the selection using


the Arrow button, then click
OK.

Enable the users of your report to select data related to specific countries
Sold-toPartyCountry (0D_SOLD_TO__COUNTRY)). Then save and execute the
query. In the local view of the query, remove the material from the drilldown
and include the country in the drilldown before sold-to party to list the sold-to
parties by country. Also in the local view, restrict the country to Canada and
Germany. In order to enhance the readability of the report, suppress the
repeated key values.

SAP BW
HP Confidential.

Page 12 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

1. From the Customer


dimension, transfer the
Sold-toPartyCountry
(0D_SOLD_TO__COUNTR
Y) into the Free
Characteristics area using
Drag&Drop.

2. Save the query and then


execute it by clicking Exit
and use the query.

3. Launch the context menu by


right mouse click in the result
area and choose Query
Properties to open the
Local Query Properties
window.

4. Use the different Arrow


SAP BW
HP Confidential.

Page 13 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

buttons to transfer Material


from the Rows into the Free
Characteristics and SoldtoPartyCountry from the
Free characteristics into
the Rows and to position
Sold-to Party below SoldtoPartyCountry
5. Right click on SoldtoPartyCountry and choose
Select Filter Value. Select
More to open the Selection
window, if necessary.
Choose Single Values,
select Canada and
Germany then OK.

SAP BW
HP Confidential.

Page 14 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

6. Go to the Display options


tab page and check the box
for Suppress Repeated
Key Values. Choose OK.

7. View the results. Now it only


shows Canada and
Germany data.

In a further step, in the global definition of the query, establish the restriction
for the country to Canada and Germany as default values, and furthermore the
suppression of repeated key values. Execute the report and make a note of
which sold-to parties are listed in your report. Are you able to select other
countries in the report?

1. In order to change the global


definition of the query,
choose Tools and Edit
Query. The BEx Query
Designer opens.

SAP BW
HP Confidential.

Page 15 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

2. Go to the Default Value


area on the Filter tab page .
From the context menu for
Sold-toPartyCountry,
choose Restrict.

3. In the selection screen,


choose Single Values.
Select Canada and
Germany, and transfer the
selection using the Arrow
button. Choose OK.

4. In the Properties area of the


Query Designer choose the
GR## BW305 Customer
Query 1 object in the
dropdown-box, open the
Display tab page and check
the box for Hide Repeated
Key Values.
Note: Please using your
assigned ID to replace ##

SAP BW
HP Confidential.

Page 16 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

5. Choose Exit and Use the


Query to save and execute
the query.

6. Only those sold-to parties


for the countries in the
Default Value area of the
filter are listed in the initial
view, but it is possible to
change the filter and to
analyze the other countries
as well.

Task 2:
(Optional)
Create a report for the time period from May to June 1998 about the sales volumes
of your customers from the sales organization Germany Becker Berlin, with the
option of navigating by division, and of a drilldown for the sales volumes on the
months May to June 1998.

Define a new query, again basing on the SAP Demo Cube 0D_DECU. Include
the Sold-to Party (0D_SOLD_TO) in the rows and the key figure Billed
Quantity(0D_INV_QTY) in the columns of your query definition. Choose Sales
Organization (0D_SALE_ORG) as the global filter, restricted to Germany
Frankfurt (1000). Use Division (0D_DIV) and the time characteristic Cal.
Year/Month (0CALMONTH) as free characteristics. You are only interested in
the months March to June 1998.

SAP BW
HP Confidential.

Page 17 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

1. In the BEx Analyzer, from the


BEx toolbar, choose Tools
Create New Query.

2. The BEx Query Designer


opens, to create a new
query, choose the icon New
Query.

3. Choose the SAP


DemoCube (0D_DECU)

SAP BW
HP Confidential.

Page 18 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

4. From the Customer


dimension, drag Sold-to
party (0D_SOLD_TO) to
the Rows area.

5. From the Key Figures


folder, drag Billed Quantity
(0D_INV_QTY) into the
Columns area.

6. From the Organization


dimension, place the Sales
Organization
(0D_SALE_ORG)
characteristic into the
Characteristic Restrictions
area of the Filter tab page.

SAP BW
HP Confidential.

Page 19 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

7. In the context menu for


Sales Organization, choose
Restrict.

8. In the selection screen,


choose Single Values.
Select Frankfurt (1000).
Adopt the selection using the
Arrow button, then OK.

9. From the Organization


dimension, transfer the
Division (0D_DIV)
characteristic into the Free
Characteristics section.

SAP BW
HP Confidential.

Page 20 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

10. From the Time dimension,


transfer the Cal. year /
month (0CALMONTH)
characteristic into the Free
Characteristics section.

11. In the Default Values area


of the Filter tab page, enter
the context menu for Cal
year / month and choose
Restrict.

12. In the selection screen,


choose Value Ranges and
Between. Select 03.1998
and 06.1998. Adopt the
selection using the Arrow
button, then OK.

SAP BW
HP Confidential.

Page 21 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

China Hewlett Packard

Save the query in the role Standard Authorizations for HPVL SAP eLearning
solutions,
Description: GR## BW305 Customer Query 2
Technical name: BW3054G##

1. To save the query, choose


Save Query.

2. Choose Roles Standard


Authorizations for HPVL
SAP eLearning solutions
and enter the following
description and technical
name:
Description: GR## BW305
Customer Query 2
Technical name:
BW3054G##
Then Save.
Note: Replace ## in the
description and technical
name with ID assigned to
you.
3. Execute the query. In order
to list the sales volumes for
the individual months in your
report, right click Sold-to
party and choose Drill
Down and select Calendar
Year/Month.

SAP BW
HP Confidential.

Page 22 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

BW305

253607054.doc

SAP BW
HP Confidential.

China Hewlett Packard

Page 23 of 23
Copyright 2014 Hewlett-Packard Development Company, L.P.
Valid agreement required.

Last changed :December 3, 2014 at


07:39

You might also like