Multiple Variable selection filtering for BEx queries

I created a web template which accesses three BEx queries. I have the same variable in all three queries so when I run the report, it pulls the data from all three queries correctly. BUT, when I change the filtering criteria within the report, only one of the query results changes, but not the other two. My question is: Is there a way to link all three queries so I can change the filtering criteria only once and have it affect all three?

Reading one Query variable(values) reflects in other query
are come under personalization.
this link give some idea...
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/help/sdn_nw04/saphelp_nw04/helpdata/en/01/42c73c13b0ce5be10000000a114084/content.htm
Regards,
Vijay

Similar Messages

  • Need Different Selection screen for different Queries in a Workbook

    Hi,
    I have created a workbook with Multiple tabs in BI 7.0.  Each Tab has different Queries and each query has different Selection screens (Variable Selections).
    When i open the workbook and refresh it, the selection screen is appearing only for one query.  All the queries are refreshed by this single selection screen, though each query has different Variable selections.  What i need is a seperate selection screen i.e seperate Variable selection appearing for each queries, when i refresh each one of them.
    Is it possible to do this?  If anybody has tried this, help me in solving this issue.  Thanks for ur time.
    Regards,
    Murali

    Murali,
    If you un-check the 'Display Duplicate Variables Only Once' this WILL solve your problem.
    When you Refresh, you should be presented with a single variable selection dialog box, but it should contain an area for each Query (DataProvider) that is embedded in the Workbook.
    This is the case if the queries are all on the same tab, or on different tabs.
    However, if you have multiple tabs each with a query on it, each query must have it's own DataProvider. If all queries are based on the same DataProvider, it will not work as the Workbook only 'sees' one Query for which it needs variable input.
    If you REALLY want multiple variable selection dialog boxes, then maybe the best way to do this is to have the queries in separate Workbooks.
    If you don't want the User to have to open 5 queries manually, you could use a Macro in each Workbook that runs on opening, to open the next Workbook in the sequence.
    I hope this makes sense!
    Regards
    Steve

  • Create a VC Model for BEx queries with Cell Editor

    Hello All,
    I am trying to create a VC Model for BEx queries with Cell Editor.
    BW Development Team has created a BEX query with complex restrictions and calculations using Cell Editor feature of BI-BEX.
    The query output in BEx analyzer is correct where all values are being calculated at each Cell level and being displayed.
    But, while creating VC model, system is not displaying the Cells.Thus, no VC Model can be created.
    I have executed below steps:
    1. Created a VC Model for BEx Query - ZQRY_XYZ
    2. Create Iview -> Create a dataService -> Provide a Table from the Output
    In the Column field system is not showing any of the Cells (present in Cell Editor)
    Please help me to solve this issue.
    Thanks,
    Siva

    Hi
    If 'Cell Editor' is been used then that query must have the structure in it. You have to select that 'structure' object in your 'VC Table'.
    If you select that then you will get the required result in the output. This structure will be the structure where 'cell reference' is used in BI query, You have to select that structures name.
    Regards
    Sandeep

  • "Key and Text" values in variable selection list for a field

    Hi,
          we have created the variable for the one of the navigation attributes of the "0customer" field .
          for the customer field in BEX settings we are having "Text" as display.
          for the navigation field in BEX settings we are having "Key" as display.
          while running the reports in the variable selection list for some reports we having both KEY and text for selection and for others only text are displayed,
        we have checked the BEX settings in field and query level there are same.
    Please help us here.

    Check the setting again in the Query level and then maku sure you save it. Come out of the query and then re-open the query and execute, you can see the chages in the output.

  • How to get One Selection Screen for all queries?

    Hi Experts,
    I have three queries having selection screens. All the selection screen have the same variables, but the reports are different.
    I have created a workbook having these three queries. Each time when the workbook opens, the three selection screen pops up one after the another. Same values are entered in all the selection screens.
    Now the user wants only one selection screen for all the three reports. Is it possible? I tried but I do not see any way.
    I think there should be some way of getting it done.
    Waiting for your inputs,
    With kind regards,
    Shreeem

    Hi
    If a workbook contains multiple queries that use the same variable, you are prompted to enter the variable values again for each query. To avoid this, set the Display Duplicate Variables Only Once flag.
    Goto Workbook Settings>Under Variables Tab>select Display Duplicate Variables only Once
    http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/54/a493f7256b43698191a2623e5a0532/frameset.htm
    Hope this helps,
    Aparna Duvvuri

  • Single Selection Prompt for all queries

    Hi All,
    I have 5 queries in my workbook.
    Each query uses some variable which is not used in the other queries.
    So, i get 5 prompts when i run the query.
    This looks very awkward and also my system almost hangs while showing for each prompt.
    Is there any way of showing all the variables in a single prompt?
    Thanks,
    Arun KK

    Hi,
    I found this answer on a message board:
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/assigning-same-variable-values-for-queries-in-workbook-711943
    There are two answers to your question, depending on whether or not all of the dates are the same info object (i.e., have the same technical name).
    Case 1:  All info objects have the same technical name.
    Use the "refresh all" option:
    Run "SAPBEX.XLA!SAPBEXrefresh", True 'true = refresh all
    BW will use the input from the first set of refresh screen variables for all others.  IF each query have exactly the same refresh screen, you will not see another refresh variable screen.  If not, then BW will stop between queries to ask for more input, only if required. 
    So, the trick would be to define the first query that refreshes in such a way that its variable screen covers everything needed.
    Case 2:  Not all info objects have the same technical name.
    Use the "Save and reuse variable values" option.  You will find this in the query Properties dialog box on the second tab ("Interaction").  Put a check there for all queries except the first one. 
    Set up the workbook so that the first query refreshes by itself
    Run "SAPBEX.XLA!SAPBEXrefresh", False 'False = refresh one only
    Then, after the first query has refreshed, locate the date(s) the user selected and copy those to the ranges for all other date values.  If your installation is BW 3.x, the code below should do the trick.
    It is slightly ineffecient because it will refresh the first query twice.  But, the second refresh will be fast because the results will still be in cache. And, the code to keep it from refreshing the first query twice is not something you really want to mess with.
    Alternatively, instead of using the SAPBEXrefresh, True at the end, you could put in 13 different SAPBEXrefresh, False statements, identifying the other 13 query worksheets individually.
       Run "SAPBEX.xla!SAPBEXrefresh", False, _
           Sheets("firstQueryToRefresh").Range("a cell in the query")
       'locate dates user selected for "0CALMONTH"
       For i = numFilter + 3 To 4 Step -1
           If Range("GS" & i) = "0CALMONTH" Then
               myType = Range("GC" & i)
               myInterval = Range("GD" & i)
               intfirstMonth ("GE" & i)
               extfirstMonth = Range("GF" & i)
               intlastMonth = Range("GG" & i)
               extlastMonth = Range("GH" & i)
               Exit For
           End If
       Next i
       For i = 4 To numFilters + 3
           If Range("GS" & i) = "YCODOCMNT" Or _
               Range("GS" & i) = "YCOSHPMNT" Or _
               Range("GS" & i) = "0CALMONTH" Or _
               Range("GS" & i) = "YCOACCMT" Then
               Range("GC" & i) = myType
               Range("GD" & i) = myInterval
               Range("GE" & i) = intfirstMonth
               Range("GF" & i) = extfirstMonth
               Range("GG" & i) = intlastMonth
               Range("GH" & i) = extlastMonth
           End If
       Next i
       Sheets("SAPBEXqueries").Visible = xlSheetVeryHidden
       Sheets("firstQueryToRefresh").Select
       Application.ScreenUpdating = True
       Run "SAPBEX.xla!SAPBEXrefresh", False
    End Sub
    maybe this will help a bit.
    regards,
    Raymond Baggen
    Uphantis bv

  • Need to improve performance for bex queries

    Dear Experts,
    Here we have bex queries buit on BW infoset, further infoset is buit on 2 dsos and 4 infoobjects.
    we have built secondary indices to the two dso assuming will improve performance, but still query execution time is very long.
    Could you suggest me on this.
    Thanks in advance,
    Mannu

    HI,
    Thanks for the repsonse.
    But as I have mentioned the infoset is based on DSOs and Infoobjects. So we could not perform on aggregates.
    in RSRT
    I have tried look in read mode of the query i.e. in 'x', which is also valid as qurey needs to fetch huge data.
    Could you pls look into other possible areas, in order to improve this.
    Thanks in advance,
    Mannu

  • MSS Time Approval - multiple (different) selection options for manager?

    Hi all
    I am setting up MSS Time Approval delegation in ERP2005 without workflow, leave request, nor portal development environment set up.
    In this case, the customer needs to have multiple selection options for who to approve:
    1. The manager's direct reports (standard functionality)
    2. All subordinates, all levels down
    3. Delegate's (manager or non-manager) view of a particular (other) manager's direct reports
    3b. This might extend to a set of different delegation selections
    4. Add or remove certain individuals
    Now, getting 3. and 4. to work was simple using the BAdI (I think the enhancement spot is named APPR_CUST), method ...-edit_selection, but I am having difficulties with 2. and 3b. Now I am thinking along these lines, and I would greatly appreciate your input:
    A. It seems that the MSS "Approve working time" app only loads the data selection at the entry into this screen (INIT command from portal), using the start perspective determined for example by the IMG for defining the approval profile <-> view. My debugging suggests that the view change from the drop down menu (CHANGE_PERSPECTIVE command) only picks a different way to present the same data set.
    Could anybody please confirm or contradict this conclusion?
    B. Is it possible to present the entire "Approve working time" section in MSS in multiple different copies so that they would all generate an INIT command? Or is it possible to copy and modify the entire MSS tab, resulting in an ESS tab, one MSS, one "D"SS, one "A"SS (well, not suggesting that the top manager is one, but you get the drift...) and so on?
    If either of this were possible, it would be simple to make two modifications, one at the beginning of the FM called by the portal and one at the FM that returns the start perspective.
    So far I have been trying to catch and alter the CHANGE_PERSPECTIVE command into an INIT in the back end, but the Time Approval functionality is a bit too complex for me to feel entirely comfortable with this approach.
    Your input is much appreciated!
    Kind regards
    Niclas Arndt

    We too are using MSS for time approval of time entered via ESS.  We are on ECC 6.0 for the backend (no enhancement packs, at least not yet), currently sp stack 10 with hrsp 24, and EP 7.0 with stack 10 for the ESS/MSS business packages.  We are using the standard MSS UWL functionality for the approval, so it is workflow-based in my understanding.
    In other parts of MSS, the managers can see a few levels deep in the organization structure, based upon the definition we gave for their structural profiles.  For instance, in the team calendar/overview, or other team information, they have a choice for multiple levels or only direct reports.  However, in the time approval application, only direct reports are shown, so if a manager goes on vacation, at present the only way to cover time approvals for that manager's employees appears to be to temporarily assign a new 'chief' to that org unit, so HR involvement becomes necessary.  The manager doesn't have any method for delegating the approval or other MSS authorities.  We were hoping that by allowing multiple levels in the structural profile, such approvals would "roll up" to the next level, i.e. the manager's supervisor, so the next level manager could act as a backup to his/her managers on vacation.  That doesn't work, however.
    We have heard that a delegation feature for MSS will be available in an upcoming release, but I haven't found any information regarding whether that requires an upgrade, an enhancement pack, a later service pack level, or what or when that functionality will be available.  Does anyone know anything about that?
    Regards,
    Matt

  • VBA To judge "Cancel" at variable selection screen in BEx analyzer

    Hi BI experts,
    I need some advices about how to judge whether "Cancel" button is pressed or not.
    We need correction of Excel Macro for migrating reports from 3.x to 7.x.
    <Summary of Macro>
    1.Call variable selection screen once you pressed VBAbutton.
    2.Then, depends on pressed "OK" or "Cancel", the following process wil be diverged.
    &#12288;
    &#65308;1st process's change&#65310;
    Old&#65306;&#12300;Return_Code = Run("SAPBEX.XLA!SAPBEXrefresh", False, inWorksheet.Range("B30"))&#12288;&#12301;
    New&#65306;&#12300;Return_Code = Run("BExAnalyzer.xla!MenuChangeVariable")&#12301;
    <2nd process's change>
    Under 3.x verstion, I used the situation that workbook would not be updated if you pressed "Cancel" button and write the logic.
    But under 7.x verstion, even if you pressed the "Cancel" button, the workbook would be updated.
    So, now I can not use the logic before and need to correct it.
    Please give me some advice how to judge whether "Cancel" button is pressed or not at variable selection screen.
    Also my correction of calling logic of variable selection screen?
    Thanks a lot in advance!
    Keiko
    Message was edited by:
            Keiko Matsui

    I would like to add questions.
    What I want to know is....
    How to make variable selection button (VBA) in 7.x, which has chance to choose "OK" and "Cancel".
    I see a lot of posts about VBA, but most of them are about under 3.x verstion.
    keiko

  • Not getting BI query variable selection screen  for few test users

    Hi,
    i am having problem when i am executing the reports. i am not getting variable screen for the test users ID's. but i am getting the screen when when 0BI_ALL authorization selected.
    i want role based authorization, and not complete authorization.
    the parameters in su01 are scl(X) and wlc(X   X  XX   X)
    Thanks,

    Can you please check into Infoobject Maintenance screen in Bex Tab i.e. Query Execution Filter Value Selection. assign "Values from Masterdata Table".
    Try again and let me know.
    Nagesh Ganisetti.

  • How can I switch to Longtext in a variable selection box for entered value

    I execute a Web Template and enter a value for example a company variable. After this I press the "Check"-Button and get the short text of the company but I want to see the long text.
    The InfoObject settings under Business Explorer is:
    Display:                                          Text
    Text Type:                                       Default
    BEx Description:                              Long description
    Selection:                                        No Selection Restriction
    Query Def. Filter Value Selection:      Values in Master Data Table
    Query Execution Filter Val. Selectn:  Values in Master Data Table
    Filter Value Rep. At Query Exec.:      Selector Box Without Values
    The InfoObject is a reference characteristic and the query was created on BEx 3.5.

    I changed the text type to long text, but the result is the same.
    The only way to get the desired result is to delete the short text and the middle text in the InfoObjects Text Table Properties. But this is not right way.

  • Missing selection screen for Bex Application iView

    Hi,
    I have configured a Bex Application iView, for which I am able to see the selection screen in preview but when I attach this to workset and try to open it in portal, the report is displayed directly with out selection screen.
    Here are the steps I did
    1. Created Bex Application iView with provied query string.
    2. Assigned this iView to Page.
    3. Attached this page to workset and then to role.
    4. Login to the portal for respective user to see the report.
    5. When I click on the link for the report, the selection screen is bypassed and the report is displayed directly.
    Note: I was able to see the selection screen in preview for both Page and iView.
    Could anyone through light on this problem.
    Regards,
    Ravi.

    Frank,
    Any chance that somehow that user has set personalisation on all the variable values?
    Regards
    Gill

  • Problem in Selection Screen for Bex

    Hi All,
    I am encountering a surprising scenario. One query that we had developed is working from my id. But from one user in the selection screen two characteristics are not being shown, Yet in the spreadsheet it shows that it has put restrictions on those two characteristics. I am not sure why its happening like that.
    Could someone please guide me on this.
    Thanks in advance.
    Regards.

    Hi Saugata,
    This may be due to the fact that this user has set the personalized values for these chars... ask the user to run the query and then in the BEx toolbar ask him to click on Change button > Change variable values. This will bring up all the variables and then the user can delete the personalization that has been set.
    Hope this helps...

  • Compare multiple variable selections between two internal tables

    I am trying to work out the syntax for the following, however i am stumped on the 2nd part of the requirement....
    I have two internal tables.  and i need to compare the records.
    1st, line by line, which i can do, however the 2nd requirement, i need to check a range of data against the same table...
    here is an example of the tables:
    Internal Table1 has the following records.
    TL1
    TL2
    TL3
    TL4
    TL5
    TL6
    Internal table 2 has the following records...
    LDOC1     TL1
    LDOC1     TL2
    LDOC1     TL3
    LDOC1     TL7
    LDOC2     TL1
    LDOC2     TL5
    LDOC3     TL6
    LDOC3     TL7
    but for the 2nd requirement, i have to group the LDOC1 (2, 3)  and search for all TL* and report if they all exist, some exist or none exist within the 1st internal table.
    so for requirement 1, the answer would be yes (as i can do a read table using the TL*), however i am not sure how i can check "for all entries" for TL1, Tl2, TL3, TL7 and return that only some entries exist....  LDOC1 should return "some", LDOC2 should return "all" and LDOC3 should return "none".
    Hopefully that makes sense???
    Can someone give me a keyword to investigate as i am not sure the At new would work....  Unless i do an at new and then loop and maybe add the record to a "range" to then compare and log the result as it runs through each result...
    so if Itab1 = itab2 then variable = yes. else None.
    if variable = yes, and itab1 = itab2 then variable = yes.
    if variable = yes and itab1 <> itab2 then variable = some.
    would that work??  i am worried about performance too as there could be 1000's of records....
    and can i have an "at end" so at end, if variable = yes, then variable = all?
    i have written all the rest of the report to get all the data into these tables...  i am just a little baffled as to how i can validate and compare the multiple selection....  :o(

    Hi,
    It is really confusing :-).. But i have tried to figure out.. may be this could be useful for you.
    Internal Table1 has the following records.
    TL1
    TL2
    TL3
    TL4
    TL5
    Internal table 2 has the following records...
    LDOC1 TL1
    LDOC1 TL2
    LDOC1 TL3
    LDOC1 TL7
    LDOC2 TL1
    LDOC2 TL5
    LDOC3 TL6
    LDOC3 TL7
    itab3[] = itab2[]
    sort itab3 by field1.
    delete adjacent duplicates from itab3 comparing field1.
    itab3
    LDCO1 
    LDCO2
    LDCO3
    loop at itab3.
    clear: lv_flag, index, ind.
    loop at itab2 where field1 = itab3-field1.
    index = index + 1.
    read table itab1 with key field1 = itab2-field2.
    if sy-subrc NE 0.
    lv_flag = 'X'.
    ind = ind + 1.
    endif.
    endloop.
    if lv_flag = 'X'.
    if ind = index.
      lv_val = 'NONE'.
    elseif ind NE index.
      lv_val = 'SOME'.
    endif.
    else.
      lv_val = 'ALL'.
    endif.
    "here you can modify itab3 with lv_val in one field, so that you can figure out which is SOME, NONE, ALL
    endloop.
    Regards,
    senthil

  • Redefining formulas for BEX queries.

    Hello all,
    Going a little bit further, I realise now that it would be better to have some complex calculations stored in some formulas to be reusable in many queries.
    So, I think I can create and define new formulas by using BAdis. I have read something like this in SAP HELP. I'm doing this by creating a new implementation that redefines the interface method IF_EX_RSAR_CONNECTOR~GET.
    I have never done this before, so I would appreciate any help on this. Now I could create this redefinition of that interface method but, how can I "insert" the new formula in BEX to make it available. I think I should create the formula definition before but I don't know where, the only thing I know is that the formula should begin with "C_".
    Am I in the right path?

    Hello Roberto and everybody,
    this is what SAP Help says about this:
    BAdI: Customer-defined Functions in Formula Builder
    Use
    This Business Add-In (BAdI) is used in the formula builder transformation library. You use this BAdI to integrate user-defined functions into the transformation library of the formula builder. In this way, you can make special functions that are not contained in the transformation library available for regular use.
    Requirements
    <u>The technical name of a user-defined function
    Must be specified
    Must be unique
    Must begin with 'C_'
    Can contain only alphanumeric characters ( ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_) (lower-case letters, empty spaces and special characters are not allowed)
    Can be a maximum of 61 characters long.</u>
    Standard settings
    The BAdI can be used repeatedly. Is it not filter-dependent.
    Activities
    After you have called up the IMG activity, a dialog box appears in which you enter a name for implementation.
    If implementations have already been created for this BAdI, a dialog box appears in which the existing implementations are displayed. In this dialog box, choose Create and proceed as follows:
    1. In the Implementation field, enter a name for the implementation of the BAdIs and choose Create.
    2. The initial screen for creating BAdI implementations appears.
    3. In the initial screen, in the Short Text for Implementation field, enter a short text for the implementation.
    4. Choose  the Interface tab index.
    5. On the tab page, the field Name of Implemented Class is filled automatically, since the system assigns a class name based on the name of your implementation.
    6. Save your entries and assign the implementation to a development class.
    7. Position the cursor on the method and double-click on it to reach the method editing screen.
    8. Between the statements method <Interface Name>~<Name of Method>. and endmethod. the coding for your implementation.
    9. Save and activate your coding and return to the Change Implementation screen.
    10. Save your entries on the Change Implementation screen.
    Note: You can create an implementation for a BAdI and activate it later. If this is the case, close the editing screen now.
    11. Choose Activate.
    When you execute the application program, the coding you defined in the method is run through.
    See also:
    Method
    GET
    And what I can't find where to do is <u>underlined</u>.
    Don't know where to create the functions, because the BAdI is clear and also the method I have to redefine in my own Z_Implementation.

Maybe you are looking for

  • How to run Adobe Reader on Linux Ubuntu? [was:Which progam ?]

    I have installed linux ubuntu and have downloaded adobe reader . But I am not sure which program to use to open it , can anyone help ?

  • Oracle OLEDB drive 8i and 9i truncates LONG fields

    Anyone, I have a situation where my Oracle oledb driver truncates LONG fields. My application that runs queries using the oracle oledb driver. The query is a join between two tables and includes a LONG as one of the fields retrieved. When the Cursor

  • Best way to check whether the database is demo or sys?

    Hi Gurus, Whats the best way to check whether the installed peoplesoft database is a demo or a sys? Thanks for the help? Regards, Anoop

  • After Install. Templates in App Builder not correct.

    After upgrading from 1.5 to 1.6 Images were not showing after logging into INTERNAL/ADMIN. I fixed that by copying the images directorio into CCD_HOME/marvel/images and setting the /i/ in marvel.conf. Now images are OK but the page is still not using

  • Problem with visual jsf in NetBeans

    I am using NetBeans 6.0 and when I make a new Web application using the Visual JavaServer Faces framework the Design tab is blank and says "Loading, please wait..." but it never loads...but I can open the jsp and java tab of Page1 with no problem...