Question on BEx query

A report is being generated on Sales.
The fields in the query are Sales Group, Product .... and Key figures revenue and bookings.
In Sales Group the values are 01, 02, 03 , 04 , 05 , 06 , 07 , 08
and Product category is  100001345, 100001367, 1000001389
The output result should be Sales group = 03 and Product category = all (100001345, 100001367, 1000001389)
and
Sales group <> 03 and product category = 100001367
How can this be achieved?

Hi,
You can restrict Sales group by variable (User Entry), so that you will get data for the specific Sales group.
In order to show revenue and bookings splitted into two parts (by all product category and by single product category), I would take help of restricted key figure concept.
In the coloumns section, I would create new structure and within that 4 selections. (restricted Key Figures)
1st selection -->  revenue & product group (with no selection or restriction)
2nd selection -->  revenue & product group (with selection, here either you can hardcode your value or take it as variable)
3rd selection -->  bookings & product group (with no selection or restriction)
4th selection -->  bookings & product group (with selection, here either you can hardcode your value or take it as variable)
In above way, in a single line I can see 4 key figures as desired & put them appropriate titles/headings
For details of how to do selection with key figures, chk below link.
http://help.sap.com/saphelp_nw70/helpdata/en/f1/0a564ce09411d2acb90000e829fbfe/content.htm
Hope this helps you,
Regards,
Vinay

