Understanding BEx Query Designer- Part-1 Screen Appearance
Understanding BEx Query Designer- Part-2 Structures_ Selections and Formulas
Understanding BEx Query Designer- Part-3 Calculated Key Figures and restricted Key Figures
Understanding BEx Query Designer- Part-4 Conditions & Exceptions
Understanding BEx Query Designer- Part-5 Query Element Properties
Understanding BEx Query Designer- Part-6 Simple Query Design
:
Scenario
Create and Populate User Exit Variable with default date as current date.
Step1: Create a variable(ex: cur_date) on requrired characteristic with Processing type "Customer Eixt" and check the check box for ready for input(if this variable need in selection screen).
Step 2: Goto T Code : CMOD and provide appropriate Project and choose components and click on display.
Step3: Double click on exit "EXIT_SAPLRRS0_001" you can see include "ZXRSRU01", double click on include.
Step4: Sample code to populate. WHEN 'CUR_DATE'.
Data : l_p_range_SSS TYPE rrrangesid.
IF I_STEP = 1.
l_p_range_SSS-Low = sy-datum.
l_p_range_SSS-Sign = 'I'.
l_p_range_SSS-Opt = 'EQ'.
APPEND l_p_range_SSS TO e_t_range.
Endif.
The following values are valid for I_STEP:
· I_STEP = 1
Call up takes place directly before variable entry
· I_STEP = 2
Call up takes place directly after variable entry. This step is only started up when the same variable could not be filled at I_STEP=1.
· I_STEP = 3
In this call up, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called up again.
· I_STEP = 0
The enhancement is not called from the variable screen. The call up can come from the authorization check or from the Monitor.
More info @http://help.sap.com/saphelp_bw320/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm
0-50 formula 1
50-100 formula 2
100-200 formula 3
and so on--
Solution: Using boolean options in BEx we can achive this.
Create new formula and use one of below conditions:
Formula1 : ((keyfigur) => 0 * (keyfigure) <= 50) * keyfigure
Formula2 : ((keyfigur) => 51 * (keyfigure) <= 100) * keyfigure
Formula1 : ((keyfigur) => 101 * (keyfigure) <= 200) * keyfigure
Formula1 : ((keyfigur) => 20 * (keyfigure) <= 300) * keyfigure
and so on ....
More info refer to link : https://forums.sdn.sap.com/thread.jspa?threadID=635618&tstart=0
RELATED POSTS
Using Customer Exit Variables in BW Reports Part - 18
b) RRI (Report to Report Interface) :
Enhance Report-Report Interface - Create Custom Report Type as Receiver
Fetching Data Directly from ECC System in BEX Query using RRI
Report to Report Interface in SAP BI 7.0
RRI - Parameters Not Transferred to R3 Transaction
SAP BW -- Pass Selection Screen Values using Customer Exit Variables in RRI
c) Series of articles about Query Designer :
Understanding BEx Query Designer- Part-1 Screen Appearance
Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas
Understanding BEx Query Designer: Part-3 Calculated Key Figures and restricted Key Figures
Understanding BEx Query Designer: Part-4 Conditions & Exceptions
Understanding BEx Query Designer: Part-5 Query Element Properties
Understanding BEx Query Designer: Part-6 Simple Query Design
d) Text Variable :
How to Use Text Variables in BW Reports Part - 1
How to Use Text Variables in BW Reports Part - 2
How to use Text Variables in BW Reports Part - 3
e) Miscellaneous
BW Text Variables of Type Replacement Path
Calculating the Difference between Created Date and Changed Date in BW-BI Reports
Change the Query Cache Mode
Creating Bucket Scenarios using Exception Aggregation (SAP Netweaver 7.0 BI)
Customer Exit Variables in SAP BW_BI Reports – First day of the Current_ Previous Month
How can a Reference Query Be used?
How to Create Variable for a Given Key Figure
How to Get the List of Queries Having a Particular Variable, Infoobject
How to Make Conditions and Exceptions Work Based on User Defined Values at the Time of Report Execution
How to use Boolean Operations in the Formula as Subsidiary for “IF” Condition
How to Use Cell Definition to Calculate Incentive of Salesmen
Inconsistencies on Reusable Query Elements (Objects) – BI 7.0
Master Text data label display in BEx Query
Populating Virtual Characteristic and Highlighting the Values
Replacement Path Explained with an Illustrated Example
SAP BW - Copy Query Between Mismatch Info Providers and Queries
SAP BW - Dynamic Call Customer Exit Variables Using Same Exit
SAP BW - Virtual Characteristic Ext (RSR00002)
Step by Step Guide on How to Use Cell Definition in BEx Query
Step by Step guide to Fiscal Week and Fiscal Quarter
Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer
Step By Step Process for Virtual Key Figures and Characteristics through BAdi
The Definitive and Complete Method for using Virtual Characteristics and Key Figures in NetWeaver BI
Variable Exit in Sap BI 7.0 - How to Start
2) BEx Analyzer (Report Analyzer) :
How to Use Cell Restrictions in BEx (BI) Reports
Step by Step Procedure of Creating Workbook using Bex Analyzer
Understanding OLAP Processor and RSRT
View the Reports Based on Two Fiscal Definition
3) Web Application Desginer (WAD) :
Customizing SAP Delivered BEx Standard Template
Formatting BEx Workbook Template
How To Build a Fast and Flexible Comment Solution for BEx Web Applications
How to Read Variable Values in WAD 7.0 Using JavaScript
Using Radio Button in Web Template
WAD Web Item and Parameter ModificationWeb Application Designer – Tips and Tricks to use Commands
Understanding BEx Query Designer- Part-2 Structures_ Selections and Formulas
Understanding BEx Query Designer- Part-3 Calculated Key Figures and restricted Key Figures
Understanding BEx Query Designer- Part-4 Conditions & Exceptions
Understanding BEx Query Designer- Part-5 Query Element Properties
Understanding BEx Query Designer- Part-6 Simple Query Design
Appearence of Values for charecterstic input help screen
Which settings can I make for the input help and where can I maintain these settings?
In general, the following settings are relevant and can be made for the input help for characteristics:
Display: Determines the display of the characteristic values with the following options "Key", "Text", "Key and text" and "Text and key".
Text type: If there are different text types (short, medium and long text), this determines which text type is to be used to display the text.
Attributes: You can determine for the input help which attributes of the characteristic are displayed initially. When you have a large number of attributes for the characteristic, it makes sense to display only a selected number of attributes. You can also determine the display sequence of the attributes.
F4 read mode: Determines in which mode the input help obtains its characteristic values. This includes the modes "Values from the master data table (M)", "Values from the InfoProvider (D)" and "Values from the Query Navigation (Q)".
Note that you can set a read mode, on the one hand, for the input help for query execution (for example, in the BEx Analyzer or in the BEX Web) and, on the other hand, for the input help for the query definition (in the BEx Query Designer).
You can make these settings in InfoObject maintenance using transaction RSD1 in the context of the characteristic itself, in the InfoProvider-specific characteristic settings using transaction RSDCUBE in the context of the characteristic within an InfoProvider or in the BEx Query Designer in the context of the characteristic within a query. Note that not all the settings can be maintained in all the contexts. The following table shows where certain settings can be made:
Setting RSD1 RSDCUBE BExQueryDesigner
Display X X X
Text type X X X
Attributes X - -
Read mode
- Query execution X X X
- Query definition X - -
Note that the respective input helps in the BEx Web as well as in the BEx Tools enable you to make these settings again after executing the input help.
When do I use the settings from InfoObject maintenance (transaction RSD1) for the characteristic for the input help?
The settings that are made in InfoObject maintenance are active in the context of the characteristic and may be overwritten at higher levels if required. At present, the InfoProvider-specific settings and the BEx Query Designer belong to the higher levels. If the characteristic settings are not explicitly overwritten in the higher levels, the characteristic settings from InfoObject maintenance are active.
When do I use the settings from the InfoProvider-specific characteristic settings (transaction RSDCUBE) for the input help?
You can make InfoProvider-specific characteristic settings in transaction RSDCUBE -> context menu for a characteristic -> InfoProvider-specific properties.
These settings for the characteristic are active in the context of the characteristic within an InfoProvider and may be overwritten in higher levels if required. At present, only the BEx Query Designer belongs to the higher levels. If the characteristic settings are not explicitly overwritten in the higher levels and settings are made in the InfoProvider-specific settings, these are then active. Note that the settings are thus overwritten in InfoObject maintenance.
When do I use the settings in the BEx Query Designer for characteristics for the input help?
In the BEx Query Designer, you can make the input help-relevant settings when you go to the tab pages "Display" and "Advanced" in the "Properties" area for the characteristic if this is selected.
These settings for the characteristic are active in the context of the characteristic within a query and cannot be overwritten in higher levels at present. If the settings are not made explicitly, the settings that are made in the lower levels take effect.
How can I display attributes for the characteristic in the input help?
Attributes for the characteristic can be displayed in the respective filter dialogs in the BEx Java Web or in the BEx Tools using the settings dialogs for the characteristic. Refer to the related application documentation for more details.
In addition, you can determine the initial visibility and the display sequence of the attributes in InfoObject maintenance on the tab page "Attributes" -> "Detail" -> column "Sequence F4". Attributes marked with "0" are not displayed initially in the input help.
Why do the settings for the input help from the BEx Query Designer and from the InfoProvider-specific characteristic settings not take effect on the variable screen?
On the variable screen, you use input helps for selecting characteristic values for variables that are based on characteristics. Since variables from different queries and from potentially different InfoProviders can be merged on the variable screen, you cannot clearly determine which settings should be used from the different queries or InfoProviders. For this reason, you can use only the settings on the variable screen that were made in InfoObject maintenance.
Why do the read mode settings for the characteristic and the provider-specific read mode settings not take effect during the execution of a query in the BEx Analyzer?
The query read mode settings always take effect in the BEx Analyzer during the execution of a query. If no setting was made in the BEx Query Designer, then default read mode Q (query) is used.
How can I change settings for the input help on the variable screen in the BEx Java Web?
In the BEx Java Web, at present, you can make settings for the input help only using InfoObject maintenance. You can no longer change these settings subsequently on the variable screen.
In general, the following settings are relevant and can be made for the input help for characteristics:
Display: Determines the display of the characteristic values with the following options "Key", "Text", "Key and text" and "Text and key".
Text type: If there are different text types (short, medium and long text), this determines which text type is to be used to display the text.
Attributes: You can determine for the input help which attributes of the characteristic are displayed initially. When you have a large number of attributes for the characteristic, it makes sense to display only a selected number of attributes. You can also determine the display sequence of the attributes.
F4 read mode: Determines in which mode the input help obtains its characteristic values. This includes the modes "Values from the master data table (M)", "Values from the InfoProvider (D)" and "Values from the Query Navigation (Q)".
Note that you can set a read mode, on the one hand, for the input help for query execution (for example, in the BEx Analyzer or in the BEX Web) and, on the other hand, for the input help for the query definition (in the BEx Query Designer).
You can make these settings in InfoObject maintenance using transaction RSD1 in the context of the characteristic itself, in the InfoProvider-specific characteristic settings using transaction RSDCUBE in the context of the characteristic within an InfoProvider or in the BEx Query Designer in the context of the characteristic within a query. Note that not all the settings can be maintained in all the contexts. The following table shows where certain settings can be made:
Setting RSD1 RSDCUBE BExQueryDesigner
Display X X X
Text type X X X
Attributes X - -
Read mode
- Query execution X X X
- Query definition X - -
Note that the respective input helps in the BEx Web as well as in the BEx Tools enable you to make these settings again after executing the input help.
When do I use the settings from InfoObject maintenance (transaction RSD1) for the characteristic for the input help?
The settings that are made in InfoObject maintenance are active in the context of the characteristic and may be overwritten at higher levels if required. At present, the InfoProvider-specific settings and the BEx Query Designer belong to the higher levels. If the characteristic settings are not explicitly overwritten in the higher levels, the characteristic settings from InfoObject maintenance are active.
When do I use the settings from the InfoProvider-specific characteristic settings (transaction RSDCUBE) for the input help?
You can make InfoProvider-specific characteristic settings in transaction RSDCUBE -> context menu for a characteristic -> InfoProvider-specific properties.
These settings for the characteristic are active in the context of the characteristic within an InfoProvider and may be overwritten in higher levels if required. At present, only the BEx Query Designer belongs to the higher levels. If the characteristic settings are not explicitly overwritten in the higher levels and settings are made in the InfoProvider-specific settings, these are then active. Note that the settings are thus overwritten in InfoObject maintenance.
When do I use the settings in the BEx Query Designer for characteristics for the input help?
In the BEx Query Designer, you can make the input help-relevant settings when you go to the tab pages "Display" and "Advanced" in the "Properties" area for the characteristic if this is selected.
These settings for the characteristic are active in the context of the characteristic within a query and cannot be overwritten in higher levels at present. If the settings are not made explicitly, the settings that are made in the lower levels take effect.
How can I display attributes for the characteristic in the input help?
Attributes for the characteristic can be displayed in the respective filter dialogs in the BEx Java Web or in the BEx Tools using the settings dialogs for the characteristic. Refer to the related application documentation for more details.
In addition, you can determine the initial visibility and the display sequence of the attributes in InfoObject maintenance on the tab page "Attributes" -> "Detail" -> column "Sequence F4". Attributes marked with "0" are not displayed initially in the input help.
Why do the settings for the input help from the BEx Query Designer and from the InfoProvider-specific characteristic settings not take effect on the variable screen?
On the variable screen, you use input helps for selecting characteristic values for variables that are based on characteristics. Since variables from different queries and from potentially different InfoProviders can be merged on the variable screen, you cannot clearly determine which settings should be used from the different queries or InfoProviders. For this reason, you can use only the settings on the variable screen that were made in InfoObject maintenance.
Why do the read mode settings for the characteristic and the provider-specific read mode settings not take effect during the execution of a query in the BEx Analyzer?
The query read mode settings always take effect in the BEx Analyzer during the execution of a query. If no setting was made in the BEx Query Designer, then default read mode Q (query) is used.
How can I change settings for the input help on the variable screen in the BEx Java Web?
In the BEx Java Web, at present, you can make settings for the input help only using InfoObject maintenance. You can no longer change these settings subsequently on the variable screen.
Scenario
Create and Populate User Exit Variable with default date as current date.
Step1: Create a variable(ex: cur_date) on requrired characteristic with Processing type "Customer Eixt" and check the check box for ready for input(if this variable need in selection screen).
Step 2: Goto T Code : CMOD and provide appropriate Project and choose components and click on display.
Step3: Double click on exit "EXIT_SAPLRRS0_001" you can see include "ZXRSRU01", double click on include.
Step4: Sample code to populate. WHEN 'CUR_DATE'.
Data : l_p_range_SSS TYPE rrrangesid.
IF I_STEP = 1.
l_p_range_SSS-Low = sy-datum.
l_p_range_SSS-Sign = 'I'.
l_p_range_SSS-Opt = 'EQ'.
APPEND l_p_range_SSS TO e_t_range.
Endif.
The following values are valid for I_STEP:
· I_STEP = 1
Call up takes place directly before variable entry
· I_STEP = 2
Call up takes place directly after variable entry. This step is only started up when the same variable could not be filled at I_STEP=1.
· I_STEP = 3
In this call up, you can check the values of the variables. Triggering an exception (RAISE) causes the variable screen to appear once more. Afterwards, I_STEP=2 is also called up again.
· I_STEP = 0
The enhancement is not called from the variable screen. The call up can come from the authorization check or from the Monitor.
More info @http://help.sap.com/saphelp_bw320/helpdata/en/1d/ca10d858c2e949ba4a152c44f8128a/content.htm
Scenario : Distribute Keyfigure values into formula elements and reprsent them in report by separate coulmn.
suppose the key figure is having 0 to 500 values then i want to make a distribution as follows:0-50 formula 1
50-100 formula 2
100-200 formula 3
and so on--
Solution: Using boolean options in BEx we can achive this.
Create new formula and use one of below conditions:
Formula1 : ((keyfigur) => 0 * (keyfigure) <= 50) * keyfigure
Formula2 : ((keyfigur) => 51 * (keyfigure) <= 100) * keyfigure
Formula1 : ((keyfigur) => 101 * (keyfigure) <= 200) * keyfigure
Formula1 : ((keyfigur) => 20 * (keyfigure) <= 300) * keyfigure
and so on ....
More info refer to link : https://forums.sdn.sap.com/thread.jspa?threadID=635618&tstart=0
RELATED POSTS
SDN Articles - BI Reporting
This page will provide the collection very good articles related BI Reporting from SDN.
List Of Articles:
1) Query Designer:
a) Customer Exists:
Using Customer Exit Variables in BW Reports Part - 18
b) RRI (Report to Report Interface) :
Enhance Report-Report Interface - Create Custom Report Type as Receiver
Fetching Data Directly from ECC System in BEX Query using RRI
Report to Report Interface in SAP BI 7.0
RRI - Parameters Not Transferred to R3 Transaction
SAP BW -- Pass Selection Screen Values using Customer Exit Variables in RRI
c) Series of articles about Query Designer :
Understanding BEx Query Designer- Part-1 Screen Appearance
Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas
Understanding BEx Query Designer: Part-3 Calculated Key Figures and restricted Key Figures
Understanding BEx Query Designer: Part-4 Conditions & Exceptions
Understanding BEx Query Designer: Part-5 Query Element Properties
Understanding BEx Query Designer: Part-6 Simple Query Design
d) Text Variable :
How to Use Text Variables in BW Reports Part - 1
How to Use Text Variables in BW Reports Part - 2
How to use Text Variables in BW Reports Part - 3
e) Miscellaneous
BW Text Variables of Type Replacement Path
Calculating the Difference between Created Date and Changed Date in BW-BI Reports
Change the Query Cache Mode
Creating Bucket Scenarios using Exception Aggregation (SAP Netweaver 7.0 BI)
Customer Exit Variables in SAP BW_BI Reports – First day of the Current_ Previous Month
How can a Reference Query Be used?
How to Create Variable for a Given Key Figure
How to Get the List of Queries Having a Particular Variable, Infoobject
How to Make Conditions and Exceptions Work Based on User Defined Values at the Time of Report Execution
How to use Boolean Operations in the Formula as Subsidiary for “IF” Condition
How to Use Cell Definition to Calculate Incentive of Salesmen
Inconsistencies on Reusable Query Elements (Objects) – BI 7.0
Master Text data label display in BEx Query
Populating Virtual Characteristic and Highlighting the Values
Replacement Path Explained with an Illustrated Example
SAP BW - Copy Query Between Mismatch Info Providers and Queries
SAP BW - Dynamic Call Customer Exit Variables Using Same Exit
SAP BW - Virtual Characteristic Ext (RSR00002)
Step by Step Guide on How to Use Cell Definition in BEx Query
Step by Step guide to Fiscal Week and Fiscal Quarter
Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer
Step By Step Process for Virtual Key Figures and Characteristics through BAdi
The Definitive and Complete Method for using Virtual Characteristics and Key Figures in NetWeaver BI
Variable Exit in Sap BI 7.0 - How to Start
2) BEx Analyzer (Report Analyzer) :
How to Use Cell Restrictions in BEx (BI) Reports
Step by Step Procedure of Creating Workbook using Bex Analyzer
Understanding OLAP Processor and RSRT
View the Reports Based on Two Fiscal Definition
3) Web Application Desginer (WAD) :
Customizing SAP Delivered BEx Standard Template
Formatting BEx Workbook Template
How To Build a Fast and Flexible Comment Solution for BEx Web Applications
How to Read Variable Values in WAD 7.0 Using JavaScript
Using Radio Button in Web Template
WAD Web Item and Parameter ModificationWeb Application Designer – Tips and Tricks to use Commands
No comments:
Post a Comment