Query selection filter by using wildcards

Dear all,
we have SAP BI 7 and we would like to increase usability of the end-user. We would like to use wildcard ('*') in the variable selection field of a reporting query to make the search/filter easier. Therefore, the search should support at least wildcards or even better the functionalities of R/3 (give results which are similar than to the searched word).
An example:
A report shows sales volume per customer and country. The user has to select in the variable selection the customer before the report is showing. As there are thousands of customer listed, the user should be able to use wildcards to list only relevant/wanted (e.g. 'ak*' and should get all customers containing any string like AK, ak, or other variants --> Independent if lower or upper case has been entered in the filter search).
Question:
1) How can you enable this wildcard filter function?
2) Is there any documentation/example available what can be entered and how the result is showing
Thanks for your support!!!
Edited by: Markus Reith on Jan 7, 2008 3:34 PM

Hello,
When u create a variable on infoobject for selection, select selection option from drop down box of details tab. Now when u execute the report it will give you a box before the input box, select * in that and the wildcard function should work. Just try it out.
Regds,
Shashank

Similar Messages

  • Wildcards in Query selection filter

    Friends,
    We are using BW 3.0B and wanted to have Query selection to accept wildcard characters to material characteristic.  upon searching I could not find the selection option "Pattern" either when I create a variable or at Query user selection 'Selection Options'.  All I see is only following 5 options
    1) Single value
    2) Greater than or equal to
    3) Less than or equal to
    4) Greater than and
    5) Less than
    If anyone has any comments please post it..
    by the way this Inobject has NO "Conversion Routine" at InfoObject level..
    Regards
    Mavi

    Hi Mavi,
    I hope you did not use the word PATTERN in there..
    By pattern i mean the string u r trying to search..
    eg: We used TF* in the variable screen to select all values starting with TF..
    In case of doc numbers we used 3000* to get all document numbers in the 3000 series..
    Hope this makes it clear..Let me know..coz this works for sure..
    Ashish..

  • Use wildcards in webi report filters?  It seems they're only avail in Query

    Can I use wildcards in webi report filters?  It seems they're only avail in Queries...

    HI,
    Eventhough you have created variable BeX query designer.
    User reponse will work ,
    steps to  achive,
    1.open the universe build on (Bex query with customer variable)
    2.you can find the filter symbol in universe for customer variable that you have created in bexx query
    3. then copy the exact text eg:"select the customer" in universe for that filter
    4.then in webi user reponse of that text. eg :userreponse("select the customer")
    regards,

  • How to use wildcards in the query

    Hi all,
    I have the following code:
    pStmt = conn.prepareStatement("SELECT * FROM library.books where title like ?",java.sql.ResultSet.TYPE_FORWARD_ONLY,java.sql.ResultSet.CONCUR_UPDATABLE);
    pStmt.setString(1, name);
    rs = pStmt.executeQuery();When I try to apply the following query including wildcard "%", I get an error:
    SELECT *
    FROM `books`
    WHERE `title` LIKE '%?%';Doesn't Java accept "%" in the queries?

    I didn't write whole code not to disturb the focus, but here it is:
       private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {                                     
            ResultSet rs=null;
            String[] pathS= new String[1000];
            PreparedStatement pStmt = null;
            int j=0;
            try{
                Connection conn = HandleCon.getConnInstance();
                pStmt = conn.prepareStatement("DELETE FROM library.tempbook "
                           ,java.sql.ResultSet.TYPE_FORWARD_ONLY,java.sql.ResultSet.CONCUR_UPDATABLE);
                pStmt.execute();
                if((jTextField12.getText().equals(""))) {
                    JOptionPane.showMessageDialog(null, "YOU SHOULD FILL","Display Message",JOptionPane.ERROR_MESSAGE);
                } else{
                    String name;
                    name=jTextField12.getText();
                    pStmt = conn.prepareStatement("SELECT * FROM library.books where title like
                               %?%",java.sql.ResultSet.TYPE_FORWARD_ONLY,java.sql.ResultSet.CONCUR_UPDATABLE);
                    pStmt.setString(1, name);
                    rs = pStmt.executeQuery();
                    while (rs.next()) {
                        String a;
                        a=rs.getString(1);
                        String b;
                        b=rs.getString(2);
                        String c;
                        c=rs.getString(3);
                        String d;
                        d=rs.getString(4);
                        String e;
                        e=rs.getString(5);
                        String f;
                        f=rs.getString(6);
                        pathS[j]=f;
                        j++;
                        pStmt = conn.prepareStatement("INSERT INTO library.tempbook
                                     (title,author,publisher,content,tag,paths) " + "VALUES
                                     (?,?,?,?,?,?)",java.sql.ResultSet.TYPE_FORWARD_ONLY,java.sql.ResultSet.CONCUR_UPDATABLE);
                        pStmt.setString(1, a);
                        pStmt.setString(2, b);
                        pStmt.setString(3, c);
                        pStmt.setString(4, d);
                        pStmt.setString(5, e);
                        pStmt.setString(6, f);
                        pStmt.execute();
                        jList2.setListData(pathS);
            catch (Exception e) {
                System.err.println(e);
        }I get the following error:
    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
    You have an error in your SQL syntax; check the manual that corresponds
    to your MySQL server version for the right syntax to use near '%'pap'%' at line 1The mentioned query runs when I use phpMyAdmin.

  • How to use wildcards in ABAP query where condition?

    Hi,
    Please tell me how to use wildcards in ABAP qurey where condition.
    e.g. select * from mara where matnr = * (wildcard we need to use.
    Thanks & Regards,
    Gaurav T

    Do you want to query asterix * ?
    select * from mara where matnr = '*'.  "then just put it in apstrophes
    or you want certain part of string be used as * ?
    select * from mara where matnr like '%*'  "then use % sign before it
    or maybe you want something like this
    select * from mara where matnr like '%1' . "then it will look for all materials having '1' inside it
    Regards
    Marcin

  • Query Execution Filter Val. Selection take no effect on query based on AG

    Hi,
    by setting the 'Query Execution Filter Val. Selection' property in query, we can control the value list when we execute the query. with setting 'Only posted value values for navigation', only the data posted to cube can be listed when you do the selection in the Query Execution selection screen and with setting 'values in master data table', all the date will be listed when you do the selection in the Query Execution selection screen.
    1. but for queries based on cube or multi-cube, when i select 'values in master data table' in query defination, still only the posted value is displayed when i do the selection in the Query Execution selection screen. is there anyone know why?
    2. for queries based on aggregation level, whatever setting i choose, all the values is displayed when i do the selection in the Query Execution selection screen. how i can do select the posted value for this kind of query?
    Many Thanks
    Jonathan

    I apologize I meant the other link:
    I will put the useful text from that link here.
    Regarding the query built on aggregation level please note the following
    the aggregation level is always a Virtual Provider built other
    InfoProvider and hence it does not have the dimension table and hence
    the F4 mode D is not supported.
    Therefore when aggregation level is used in a query, F4 does not supportD-mode: 'Only Values in InfoProvider' and all master data values are
    displayed in the value list.
    Reference from the note
    984229 F4 modes for input help as of SAP NetWeaver 2004s BI
    4. Since other InfoProviders do not have a dimension table, the system
    displays only posted values if you select "Only Posted Values for
    Navigation". Otherwise, it displays the values from the master data
    table.
    Hope this should clarify your doubts. Please let me know if you have
    questions else please confirm the message at your earliest convenie
    Edited by: Abhijit N on Apr 2, 2009 6:06 PM

  • Select filter value..not opening..query hanging

    Hi,
    I have a queary and it is executing fine. After executing it is displaying data fine. I have company code and two more characterstics in free characterstics section. After executing the report i am doing right click at company code in the excel sheet and selecting the option 'select filter value'. It is then opening the small screen 'selection for company code' but it is not displaying the values. It's keep on running and after some time it is hanging (not responding).
    In the company code object hardly there are 60 values. Can anyone tell me why this is taking long time and result in hanging for just 60 values?
    This company code object is Authorisation relevant checked in the 'Business Explorer' tab. There is a variable used for this comopany code in the query design and this variable is processed by authorisation. But i dont think this is the reason for the issue. If this is the reason could you please tell me how it effects? Please suggest me the solution.
    Many Thanks in advance
    K
    Edited by: kirankumar chandaluri on Jun 17, 2008 5:38 PM

    Hi MA,
    Thanks for your immedieate reply.
    In the business explorer tab for which one you are asking to change the settings?
    Is it for   'query def. filter value selection'
                              OR
                 'query execution filter value selection'?
    The current status is:
    Query Def. filter value selection is 'values in Master data table'                 &
    Query Execution filter value selection is 'only posted values for navigation'.
    This is not cube but this is ODS. For ODS where do we set DB specfic settings?
    Thanks in advance
    Kiran

  • Query runs forever when using selection on line item dim

    we have a cube zcube which has po number as a line item dimension .
    everymonth users run queries this cube using po number as selection
    criterai and using a wild card search on this field . every time
    queries have run fine . however , this month when we try to do so
    the query runs forever and no results are returned . i also tried
    listcubing with similar selection but it also did not return any results .
    our production system has lot of data . i tried in test system it worked fine
    i checked the cube for compression and indices in production , they look fine
    can anyone think of anything that could have gone wrong ? also did rsrv tests ..
    but all come green
    we have not done any developments on this cube , however we have shifted to
    a new hardware in the past month . can anyone think of any reasons ?
    anything that can help me catch the issue ? all suggestions welcome

    Not sure,
    Are you saying that you need both the counts seperately? or a combined count?
    how are you joining alpha and beta tables? what is the join condition?
    you need to do something like this,
    SELECT COUNT(CASE WHEN
                        (A.col1 = 'Pete' AND SUBSTR(A.col2,,1,12)=SUBSTR(B.col2,,1,13))
                     OR ( A.col1 != 'Pete' AND SUBSTR(A.col2,,1,15)=SUBSTR(B.col2,,1,15))
                    THEN 1 ELSE 0
                 END)
    FROM alpha A, beta b
    WHERE alpha.join_cloumn= beta.join_columnG.

  • SELECT * cannot be used in an INSERT INTO query when the source or destination table contains a multivalued field

    Hi,
    I am using Access 2013 and I have the following VBA code, 
    strSQL = "INSERT INTO Master SELECT * from Master WHERE ID = 1"
     DoCmd.RunSQL (strSQL)
    when the SQL statement is run, I got this error.
    SELECT * cannot be used in an INSERT INTO query when the source or destination table contains a multivalued field
    Any suggestion on how to get around this?
    Please advice and your help would be greatly appreciated!

    Rather than modelling the many-to-many relationship type by means of a multi-valued field, do so by the conventional means of modelling the relationship type by a table which resolves it into two one-to-many relationship types.  You give no indication
    of what is being modelled here, so let's assume a generic model where there is a many-to-many relationship type between Masters and Slaves, for which you'd have the following tables:
    Masters
    ....MasterID  (PK)
    ....Master
    Slaves
    ....SlaveID  (PK)
    ....Slave
    and to model the relationship type:
    SlaveMastership
    ....SlaveID  (FK)
    ....MasterID  (FK)
    The primary key of the last is a composite one of the two foreign keys SlaveID and MasterID.
    You appear to be trying to insert duplicates of a subset of rows from the same table.  With the above structure, to do this you would firstly have to insert rows into the referenced table Masters for all columns bar the key, which, presuming this to be
    an autonumber column, would be assigned new values automatically.  To map these new rows to the same rows in Slaves as the original subset you would then need to insert rows into SlaveMastership with the same SlaveID values as those in Slaves referenced
    by those rows in Slavemastership which referenced the keys of the original subset of rows from Masters, and the MasterID values of the rows inserted in the first insert operation.  This would require joins to be made between the original and the new subsets
    of rows in two instances of Masters on other columns which constitute a candidate key of Masters, so that the rows from SlaveMastership can be identified.
    You'll find examples of these sort of insert operations in DecomposerDemo.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    In this little demo file non-normalized data from Excel is decomposed into a set of normalized tables.  Unlike your situation this does not involve duplication of rows into the same table, but the methodology for the insertion of rows into a table which
    models a many-to-many relationship type is broadly the same.
    The fact that you have this requirement to duplicate a subset of rows into the same table, however, does make me wonder about the validity of the underlying logical model.  I think it would help us if you could describe in detail just what in real world
    terms is being modelled by this table, and the purpose of the insert operation which you are attempting.
    Ken Sheridan, Stafford, England

  • How can I use today's date as default value in query string filter web part in SharePoint

    I have a query string filter on my web part page. I am trying to figure out how I can set it's default value to Today? I can't find anything online...

    Hi,
    Per my understanding, you might want to set a default value to the Query String Filter Web Part.
    It would not be able to set default value to the Query String Filter Web Part with the OOTB features available.
    By default, with a Query String Filter Web Part in the current page, we can filter other web part in the same page by adding parameters and values in the address bar
    of browser.
    If setting the “Query String Parameter Name” of a Query String Filter Web Part as “t”, then we can filter the corresponding connected web part by inputting such an
    URL into the address bar:
    http://sharepoint/SitePages/Page1.aspx?t=value1
    Suppose you want to filter the list view with a value dynamically when user opens this page, as a workaround, we can generate an URL with the parameters needed when
    page loaded, then redirect user to this URL afterwards. This can be achieved using JavaScript.
    About how to redirect user to other page with an URL:
    http://www.tizag.com/javascriptT/javascriptredirect.php
    How to get today’s date using JavaScript:
    http://www.w3schools.com/js/js_dates.asp
    Best regards      
    Patrick Liang
    TechNet Community Support

  • Sharepoint 2013 :Content Search Web part Property Filter By Query String - How to use ?

    Hi,
    I would like to filter data that is displayed in content search web part  by using  URL.
    I tried to use Value of a parameter from a URL - Query String.Parameter1
    But have no idea how to use it.
    Can someone help me pleas ?

    duplicate thread
    http://social.msdn.microsoft.com/Forums/en-US/f9fef155-1aa3-43b5-b285-5eae5d036b8d/content-search-webpart-property-filter-by-query-string-how-to-use-?forum=sharepointgeneral
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How to use OData Date filter query to filter data from OData NetWeaver Gateway Service?

    Hello,
    I am trying to use the OData Filter query. to filter data records from the OData Service, using Date range for filters.
    Please check the below URL for the SAP's sample OData Service, with filter option.
    Service Query URL :
    https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZGWSAMPLE_SRV/SalesOrderCollection?$filter=CreatedAt eq DateTime
    It gives out following error :->
    <message xml:lang="en">'$filter ' is not a valid system query option</message>
    Please let me know, if there is any mistake in the Query or is there anything that needs to be done on the
    Backend  Service.
    Thanks & Regards,
    Suraj Kumar

    Hi Jitendra,
    Once again, thank you for your help.
    I am able to filter the records using a date range.
    I am sharing the information, just in case anyone out there might need it.
    The OData Filter Query for Date Range (i.e. with Two date values) will return the results only if the OData Back-end Service is modified to accommodate such filter requests.
    This has to be done in ABAP.
    Please refer the following links which talks more about the Back-end ABAP Service being modified to ensure that the service returns records of data, as per the date range filter query
    http://scn.sap.com/thread/3170195
    http://scn.sap.com/blogs/lindsay.stanger/2012/12/29/gateway-odata-calls-convert-ivfilterstring-to-itfilterselectoptions
    http://scn.sap.com/thread/3173146
    Hope these links are helpful for those looking for OData Date Range filter query.
    Do let me know.
    Regards,
    Suraj Kumar.

  • Using a UDF in query select

    I am using CF8 and MS Sql Server. I am getting an error on "select Str, CapFirst(Str) ..." when trying the following:
    <cffunction name="CapFirst" returntype="string" output="false">... </cffunction>
    <cfquery name="query" dbtype="query">
    select Str, CapFirst(Str) as CapStr from SampleTable
    </cfquery>
    Thanks for your help

    You can't run a UDF like that in any <cfquery> SQL string, be it a QoQ or any other DB's driver.
    If one wants to use a UDF in the SQL string, then one needs to call it like one would anywhere else: #myFunctionHere()#.  However this won't help you because all the CF calls are resolved before the resultant string is sent to the DB driver.
    And the string that goes to the driver needs to be valid SQL.
    So you cannot do what you're wanting to do via this approach.
    I presume the original data is coming from a DB?  Why don't you run an equivalent function on the DB before passing it back to CF, so the results are already how you want them to be?
    Adam

  • How to use wildcards in REST filter for subscription items

    I am following this documentation:
    String column filters
    Support % (starts with) operator.
    Support * (Contains) operator.
    Does not support (ends with) operator.
    Examples:
    Name=service*
    Name=*g*
    Name=*g -- not allowed
    REST URL:
    http://<ServerURL>/RequestCenter/nsapi/serviceitems/serviceitemsubscription/<columnName>=<wildcardValue>
    I can get filters to work without wildcards, but have had no success using '*' or '%' characters.  Please provide a properly encoded sample URL for
    ServiceItemTypeName starting with 'Virtual'.  I have not been able to get any data returned when using wildcards in a filter.
    Here is what I have tried:
    ServiceItemTypeName=Virtual Server Snapshot
    http://10.8.0.46:8080/RequestCenter/nsapi/serviceitems/serviceitemsubscription/ServiceItemTypeName=Virtual%20Server%20Snapshot
    response: 200
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><AllServiceItems totalCount="1" recordSize="1" startRow="1">
    literal works as expected
    ServiceItemTypeName=Virtual%
    http://10.8.0.46:8080/RequestCenter/nsapi/serviceitems/serviceitemsubscription/ServiceItemTypeName=Virtual%25
    Application-Type=application/xml
    response: 200
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><AllServiceItems totalCount="0" recordSize="0" startRow="1"/>
    expected result not returned
    ServiceItemTypeName=Virtual*
    http://10.8.0.46:8080/RequestCenter/nsapi/serviceitems/serviceitemsubscription/ServiceItemTypeName=Virtual*
    Application-Type=application/xml
    500
    <nsapi-error-response>Internal Error: Invalid parameter values specified or unexpected error.</nsapi-error-response>
    fails with error response

    Hi Dan,
    I don't think you can use wild cards here.
    Please see the Integration Guide for 9.4. Section: "REST API -> Quick Reference".
    Here you'll find a table of what features are supported for the different resources exposed by the API. In there you will find a row for "All Service Items", and you'll see that: Get All, Sorting, Paging and All Filters are supported; Wildcards Name Search are not...
    When I came accross this same situation, I assumed that I am trying to do a Wildcard Name Search here... and it's not supported. It does, however, work for the other (SI Designer created) columns, which is what I believe the documentation is trying to describe. (Though, personally, I feel this is a bug).

  • Query Definition Filter Value Selection

    Hi BW Experts,
    This is regarding a navigation attribute restriction while defining a query.
    When we are defining a query on multiprovider / basic infocube and trying to put a restriction from the context menu on a navigation attribute,the screen is hanging and the fixed values for restriction are appearing after 5 to 6 minutes.
    While it should not take so much time, it should ideally display it in few seconds.
    This is happening for all the navigation attributes.
    Please share if anybody has faced this problem before or any suggestions regarding any settings at Infoobject, Basic cube or Multiprovider level.
    Any relevant input would be highly appreciated and appropriate points would be awarded.
    Best Regards
    Praval Trivedi

    Hello Praval,
    it is BW3.5 or BI7.0?
    Webreports or Excel?
    If Webreports check the command "Read Mode" in WAD -> NAVIGATIONBLOCK
    -> Master Data Table = fast
    -> Dimension Table = medium
    -> Posted Values = slow
    Check the InfoObjects
    -> Business Explorer
    -> Query Def. Filter Value Selection
    -> Query Execution Filter Val. Selectn
    regards Sven

Maybe you are looking for

  • Automatic sizing of Crop window

    I recently installed iPhoto v9 and now seem to have an issue when I go to Crop a photo. After clicking on 'crop' , the window size (and location on the photo) repositions itself on the picture (ie it moves from the left corner to right side, or from

  • Servlet connecting to MS SQL

    Hi guys....... i am having problems connecting to MS SQL server. I think this may be due to the configuration of the USERID and PASSWORD during the ODBC setting, but after much meddling, it still didnt work. Below is e code i used. import java.io.*;

  • Screensaver won't start snow leopard 10.6.7

    This is a minor, but irritating issue. For the first time I have ever had this, the screensaver will not start based on elapsed time. I can only trigger if if I use the 'Test' button or a hot corner. I wonder if something has happened in a recent upd

  • LR 3 images become distorted- elongated.

    Is there any advice on what causes this to happen to some images?

  • Convert double to Date

    hi everyone, i need to convert a double to a Date. for example 39080.0 is 29/12/2006. could anyone help me??? thanks