Similar Messages

  • BW Bex query and Webi question

    Hi All.
    Just a quick question on Bex queries. We are selecting a Bex query as a source for universe. However on the webi side we only want to see a subset of the data.
    1) The question is Would this rerun the entire BEX query on the BW side ? Or is there a better way to design the universe ?
    2) Also are there any best practices on how to desing Webi reports from BW BEX queries and also Infocubes etc ?
    Thanks in advance.

    Hi puneet,
    The WebI builds a query on the BEx results. The query is related only to those items used in the WebI report. However, the BEx query must have the results in it, as the WebI does not execute it. I am not aware of a best practices document.
    Regards
    Alan

  • Universe on BEX query - Measures Question !!

    Hello All,
    I am building a Universe on BEx Query.
    We have the following environment:
    SAP BOE XI 3.1 SP2 FIX Pack 2.5
    Integration KIT SP2 FIX PACK 2.5
    SAP BW 701 Level 6
    I see that in the BEX query the KF have technical names as "ZZRKF_Amount".
    But, when this query is brought into Universe, I see the tech names as
    [[4J922TWKO24NHTROOEY3WXK72]].[[4J922URARWJHKBXHBR7H15F26]]
    I would like to see this as [[MEASURE]].[[ZZRKF_Amount]].
    Does anyone know how to do it?
    Your help & time is appreciated.
    Thanks

    Hi,
    In the Universe Designer, select Tools ->options. In the OLAP tab, there is option to select as generate technical names as details.
    I guess this may help you.
    If still facing the same issue, then follow the user guide from the below link:
    http://help.sap.com/
    -Noor.

  • Difference between  aggregation and calculation tab in BEx Query Designer

    HI,
    I am using BEx Query Designer for my report, for the key figures in the coloumn area i slected one numeric key figures, in  the properties tab i found aggregation tab and calculation tab.
    I need to sum up the total values for that particualar coloumn, when i used calculation tab i found to sum all the values for a particular coloumn, then what is the use the aggreagation tab?
    I not able to used that Aggregation tab it is showing as a hidden fields...
    can any one tell me whats the exact difference between these tabs and when we need to use which tab?
    With Regards,
    Thanesh Kumar.

    Hi Thanesh Kumar,
    I moved this thread from forum Data Warehousing to Business Explorer since it is a query related question (as SDN moderator).
    I could explain to you the difference between these two tabs.
    For "calculation" tab, it changes the display of result and does not change the calculation logic.
    It means that, if this key figure is used further in formula, still the original number (without "calculation" tab setting)  is used for further formula calculation.
    For "aggregation" tab, it changes the real calculation logic.
    The system takes the setting as the aggregation rule for records.
    The most common aggregation rule is of course summation. If you set to e.g. Average here, the system does the
    Average instead of summation when aggregating records. And the Average value will be taken for calculation
    in further formulas or other calculations.
    For "aggregation" tab, you could only use it for CKF (calculated key figure) or formula and you could not use it for
    a basic key figure. That should be the reason why you see it greyed-out.
    Regards,
    Patricia

  • Doubt on Rows and Coloums in BEx Query Designer.

    Hello, Experts.
    I have a Doubt in BEx Query Designer.
    In the Rows I have a Fiscal year Period,  if the user enters the Fiscal year period for e.g. : 001/2006  .  
    in the columns i have  forecast for the Fiscal year period which user entered ( 001/2006 ),   and we have another column pervious ( Prior )fiscal year period ( 001/2005 ). 
    My Questions is ,  as we are Restricting with 001/2006 will the query retrieve the values of 2005 or not?
    Thanks in Advance .
    Sharp

    yes i am  Doing Offest.
    I moved this Fiscal year Period to Free char,   and i Restricted with Pervious Fical Year period and Fical year period .  it worked.  but
    when i kept this in Rows and deleted Previous Fiscal Year period .  it is displaying blanks.   in prior years forecast.
    is it because i am Ristricting it to only fical year period  which user entered
             Colums-->  Forcast ( User Entered year )          Prior year
    Rows
    Fiscal year period
      Fiscal year period( user enterd )
    Thanks

  • Error while trying to retrieve data from BW BEx query

    The following error is coming while trying to retrieve data from BW BEx query (on ODS) when the Characters are more than 50.
    In BEx report there is a limitation but is it also a limitation in Webi report.
    Is there any other solution for this scenario where it is possible to retrieve more than 50 Characters?
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[3OD1RJNV2ZXI7XOC4CY9VXLZI], [Measures].[3P71KBWTVNGY9JTZP9FTP6RZ4], [Measures].[3OEAEUW2WTYJRE2TOD6IOFJF4] }  ON COLUMNS , NON EMPTY CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [ZHOST_ID2].[LEVEL01].MEMBERS, [ZHOST_ID3].[LEVEL01].MEMBERS ), [ZHOST_ID1].[LEVEL01].MEMBERS ), [ZREVENDDT__0CALDAY].[LEVEL01].MEMBERS ) ........................................................ failed to execute with the error Invalid MDX command with UNSUPPORTED: > 50 CHARACT.. (WIS 10901)

    Hi,
    That warning / error message will be coming from the MDX interface on the BW server.  It does not originate from BOBJ.
    This question would be better asked to support component BW-BEX-OT-MDX
    Similar discussion can be found using search: Limitation of Number of Objects used in Webi with SAP BW Universe as Source
    Regards,
    Henry

  • Report on BEx query with 2 structures (one in rows and one in columns)

    Hi, experts! I have to make Crystall report on BEx query with 2 structures, one in columns (with KF's), and one in rows. Is it possible to create such report? Because when I create such report, I cant see fields in structures, only characteristics fields.
    Ok, I found samr problem in another thread. Sorry.
    Edited by: Mikhail Sychev on Dec 5, 2009 9:53 PM

    Hey Flora,
    Happy to hear that its working now.
    Answering your question, again its upto the connection and report format you are using. Based on your question i hope you your report output should be like this.
    You cannot map to two labels for the series, again this report format is possible only in cross tab through Webi. I would suggest you to concatenate the material and month in a dimension in webi like below.
    I have done the concatenation in excel level, i would suggest you to do that in webi. Try to reduce the formula as much in excel.
    or
    If you are using Query browser connection, then i would suggest you to create a separate report which will display the actual vs plan material wise, here you need to pass the material as a prompt.
    Hope this helps in clear, please revert me for any clarification.

  • Adding New Fields to a BEx Query does not show up in the CR field explorer

    This could be a silly question.
    I have a CR report based on a BEx query.  I had to add a couple of new fields to the BEx query, and when i want to add those fields to the CR report, I don't see them even after I do a refresh in the field explorer. 
    How do i see this new fields in the CR report?
    Help Please
    Thanks

    Hi,
    you can open the report and go to the menu Database > Verify Database.
    that should add the new fields to the list of fields in CR
    Ingo

  • Crystal didn't show the BEx query Attributes description changes/Values

    We experiencing the BEx query attributes/crystal report  issue.
    I create a crystal report using BW- BEx query. Bex query displays the attributes values. But in crystal report side it didn;t show up the values as well as description changes.
    But If I change the display properties of attributes (different from one attribute to another) the crystal report reflect the values. But crystal report didn't show the Attribute description changes , the one i did it in BEx query side.
    Example:
                         Bex has a Masterdata as well as attribute Field1, Field2 etc.. I changed the description like Field_Test1 and Field_Test2. Also I changed the display property for Field_Test1 is Key and text and long , Field_Test2 is Text & LOng text.
    I  got the attribute values is crystal report Xi R2. But crystal didn't reflect the description changes?
    Suggestions Please?

    Post your question to the Business Object Integration Kits forum

  • Best practice for multiple instances of the same BEX query

    Hi there,
    I'm wondering what's the best way to use multiple instances of the same BEX query. Let me explain what I mean:
    I have a dashboard with different queries feeding different period of time such as: week to date, month to date and so on. One query for each since it is based on a user exit.
    For each query I want to show different data in different sections of my dashboard. Per example: sales per directors or sales per customer group, sales per day, sales per week and the like.I tried to connect a simple bar chart via a direct connection but with no success due to the multiple lines generated by the addition of the sales director, customer group, week number and so on.
    My question is about the way to connect the different queries efficiently in order to show the different data while avoiding multiple useless lines.
    The image above shows the query browser where, per example, for a Month to date query there will be mutiple line for each week as well as one line for each director. If, for two different components, I want to show data per week and data per director or other representation what is the best practice:
    Add another instance of the same query and only put the week information and another one will only the director info?
    Should I bind those to the excel file and use formulas to make final calculations?
    Will there be a performance issues for adding different instances of the same query
    I have 6 different queries (read 6 user exit that filters time via user exit).
    Depending on the best practices there might be 4 instances for each for a total of 24 instances in the query browser.
    I hope my question is clear enough, if not please do not hesitate I'll clarify as much as possible.
    Regards,
    Steve

    Hi Steve,
    Might be trying for solution for a long time, If i understood your question clear let me clarify you few points.
    You are trying to access the bex query which is designed with the exit's in the background based on the logic and trying to call the entire dimensions and key-figures in a single connection. Then you are trying to map those data in the charts.
    Steve, try to make more connections based upon the logic and split them. use the same query but split them by sales per customer group, sales per day, sales per week by making three different connections and try. You can merge the prompts from all connections.
    Hope this Helps!!!
    Sorry if i misunderstood your question.
    --SumanT

  • How to refresh report data from bex query (BW) with parameters

    Hello,
    i hope someone can help me with my problem. I developed an desktop application, which loads (actual state) a report from the local file system. After setting the parameters, the report should be saved as a pdf file. Loading the report into the ReportDocument object and exporting the report to a pdf works fine. Setting parameters (without) a data source too. But now i can't refresh the data in the reports given by a parameter (e.g. time).
    I know there are two methods to do this. Push and pull. I want to use the pull method, cause my program should exports different reports and i think it should be easier to handle this with this method.
    On my development environment is installed:
    Crystal Reports SP 4
    MS Visual Studio 2010 (coding with C# .NET)
    .NET Framework 4
    SAP Integration Kit
    Crystal Reports for Visual Studio 2010 SP1 - SDK libraries
    Crystal Reports for Visual Studio 2010 SP1 - Runtime 32 bit
    SAP GUI 7.20 (Compilation 3)
    The bex query is enabled for external use from ole db for olap. Do i have forget something else?
    Here is a part of my code:
            public ReportDocument doPullMethod(ReportDocument crReportDocument)
                TableLogOnInfo crTableLogOnInfo = crReportDocument.Database.Tables[0].LogOnInfo;
                ConnectionInfo crConnectionInfo = crTableLogOnInfo.ConnectionInfo;
                crConnectionInfo.Password = "*******";
                crReportDocument.SetDatabaseLogon(crConnectionInfo.UserID, crConnectionInfo.Password, crConnectionInfo.ServerName, crConnectionInfo.DatabaseName);
                MessageBox.Show(crConnectionInfo.UserID + " _ " + crConnectionInfo.Password + " _ " + crConnectionInfo.ServerName + " _ " + crConnectionInfo.DatabaseName);
                for (int i = 0; i < crReportDocument.Database.Tables.Count; i++)
                //    crReportDocument.Database.Tables<i>.ApplyLogOnInfo(crTableLogOnInfo);
                    MessageBox.Show("TestConnectivity: " + crReportDocument.Database.Tables<i>.TestConnectivity());
                return crReportDocument;
    Cause i'm using only one bex query, i know that the SetDatabaseLogon()-method should bring me the same result as the ApplyLogOnInfo()-method SAP Crystal Reports .NET API Guide
    Exists an order which i have to follow? First setting parameter and then set the login informations or backwards? Cause i also get the "Failed to load database information" exception, when i set a parameter and TestConnectivity() returns false.
    Do i have to activate the data refresh manually or will be the data refreshed automatically on export?
    I searched in this forum (.NET - SAP Crystal Reports) and found only this thread which according to my problem:
    [Re: Crystal report connects to BW RFC by .NET;
    The question is assumed answered.

    Hi Robin,
    There is a SAP Integration Kit you need to allow CR to connect to SAP data sources. There isn't one for CR for VS 2010 and I don't believe there are the various extra options available in the SDK, no SDK access to the DB driver.
    Possibly, Check the other post, download and run the app Ludek suggested, it will get the connection info for your report using RAS and then plug the output code into your code and see if that works. It should show the crdb_olap dll is the database driver, assuming that is the connection method you used when designing the report.
    Pay attention to the database dll in the output from that app and verify it is on your PC in: C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86
    If that doesn't work then.....
    The problem is, CR for VS 2010 ( version 13 ) is the runtime for BOE 4.0  ( version 14 ) which includes the Integration kit drivers on install. There is no standalone install of the database drivers. They are installed with CR 2011, which doesn't have a SDK included, CR for VS 2010 is also the Developer version for CR 2011.
    Because of the "custom" connection requirements there is no SDK or access to the BW datasource extra options....
    Also note that CR 2008 is not supported in VS 2010, it should work though as long as you stick to 2.0 -> 3.5 framework, no 4.0 Framework support in CR 2008 or BOE 4.0
    You may want to try the SAP Integration Kit forum to see if anyone has been able to make this work or contact your account manager to verify if there are any plans to do what you are doing....
    Don

  • Problem while opening Bex query on the web

    Hello BW experts,
    I have a problem while opening Bex query from my SAP Favorites.See below.
    When i double click on the query, i get the following page, with the server name KBWS01QX.
    But, from RSRT Tcode, select the query > query display as HTML > Click on ABAP Web , click execute as shown below, it is going to the correct URL as in the 2nd screen shot below.
    My question is why is it going to the wrong URL when i open it from  SAP Favorites menu?
    I want it to open the same URL as it opened from RSRT(which is the right one)
    What is the Config needed to make it to work from SAP favorites.
    Any help would be appreciated.
    Thanks alot.
    SV

    Hello,
    Thank you all for your responses.
    See below some additional info.
    From RSRT, this time I clicked on JAVA WEB, and i get the below URL, which is the same URL i was getting when i executed the query from SAP favorites.
    http://kbws01qx.xxxxxxx.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZCONSUMPTION
    Also, i have executed the Function module : RSBB_URL_PREFIX_GET and i get the below values.
    It seems that it is trying to connect to Java portal something services may be, but i want it to open in ABAP web only.
    Please help.

  • Olap Universe Based on BEx Query - Cascading Prompt

    I need to get two prompts: 1) Division 2) Group. Division has to be selected first and then Group. I understand I have to create cascading prompt. In the universe, in default hierarchy, group stands before before division. I have created a custon hierarchy like: Division, Group. I used Tools -> List of Values ->Create cascading list of values and then selected the right dimensions and then clicked on Generate LOVs. Then I have exported it to the repository. But I cannot see any reflection at the report level. So, some questions came in my mind:
    1) Where can I check in the universe whether my cascading prompt has been created or not ?
    2) I am using L01 Dimension. But underneath, there are two dimensions called LovDivision and LoVDivisionBase which are in Italic. I believe integration kit creates this. It is the same as Group. So, my question is: Am I selecting the right dimesnsions ? Or, should I select those in Italic.
    3) Actually, these two prompts (variables) [along with others] are already created in BEx which I can see in my report. My plan is, if my cascading prompts work, I will tell the BW developer to remove those two. Do you think that these existing prompts are creating any problem.
    I would really appreciate your response.

    Hi
    1) Where can I check in the universe whether my cascading prompt has been created or not ?
    Have you entered the cascading object in the  webi query condition.At the run time  it will generate  hierarchy in the tree structure.
    2) I am using L01 Dimension. But underneath, there are two dimensions called LovDivision and LoVDivisionBase which are in Italic. I believe integration kit creates this. It is the same as Group. So, my question is: Am I selecting the right dimensions ? Or, should I select those in Italic.
    correct you are using right objects L01.By mdx driver it will create by default L00 and L01 objects.neglect the Lo00 objects.You can  hide them in the universe or go to refresh structure and their is option to replace L00 definition with some other definition.
    3) Actually, these two prompts (variables) along with others are already created in BEx which I can see in my report. My plan is, if my cascading prompts work, I will tell the BW developer to remove those two. Do you think that these existing prompts are creating any problem.
    By default  when you are creating universe based on the mdx drivers it will convert Bex query filters in the universe condition as mandatory filter  and applied on the full universe.
    You can go to the universe condition and open the condition and unchecked the option  from their and after that these will not prompt in the webi query.
    Thanks,
    Amit

  • Calling a BW Bex Query in Web Dynpro ABAP

    Hi Team,
    I'm trying to call a BW Bex query in my web dynpro screen. The Web Dynpro is written in our ERP (ECC 6.0) system. I have specific parameters and values in my web dynpro context which I want to pass to a BW query and then display the actual query in my web dynpro. I found an element BIApplicationFrame but don't know if that is the correct way to display the query. Some questions:
    1) How do I pass the username/password for the BW system in the Web Dynpro written in ERP?
    2) How do I pass the parameters to the query
    3) How is the security and roles managed. The web dynpro is enables as an iView in the SAP Portal.
    Thanks much for your guidance.
    Regards
    Sanjay

    Petr:
    I managed to pass the selection variables to the query through BIApplicationFrame. This is how I did it.
    1) Added the BIApplicationFrame UI element to the View of the Webdynpro application and named it ZBIQUERY with the following properties relevant to my system.
    - dataProviderStateName property is set to my query name which is 'ZPUR_M02_Q08'
    - dataProviderStateType is set to 'Query'.
    - server is set to 'housapdbw.noble.cc:8000'
    - templateId is set to 'ZPUR_M02_W02'
    - variableScreen is Unchecked.
    2) Added two attributes to the view under the attributes tab. They are
    M_APPL_FRAME RefTo CL_WD_BIAPPLICATION_FRAME
    M_METHOD_HANDLER RefTo IF_WD_BI_APPLFRAME_METHOD_HNDL
    3) Then add the following code in the method WDDOMODIFYVIEW.
    data:
    lt_parameters type if_wd_bi_applframe_method_hndl=>tt_name_value,
    ls_parameters type if_wd_bi_applframe_method_hndl=>t_name_value.
    define add_parameter.
    clear ls_parameters.
    ls_parameters-name = &1.
    ls_parameters-value = &2.
    append ls_parameters to lt_parameters.
    end-of-definition.
    if first_time = abap_true.
    wd_this->m_appl_frame ?= view->get_element( 'ZBIQUERY' ).
    wd_this->m_method_handler ?= wd_this->m_appl_frame->_method_handler.
    endif.
    Please note that the selection screen on my query has Select-options and its name is
    XREF_NUM0001. I am passing a value of '11111' to it as shown below.
    refresh lt_parameters.
    add_parameter 'CMD' 'PROCESS_VARIABLES'. " This is for Execute button
    add_parameter 'SUBCMD' 'VAR_SUBMIT'. " This one also for Execute Button
    add_parameter 'VAR_NAME_1' 'XREF_NUM0001'. " Name of my select-option
    add_parameter 'VAR_OPERATOR_1' 'EQ'.
    add_parameter 'VAR_SIGN_1' 'I'.
    add_parameter 'VAR_VALUE_LOW_EXT_1' '11111'. " Value for my select-option
    wd_this->m_method_handler->execute_command( lt_parameters ).
    endif.
    The above code needs to be added before the view is called in th is method.
    Hope this helps.
    Krishna Muppavarapu

  • Can we restrict changes made in BEx query not to resemble in Universe

    Hello Gurus,
    I have a question. Lets say if there is a universe created based on BEx query and if later on BEx query is changed (newly added Chars, KF's or change in names) can we restrict the changes not to resemble in Universe?
    Please give me any related document or link which will be a big favor for me.
    Thanks a lot for your time.

    Changes in the BEx query are not reflected always automatically in your universe: Eg. if you add an new restriction or a new keyfigure. You have to maunally refresh the structure of your universe and export it again on your BOBJ server.
    Some changes will be automatically available though eg. if you change the code of a customer exit variable which is already used in your BEx query, even if you do not refresh the universe.
    Please keep in mind that some kind of changes in the query (removing existing key figures or characteristics) may cause error messages when you try to run your universe (assuming you did not update it).
    The recommendation here is to refresh your universe when you change the underlying BEx query. If you do not want to do that then your universe may stop working.
    Regards,
    Stratos

Maybe you are looking for

  • C# Proxy Classes from SAP WSDL files

    We are trying to generate proxy classes for SAP eSOA web services using C# and Visual Studio 2005. When we try to run Microsoft's proxy class generation utility, WSDL.exe, errors are generated that attribute incorrect syntax to the SAP WSDL file: > M

  • Can I use a new CPU in my early 2009 MAC PRO Single 2.8 Quadcore

    Is it possble to replace the CPU Module with the latest CPU moduels on off for the Mac Pro? The current one is below Header 1 Header 2 Mac Pro4.1 Quad Core Intel Xeon 2.66 i Processor Early 2009

  • Adobe Presenter 9, Training

    Does anybody know if there is any training (classroom, face to face style) for using Adobe Presenter 9 software.?

  • Popup window disappears

    Hi I have a text box field:   <form id="form1" name="form1" method="post" action="">     <span id="sprytextfield1">       <label for="calc2"></label>       <input type="text" name="calc2" id="calc2" onchange="checkCalc()"/>       <span class="textfie

  • Transfer Under SEM-BCS

    Hi Experts, I am using additional financial data for Investments and Equity Data. I want to perform transfer of Consolidation unit from One Group to another Group. However, when I execute Transfer activities along with Change Organizational function,