You are on page 1of 11

How to Create Local/Global Variants in BEX Queries

Applies to:
SAP BI 2004s or SAP BI 7.x.. For more information, visit the Business Intelligence Homepage.

Summary
This page helps in finding all the properties of a Query. Author: Aparna Duvvuri

Company: Cognizant Technology Solutions Created on: 28 September 2011

Author Bio
Aparna is currently working with Cognizant as BW Consultant. She has more than 4 years of experience in BI/BW with ABAP and BO Knowledge.

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 Create Local/Global Variants in BEX Queries

Table of Contents
Variant ............................................................................................................................................................... 3 Variant Types ...................................................................................................................................................... 3 Creation of a Variant ........................................................................................................................................... 3 Using RSRT Transaction .................................................................................................................................... 3 Using BEx Analyzer ............................................................................................................................................ 5 Using Web Analyzer ........................................................................................................................................... 7 Tables for Variant information............................................................................................................................. 9 Authorizations ..................................................................................................................................................... 9 Related Content ................................................................................................................................................ 10 Disclaimer and Liability Notice .......................................................................................................................... 11

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 Create Local/Global Variants in BEX Queries

Variant
A query variant is a query for which the variable values have already been selected. The variants can also be used for opening the query in the online display and for background processing. The variants are especially useful when the number of input values for a Query is more.

Variant Types
Variants are two types, 1. Local Variants 2. Global Variants Local Variants are one available only to the user who created the variant. Global Variants are available to all the users who can access the Query irrespective of Variant creation.

Creation of a Variant
Variant can be created in 3 ways. 1. Using RSRT Transaction. 2. Using BEx Analyzer. 3. Using Web Analyzer.

Using RSRT Transaction


Provide the query name for which variant need to be created in RSRT transaction and then click on Query Variants.

Next screen shows the list of variants if any (Epic Local in this scenario). Click on create icon and give the Variant name and Long description of the Variant.

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 Create Local/Global Variants in BEX Queries

Enter the Variable values and save the values to see the Variant created.

Variant can be selected through Load Variant icon while executing the query. The Variant created now is a Local Variant, which is available only to the user who created the variant. Variant can be deleted by loading the variant and clicking on delete icon.

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 Create Local/Global Variants in BEX Queries

Using BEx Analyzer


Open the Query which will pop up for Variable inputs, provide the values and click on Save as New Variant.

A new window will pop up for providing the description. Technical Name field will be disabled as it is a Local Variant.

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 Create Local/Global Variants in BEX Queries

If you want to make the Variant available to all the users accessing the Query, make it Global by un-checking the Save as User Variant, which will enable the Technical Name field as well. Use as Default Variant can be selected if the query is executed most of the times with same input.

An available variant can be selected from the drop down list. Variant can be deleted by selecting the variant and then clicking on the delete icon.

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 Create Local/Global Variants in BEX Queries

Using Web Analyzer


Query can be executed from Query designer, which on execution pop up a Variable screen.

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 Create Local/Global Variants in BEX Queries

For Global Variant uncheck the Save As User Variant.

An available variant can be selected from the Drop down list. Variant can be deleted by selecting the required Variant and hitting the Delete button.

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 Create Local/Global Variants in BEX Queries

Tables for Variant information


RSRPARAMETRIZA - Parametrization for a query, workbook, webapplication. This table shows details like Query name, workbook name, Type of Variant, User who created the variant. If the Global or User-Specific Variant is set to X means the variant is Local, if it is blank then the Variant is global.

RSRVARIANT -- Variant Values This table provides the values of the variant.

Authorizations
Global variants need below authorizations For 3.x -- S_RS_GVAR, Business Explorer - Global variables. For BI7 -- S_RS_PARAM, Business Explorer - Variants in Variable Screen.

SAP COMMUNITY NETWORK 2011 SAP AG

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

How to Create Local/Global Variants in BEX Queries

Related Content
Saving Query Variants Global query variants in BEx 7.x - user authorizations -- Forum thread SAP Community Network

SAP COMMUNITY NETWORK 2011 SAP AG

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

How to Create Local/Global Variants in BEX Queries

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 11

You might also like