Problems about  query filter (BEx).

Hello there,
I have some problems about  query filter (BEx).
I have master data and I want to use attribute in this master data to dynamic filter in query(BEx).
But this attribute is key figure. I can't done it now. TT
Is this possible? If yes, could anyone advise how this is to be done?
Thanks in advance.

Hi
In BEx there is option as 'Exceptions' & 'Conditions'. If you go in condition, you can specify range for key figure output. This is either predefined or by user selection. You create the condition as per your requirement & it will show you filtered data.
How to create conditions you will find easily on this site.
You can create as many conditions as no of filters you want. You can create these at query level also at report output level.

Similar Messages

  • A performance problem about query bseg, help,help

    thanks
    we have a new report use such a sql which runs a long time: 
    SELECT bukrs gjahr bzdat anln1 bschl dmbtr
        INTO CORRESPONDING FIELDS OF TABLE bsegtab
        FROM bseg
       WHERE               gjahr = gjahr
         AND bschl IN ('70' , '75')
         AND anln1 IN anln1
         AND meins = ''
         AND anln1 LIKE 'G%'
         AND hkont LIKE '1502%'
         AND bzdat >= dat
         AND bzdat <= dat1.
    in se11,I can see bseg primary key is "mandt,bukrs,belnr,gjahr,buzei",and it is a cluster table.
    Could I create an index on this culster table.
    Could you give me some advices?
    the environment is ecc6.0 and oracle 10g.
    Edited by: victor on Sep 17, 2010 2:25 AM
    Edited by: victor on Sep 17, 2010 2:25 AM

    Hello,
    Below link will be helpful.
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=180356001
    Regards,
    Yoganand.V

  • PROBLEM about query

    vBROK_CODE := SUBSTR(pBROK_CODE,2,LENGTH(pBROK_CODE)) ||'*' ;
              WHILE vLEN <= LENGTH(vBROK_CODE)
              LOOP
                   vP1 := INSTR(SUBSTR(vBROK_CODE,vLEN,LENGTH(vBROK_CODE)),'*');
                   vMYQUERY := 'INSERT INTO '||vTBL_TMPBROKCODE ||' (BROKE_CODE,DAYS)
                   SELECT SUBSTR(SUBSTR('''||vBROK_CODE||''','||vLEN||','||vP1||' - 1 ),1,INSTR(SUBSTR('''||vBROK_CODE||''','||vLEN||','||vP1||' - 1),'','') - 1 ),
                             TO_NUMBER(SUBSTR(SUBSTR('''||vBROK_CODE||''','||vLEN||','||vP1||'- 1),-( LENGTH(SUBSTR('''||vBROK_CODE||''','||vLEN||','||vP1||' -1 )) - INSTR(SUBSTR('''||vBROK_CODE||''','||vLEN||','||vP1||'-1),'','')) )) FROM DUAL ' ;
                             EXECUTE IMMEDIATE vMYQUERY;
                                  PRINT_STRING(vMYQUERY);
                   vLEN:=vLEN+vP1;
                   vCOUNTER:=vCOUNTER+1;
              END LOOP;
    when i run this code it give me error
    right parenthisis missing
    help me
    pankaj

    Hi,
    i copied and pasted you code and it works well.
    CREATE OR REPLACE PROCEDURE CC IS
    vBROK_CODE VARCHAR2(4000);
    vP1 NUMBER;
    vMYQUERY VARCHAR2(4000);
    vLEN NUMBER := 0;
    pBROK_CODE VARCHAR2(1000) := '12345678';
    vTBL_TMPBROKCODE VARCHAR2(300) := 'MIA_TAB';
    vCOUNTER NUMBER;
    BEGIN
    vBROK_CODE := SUBSTR(pBROK_CODE,2,LENGTH(pBROK_CODE)) ||'*' ;
    WHILE vLEN <= LENGTH(vBROK_CODE)
    LOOP
    vP1 := INSTR(SUBSTR(vBROK_CODE,vLEN,LENGTH(vBROK_CODE)),'*');
    vMYQUERY := 'INSERT INTO '||vTBL_TMPBROKCODE ||' (BROKE_CODE,DAYS)
    SELECT SUBSTR(SUBSTR('''||vBROK_CODE||''','||vLEN||','||vP1||' - 1 ),1,INSTR(SUBSTR('''||vBROK_CODE||''','||vLEN||','||vP1||' - 1),'','') - 1 ),
    TO_NUMBER(SUBSTR(SUBSTR('''||vBROK_CODE||''','||vLEN||','||vP1||'- 1),-( LENGTH(SUBSTR('''||vBROK_CODE||''','||vLEN||','||vP1||' -1 )) - INSTR(SUBSTR('''||vBROK_CODE||''','||vLEN||','||vP1||'-1),'','')) )) FROM DUAL ' ;
    EXECUTE IMMEDIATE vMYQUERY;
    DBMS_OUTPUT.PUT_LINE(vMYQUERY);
    --PRINT_STRING(vMYQUERY);
    vLEN:=vLEN+vP1;
    vCOUNTER:=vCOUNTER+1;
    END LOOP;
    END CC;
    try to check ALL code, from DELARE to END.
    Bye

  • Bex Query Filter Page in BSP - Urgent Please...

    I have seen many threads about Bex query in BSP, but can any one tell me how can i display the default Bex Query Filter page in BSP.
    I created a query in Bex Query Designer and added few filters and when i execute i get a popup where i can enter the input values for which the report would be generated, can i get the same functionality or similar functionality if i have the same Bex query in BSP.
    Also apart from the filters specified in the Bex, all the columns displayed in the report appears in the filter section how can get the same functionality BSP.
    Note: I do not want to use Bex Web Application Designer
    Please tell me the steps for the same.
    Atleast please give me the steps at a high level. Please...

    Hi,
    1.  Create a CKF, inside the CKF window create a new Formula Variable --> Right click in left side window on var and say create new Variable
    2.  Create new variable of replacement path type and reference Characteristic as the TO DATE value which you want to be max.
    3.  Now drag this new created var to CKF and save.
    4. Now create condition with follwoing deatils:
    Key Figure              Operator     Value
    Max Date(CKF)       TOP N          1
    Save and execute your query. This will give you max value for the To Date field.
    Hope it works .
    Regards
    Raj Rai

  • Variant for Control Query on Bex Broadcaster Filter

    I am trying to create a Bex Broadcaster setting on a query via query designer (query -->Publish --> Bex Broadcaster). In the Filter Navigation Tab, I want include a filter using a control query with variants. My control query has a variable that is set to (single value, mandatory,manual input) and i created a variant for the control query on the web. I am able to create the Bex Broadcaster setting and enter my control query but when I go enter the variant it always gives me "No selections available".
    Another issue that i am having is - when I try to create a filter on a characterisitc in the Bex Broadcaster and give mulitple values in the filter, it ends up generating seperate excel files (distribution type is e-mail) for each value in the filter. Is there any way i can consolidate all these results and get it to generate on single file?

    1st : no wanswer by now.
    2nd : don't filter in the Broadcastsetting, filter in the Broadcastquery to avoid a broadcast for every filter value.
    Edited by: Heinrich Krupp on Apr 16, 2009 11:44 AM
    Edited by: Heinrich Krupp on Apr 16, 2009 11:44 AM

  • Help! problem about jstl sql with "LIKE?" in query

    Hi All,
    I have a problem about getting data by using "LIKE" in my sql statment.
    here is my case:
    <sql:query var="tmp">
    SELECT ...... FROM ...
    WHERE a LIKE ?
    <sql:param value="%${param.a}%"/>
    </sql:query>
    Once I used "LIKE" keyword, the query failed to use this critica.
    and couldn't find any match cases
    thx or help
    Micheal

    besides, i found that:
    this works:
    "AND a.block LIKE '%' + 'a' + '%'"
    but these don't work:
    "AND a.block LIKE '%' + 'a' + '' + '%'"
    or
    "AND a.block LIKE '' + '%' + 'cp' + '%'"
    or
    "AND a.block LIKE '%' + 'cp' + '%' + ''"
    it seems '' is the casue of error... so strange, anyone has idea?
    micheal

  • Problem in opening a query in BEX analyzer..

    i am using front end sap gui 7.20 with patch 9..
    my issue is that when i tried to open a query in bex analayzer. i get following error stating that
    you donot have suffiecent authorizations for the infoprovider XXXXXX
    function module /SDF/AL_MAP_TRANSID_LOGH does not exist
    and i tried to open a query from bex query designer ..i am not able execute it
    and i get strange error while executing tcode rrmx..the status error states that microsoft excel is not installed, install microsoft excel viewer
    after installing microsoft excel viewer also..i get the same error...
    pls suggest asap guys

    Hi Satish,
    You can ask yur tech support team to install sap gui and in specify them to tick "SAP BW add ons".
    also Enable the macros for the analyser.
    Regards
    Rahul

  • Uni on Bex-Query: filter on Structure - Without Keyfigures as column: error

    Hi All,
    I have a 'Without Key Figure structure' as a column called Version in which (amoung others) the values 'Actual' and 'Last Year' .
    Thus
    Version
    - Actual
    - Last Year
    Now i want to create a filter in my universe which pre-selects Actual.
    When I use the tool for that this is my standard definition of the filter:
    <FILTER KEY="@Select(Version\Version)">
      <CONDITION OPERATORCONDITION="Equal">
        <CONSTANT VALUE="Actual"/>
      </CONDITION>
    </FILTER>
    However it results in error: 'A database error occured. The database error text is: (CS) "Error on BindCol". (WIS 10901)'
    Meaning(i guess) that somehow i'm not getting the correct selection-command to the database,
    When i use the version-dimension itself in the reports as part of the query filter it works fine and LOV displays both versions for selection.
    We are using XI3.1 fp3.1; BW 701-sp5 on oracle 11
    I've look through the forum, but couldnt find an answer.
    If there is point me into that direction and i'll close this one
    Any other information on how filters etc should be specified in an Universe on a BW query is also greatly appreciated.
    I already have found some info but any information is welcome.
    Your help is greatly appreciated.

    I found my answer.
    Create a caption dimension for your keyfigures and filter on thath
    Dimension:
    [xxkeycharacteristicxx].[caption]
    Filter:
    <FILTER KEY="@Select(Key Figures\Key Figures Caption For predefined filters)"><CONDITION OPERATORCONDITION="Equal"><CONSTANT CAPTION="VERSIONS like Actual"></CONSTANT></CONDITION></FILTER>

  • Problem of hierarchy in bex analyzer

    Dear all,
    I met a problem when I using Bex analyzer to run a query, there is a characteristic 0CS_PLEVEL (posting level) with a hierarchy. If the characteristic is displayed in the row or column, i can filter with the hierarchy node, everything seems to be fine. But if the 0CS_PLEVEL is set to be a free characteristic in the query, when I filter with hierarchy text node (not leaves), then there will be wrong message about 'No applicable data found', but if I add drill down according to Posting Level in rows, it indeed has data value.
    And I tried filtering value with same hierarchy node with other query which is built based on Multiprovider, everything is fine.
    I wonder if there is any speciall setting for filtering by hierarchy node in the query based on virtualprovider 0BCS_VC11?
    Your reply will be appreciated.

    Hi,
    In the Exception definition,Make sure you have selected following :
    In Display tab    ->    Select Exception affects data cells
    in cell restrictions tab  -> Exception affects everything
    After that,once you execute the query,Exceptions should be shown on all levels.

  • Authorization Problem with Hierarchical Filter

    Hi Gurus!
    In our BW system I created a query that includes hierarchy-enabled characteristic
    (0costcenter). 0costcenter has a hierarchy node variable to restrict
    user's  data by using authorization.
    Then I created an authorization object from t-code RSECADMIN, in this auth.
    object,  restricted 0costcenter from hierarchy authorization tab , and
    selected 6 nodes (the nodes have no sub-nodes).
    In our web template ( WAD 7.0 ) I used hierarchical filter to see the 6 nodes in our report. It works fine when I first open the template in our Enterprise Portal that we see in the variable screen,0costcenter's variable captures the nodes that I restricted in our authorization object.
    In the portal the hierarchical filter displays only selected nodes but this filter shows the hierarchy's root (name of the hierarchy) and when we choose the root the analysis displays all the values, the authorization do not work here.
    From RSECADMIN, In the hierarchy authorization tab, I tried all the type of hierarchies but all of them gave the same result.
    When i execute the report in BEx Analyzer, the authorization works fine, I think the problem is about hierarchical filter but i cannot find any solution...
    Can you give me an idea plz..
    Thank you!

    Hi,
    I think this is caused by program error.
    Take a look:
    [1075125|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1075125] - Unauthorized data displayed when structure element expanded
    [917565|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=917565] - Query displays unauthorized data
    [981828|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=981828] - No authorization for assigned inactive hierarchy
    [654947|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=654947] - Hierarchy authorizations with compound characteristics
    Only available in German:
    [1158432|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1158432] - Zu viele Werte berechtigt bei Hierachie mit Intervallen
    Hope this helps.
    Regards
    Andreas

  • Saving a query in Bex Portfolio

    Hi all,
    I am new to this portal thing, But i need some advice from you.
    I am running a query from BW(writing a query in query designer and execute on web)which publishes it on portal. When i see the query, i see i save as button at the top and so i went there and i saw that i can save the query to bex portfolio ( which actually is my primary aim to get the query in left navigation panel of the page of BI or Bex). When i try to save under the Bex Portfolio its aske me for description so I put in some logical name and hit ok. But then it gives me two errors
    "the technical name must be between 0-30 chars and 1-9 numbers" which I have it in the same format
    "no valid element selected".
    I am not getting what does it mean by valid element not selected.?
    Can some one help me how can i save the query in BEX portfolio.
    If any one has a related document which helps with issues about this whole query execution on portal I will highly appreciate it.
    My email [email protected]
    Thanks a lot in advance,

    Hello Kris,
    I have the same problem as you and I didn't find any OSS note for that.
    It seems that it depends in the user. If your user id contains a decimal point at the second position, you have the problem. If not it seems to be ok.
    As we have many users with a decimal point at the second position, I have to find a solution. Thanks to give me your solution if you have one.
    Vanessa Roulier
    [email protected]

  • Rich Client Query Filter Pane question

    I've browsed through various forums without finding an answer to my problem. I'm frustrated and hope someone else has been there/done that and can offer a suggestion to ease my pain.
    We're using BOXI 3.0, and my question is specifically about deciphering/maintaining the contents of the query filter pane in InfoView and/or Web Intelligence Rich Client.
    We have some complicated reports with numerous optional prompts. We realize this is not optimal, but need to maintain this reports until we can replace them.
    The filter panes are very complicated, since there are so many prompts, ANDs, and ORs and nested statements.
    Is there a way to see which universe component a query filter field is connected to? In the query results pane (on top), I can click on a field and it's source is highlighted in the universe tree view on the left. That doesn't happen when you click a field in the query filter pane.
    Is there some way I've not found yet, or is this an enhancement request for BOE? Thanks in advance.

    I guess this an enhancement request for BOE because I've never seen an option like that.  And I really wish that option existed.
    The only way I could think of to solve this problem is renaming all the objects of your universe.  This way you may know what class any object is related to when using the query filter panel.
    For example: You have 3 classes in the universe: Users, Quotes, Invoices.  Rename them with a prefix, let's say:
    U-Users
    Q-Quotes
    I-Invoices
    Then all the objects belonging to Users must be renamed with the U- prefix:
    U-User name
    U-User id
    And the same applies for the other classes objects:
    Q-Quotes:
        Q-quote id
        Q-User id
         Q-Amount
    I-Invoices:
       I-Invoice id
       I-Quote id
       I-Amount
    So if in one query filter panel you have a filter using the object Quote id, you'll see if this Quote id comes from Quotes or Invoices, because of the prefix Q- or I-.
    I don't know if it is a good practice but I hope it helps.
    Regards,
    Erika Atencio Harris
    Edited by: PadawanGirl on Jan 19, 2011 10:10 PM

  • Query filter vs report filter

    Hi,
    when running queries in webi, on a universe that is based on a BW BEx query, we often see a problem when trying to at dimensions in to the query filter pane. This often lead to columns switching place and/or report just showing the technical ID, not text. If we do the same filtering in the report filter pane after the query has run, there is no issue.
    When running a query on a universe based on a BEx query, my understanding is that a filter on a dimension (blue object), will be applied after the BEx query has delivered it's result to BO, and then BO/Webi should only keep the records fitting the filter. Why would this obscure the report result? Anybody else had issues with this?
    The users are used to adding filters to the query, and not adding filters in the report afterwards, and they are expecting this to work...
    Regards,
    Øystein

    Hi,
    To apply filters at two levels:
    The query definition u2013 this is the data defined on the Query tab, retrieved from the data source, and returned to the  report.
    The data displayed in the report u2013 this is a subset of the query definition data that you want to display in a specific version of the report
    Filters you apply to the query definition are called query filters. You use query filters to reduce the amount of data retrieved from the data source. Query filters decrease the time it takes to run the report and ensure that only the data relevant to the report users is saved.
    Filters you apply to the data displayed in the report are called report filters. Once the report is generated, you or other users can apply report filters to restrict the values displayed in the report table or chart. The values hidden by the report filters are still saved with in  the microcube. You can modify the report filters to display different values in the report or remove the report filters to display all the values retrieved from the data source.
    Tip
    Filtering the query minimizes the size of reports, reduces the time it takes to refresh report data, and ensures that the data the documents contain is relevant to users consulting the reports. Individual users can then filter the displayed report values by applying the report filters relevant to their specific business focus.
    All the Best,
    Madhu...

  • Query filter doesnt work after switching on hierarchy

    I have 0CALMONTH as a mandatory selection criteria on a Bex query. After the result output if the user switches on a virtual time hierarchy / physical hierarchy created on CALMONTH,(year-quater-month) then the query filter entered on 0CALMONTH is ignored and data for all years is displayed. Is there any way to avoid this? Since we want to use this hierarchy in multiple reports, can this problem be avoided by any hierarchy settings?

    Hi Godbole Yogesh,
    We can ignore the hiearchey from second level i.e. Calmonth level . In hiearchey settings, level of dispay we have is one. by this setting we will be able to see only first of of hiearchey i.e. calday node.
    Pls let me know if you want any further info..
    Cheers,
    Maruthi

  • Error when using "inlist operator" in the query filter of Webi 3.1

    Hi,
    We are currently in the process of migrating Deski to webi (BOXI 3.1).
    The problem is, Deski is using the "inlist" operator which is working fine but after migrating to webi the inlist operator in the query filter is throwing the below error,
    *Error Message :*
    A database error occured. The database error text is: ORA-00907: missing right parenthesis. (WIS 10901)
    Appreciate your assistance on this.
    Thanks !
    Regards,
    Perialt

    Karthik ,
    Yes I am seeing an additional paranthesis in Webi SQL query.
    For example plz consider the product table below,
    SELECT
    Product.ID,
    Product.Name
    FROM Product
    WHERE
    Product.Name IN ( @Prompt('4) Name:','C','Product\Name-M',multi,free)  )
    As a work around in Custom SQL, If I remove the paranthesis the below query is running fine in webi
    SELECT
    Product.ID,
    Product.Name
    FROM Product
    WHERE
      Product.Name IN  @Prompt('4) Name:','C','Product\Name-M',multi,free) 
    But I want a permanent solution.

Maybe you are looking for

  • How to install itunes on Windows 7?

    When I intall iTunes on Windows 7, I receive message that I need to uninstall iTunes now and first install Apple Application Support.  I cannot find Apple Application Support.  It might be an Internet Rich Support extension, but I cannot find it.  So

  • What does it mean if two orange lights on my Satellite L755 are blinking?

    I have a Toshiba Satellite L755-154 (PSK2YE). Recently, whenever I launch a high-resource game (Train Simulator 2015), after about half an hour the power and battery indicators blink orange. A while after this, the laptop cuts out. What is going on?

  • Mixed formats-editing-transcoding and mastering

    Hello, My client has a project with that has mixed format and we need to figure out what workflow will be best to edit and master. The final video will be 1-2 hours. It will be shown primarily on the web and, at a later stage, in dvd. There are 2 mai

  • Ichat & msn messenger problems

    Is there anyway that I can set my status to invisible on iChat? Also- was not sure where to put this next question. On msn messenger for mac- when I try and change the emoticons, either add or remove some from my list, it states that I am only allowe

  • ITunes 8 - purple screen in tunes window after upgrading

    After installing itunes 8 over version 7 (on XP), I now have a purple/lavender colored screen in the software window. It is now nearly impossible to read the text. The screen goes back to normal whenever I switch from a maximum screen to a restore do