Wild Card Selection in BEX

Hi Gurus,
I am trying to use the wild cards in Query in  the selection screen . I have created a variable of type " Selection Option ".
Now when I execute the report it is giving a box before the input box, and when I select * from that box and executing the query, I am not getting the required results.
From ex: when i give : G19  in input box  with * in the box before the input box  , it is displaying as "No Applicable Data Found. " , even though data is present for G197.
Can some one explain me how to use wild cards in query.
Thanks in advance,
Ananya

Check this:
Wild cards in Select-options and Parameters
how to enable wild search(*) on a query variable
Note: That feature is not available in BI 7.0.
It works only with BW 3.x queries.
Re: Using wild card * in the selection screen
/message/2983877#2983877 [original link is broken]
Re: Wild Card Selection in BEX
Hope it helps..
Edited by: ashok saha on Mar 18, 2008 8:54 PM

Similar Messages

  • Wild card usage in bex?

    Hello All,
    Is it possible to use a wild card (<b>*</b>) in the restriction of a characteristic in Bex?
    Suppose I have the a characteristic DepartmentName, if I want to report the data of all the departments starting with letter 'F' <b>(F*)</b> .
    So this should include departments like <b>F</b>ire, <b>F</b>leet, <b>F</b>inance.....
    Please let me know if this is possible? else let me know if there any other way to achieve this...
    Points are assured...
    Thanks in advance....

    hi,
    check out this thread.
    BW BEx using a wildcard  ("*")???
    hope it helps,
    regards,
    Parth.

  • WILD Cards usage in BEX

    Hi Experts,
            Can any one suggest me whether WILD CARDS (eg : ' %' or ' ? ' ) will be used in Bex Explorer.
            I have a requirement where my ' Material Short Text ' will be   '<b> SULFATE,ZINC99.0011</b> '  Now user need a Keyin Field where in he can just Click on the Report and once the User entry window popup's, he be typing only 'SULFATE ' in the Short Text characteristic field and it should bring in all the records which has text description that starts with ' SULFATE XXXXXXX, xxxxxxx '(for eg: SULFATE,ZINC00.11  , SULFATE,1112.00,,,,,,,,,,,,. )
         Can any one suggest me how to succeed in this scenario.
    Thanks,
    Sam

    hi,
    check out this thread.
    BW BEx using a wildcard  ("*")???
    hope it helps,
    regards,
    Parth.

  • How to add * wild card to a specific field on the selection-screen.

    Hello,
    How to add a * WIld card to a field in selection screen.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_STCTS FOR G_STCTS OBLIGATORY,      "NUMBER SCHEME
                     S_AT20A FOR G_ATTR20A,    "SUBSTANCE ID
    SELECTION-SCREEN END OF BLOCK B1.
    I need to add Wild card functionality to Number scheme field S_STCTS on selection-screen.
    Any suggestions would be apprecaited..
    Regards,
    Kittu

    Hi Kittu,
    Here is one sample code:-
    select-option : s_name like kna1-name1.
    start-of-selection.
    if s_name-low = '*'.
    select * from kna1 into table it_kna1.
    elseif s_name-low = 'pat*' or s_name-low = 'pat'.
    select * from kna1 into table it_kna1 where name1 like 'Pat%'.
    endif.
    In case of wild card Select should be :-
    select * from <dbtab> where <field> like 'P%'.
    You can also use RANGES in your Code.
    E.g. RANGES: R_OBJNR FOR JEST-OBJNR
    R_OBJNR-SIGN = 'I'.
    R_OBJNR-OPTION = 'CP'.
    R_OBJNR-LOW = 'K1*'.
    R_OBJNR-HIGH = 'K2*'.
    Hope this helps.
    Thanks & Regards
    Jitendra Gujarathi

  • Case Sensitive problem in Select Option for wild card search

    Hi,
         Can anyone please let me know how to make the wild card search in any select-option non case-sensitive. What I mean by this is for eg. we want to find out all the POs with short text containing the word  'process', what we do we populate a range with OPTION = 'CP' and LOW = 'process' and select EKPO with short text in this range. This select is however case-sensitive and POs with short text containing 'Process' is not retrieved. But my requirement is that this should be non case-sensitive and both the POs should be in the result set.

    Hi,
    Hope this helps you
    CS:
    You can select characters in operand2 for a direct comparison by adding the escape symbol "#" before the required characters. For these characters, upper/lower case is taken into account, wildcard characters and the escape symbol itself do not receive special treatment, and trailing blanks in operands of type c are not cut off.
    Covers Pattern: True, if the content of operand1 fits the pattern in operand2. Wildcard characters can be used for forming the operand pattern, where "" represents any character string, and "+" represents any character. Upper/lower case is not taken into account. If the comparison is true, sy-fdpos contains the offset of operand2 in operand1, whereby leading wildcard characters "" in operand2 are ignored if operand2 also contains other characters. If the comparison is false, sy-fdpos contains the length of operand1.
    Regards
    Krishna

  • How to prevent the use of wild cards in select-option

    Hello experts,
    Is it possible to prevent the use of wild cards in a select-option? If yes, how is it done please?
    I have a
    SELECT-OPTIONS: o_comp  FOR dbtab-field OBLIGATORY DEFAULT 'FI'.
    and, I want to prevent the users for giving in some thing like FI* with the wildcard bc it would lead to dump.
    I want an error message to display and prevent the users for making such entry.
    Please I need your help and I would be very grateful.
    Thanks
    Nadin

    You have to use SELECT_OPTIONS_RESTRICT to restrict input allowed. Call this FM in INITIALIZATION or SELECTION-SCREEN OUPUT sections.
    Sample :
    TYPE-POOLS: sscr.
    INITIALIZATION.
    * Restrict SELECT-OPTIONS
      PERFORM restrict_select.
    FORM restrict_select.
      DATA: restrict TYPE sscr_restrict,
            opt_list TYPE sscr_opt_list,
            *** TYPE sscr_***.
    * Défine select-options modes (aka option list)
    * - ALL standard - all options allowed
      CLEAR opt_list.
      MOVE 'ALL' TO opt_list-name.
      MOVE 'X' TO: opt_list-options-bt,
                   opt_list-options-cp,
                   opt_list-options-eq,
                   opt_list-options-ge,
                   opt_list-options-gt,
                   opt_list-options-le,
                   opt_list-options-lt,
                   opt_list-options-nb,
                   opt_list-options-ne,
                   opt_list-options-np.
      APPEND opt_list TO restrict-opt_list_tab.
    * - EQU only equality allowed (list of values)
      CLEAR opt_list.
      MOVE 'EQU' TO opt_list-name.
      MOVE 'X' TO opt_list-options-eq.
      APPEND opt_list TO restrict-opt_list_tab.
    * Affect modes to parameters or block of parameters
    * ALL by default
      CLEAR ***.
      MOVE: 'A'          TO ***-kind,
            '*'          TO ***-sg_main,
            'ALL'        TO ***-op_main.
      APPEND *** TO restrict-***_tab.
    * EQU to internal material number
      CLEAR ***.
      MOVE: 'S'          TO ***-kind,
            'S-MATNR'    TO ***-name,
            'I'          TO ***-sg_main, " no exclusion
            'EQU'        TO ***-op_main. " only value list
      APPEND *** TO restrict-***_tab.
    * Call  FM
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
           EXPORTING
                restriction = restrict
           EXCEPTIONS
                OTHERS      = 1.
    ENDFORM.                    " restrict_select
    In the sample, only select-options for matnr is restricted to single value list.
    For your request build a mode with all options except "pattern" ones : CP and NP.
    Regards

  • Using a column twice in a dashboard prompt -- multi-select and wild-carding

    My client is using OBIEE 10.1.3.2; they cannot upgrade at this time. However, they want to be able to enter both a list of values and a wild-card search for additional values at the same time for a single column in a dashboard prompt.
    Since they cannot upgrade, they do not have the wild-card search feature of the enhanced multi-select prompt feature of 10.1.3.3 and later releases.
    Has anyone found another method to do this, perhaps by using a column twice in a dashboard prompt or in separate dashboard prompts on the same dashboard apge, in order to OR the results of a multi-select and an edit box (with wild-card pattern-match entry)? I suspect that will not work -- that the results sets of one prompt for a column will override any other prompt result sets for the same column.
    Has anyone found another way to do this, prior to release 10.1.3.3?

    Yes, it is possible.
    This is how to do it:
    In your report you need to add two filters on the same column and combine them with OR.
    First filter: is prompted.
    Second filter: is like presentation_variable
    Then protect this filter!* This will make that your prompt will be filtered on the pres. variable and that it won't be overwritten by another prompt.
    Now create your dashboard prompt:
    First add your column with an edit box and attach the presentation variable to it.
    Then edit the formula of the column, so it will not reference to the column anymore. (Which isn't needed, since the value will be set to the pres. variable.)
    Then add the same column with a multi-select.
    Then test it and check your results.
    Regards,
    Stijn

  • Wild card pattern selection '+' compatibilty with BWA

    Hello BWA experts,
    We have a situation in our production system where, when we enter a wild card string character in the variable selection like for example 1++6* the report does not return any result. The same when run with 16 output is obtained.
    The reason behind using '+' string as a wild card character is because we want to restrict the wild card entries only for fixed length.
    For example if in the cube we have data for a character like 12568, 12469, 12369, 1269, 1368. The report should fetch only data for 12568, 12469 & 12369 and not for 1269 & 1368.
    We use BW Accelarator for this report. I made a check while running the report without BWA and this kind of pattern selection (1++6*) works fine.
    Is it that the pattern selection with string '+' is not possible with BWA or is there any setting that needs to be maintained so that BWA returns data when pattern selection like the above is used?
    Thanks in advance for your valuable inputs.
    Regards,
    Sandeep

    Hello Sandeed,
    please check SAP Note <a href="http://service.sap.com/sap/support/notes/1340060">1340060</a>.
    Regards,
    Marc
    SAP Techology RIG

  • What is considered as a wild card for a query

    I am calling a query from Visual Composer. But I need to run the query when the variable is not selected. I have made the Variable optional.
    But whenever the "input field" is left blank, it seems like Visual composer is passing a NULL value or something. I need to pass a wild card instead of NULL.
    Does anybody have any idea what would be a wild card. I have tried ' ' but it did not work.
    Thanks,

    Arun,
    I am on BI 7.0. I tried your recommendations, but when I enter '#' it does not get any data in Bex.
    For VC, %20 also does not work. Any other ideas??
    Thanks,
    Naseer

  • File adapter wild card not working

    Hi Gurus,
    My file adapter seems to have issues with me
    This adapter do not obey me when I specify wild cards. I have tried * , ? and also "Adavnced selection of source file" but no use. Although, he is a perfect gentleman when I specify complete file names.
    Could you please suggest how to tame him?
    Regards,
    AV.

    Hi,
    this is what SAP Help says about it:
    file.sourceFileName=<filename>
    Specify the name of the file that you want to process.
    The name can contain a placeholder (*) at any point, so as to be able to select a list of files for processing.
    The following are valid examples for filename:
    myFile.txt
    my*.txt
    *.txt
    File.
    File.*
    myle.
    Names that comprise more than two parts are also permitted.
    Hope it helps.
    Regards
    Patrick

  • Wild Card as key field value in Content Conversion

    Hi,
         Can any one please tell me that can a wild card such as '*' be used as key field value.
    Thnx,
    Pravesh Puria.

    Hi Pravesh
    For the file name in the sender file adapter you can use the '*' or '?'(as a placeholder for exactly one character)
    You can also enable the "Advanced Selection for Source File" in the sender file adapter, where you can do two things:
    a)you can specify an exclusion mask for the file name specified above.
    b)you can specify/lits multiple directories with a file name and an associated exclusion mask, e.g. in file name you put ".txt" and in the associated exclusion mask "a". The every file with ".txt" except "a" will be fetched from that directory. 
    Try it out.
    Regards,
    Goekhan

  • Characteristic wild card in report painter

    Dear experts..
    I am developing a report painter for PS cost element report with structure CCSS.
    I want to create rows with dynamic characteristic and I am thinking of using wildcard in the characteristic variable.
    What I am trying to achieve is basically to filter WBS only for those which consist "ABC" in the project number (ABC in POSID). I know it can be achieved in the selection screen but I want the selection screen to be as generic as possible and only filter it at row level.
    In the normal functional report we can use '*' as the wildcard but it can not be used in characteristic variable.
    Appreciate any enlightenment on how to use variable or set to be able to do this.
    Thanks in advance

    Hi Alexei,
    Welcome to SDN.
    You need to give the exact file name. System can not determine file name with wild card.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Wild card search in existsNode function

    Hi,
    How can i do a wild card search for the below data?
    I have a table as follows:
    ID VARCHAR2(32 BYTE),
    MESSAGE_TYPE VARCHAR2(64 BYTE),
    MESSAGE_CONTENT XMLTYPE,
    REJECTED_REASON VARCHAR2(256 BYTE)
    And Sample XML as:
    <?xml version="1.0" encoding="US-ASCII"?>
    <MessageEnvelope>
    <Header>
    <Partner>Renault</Partner>
    <MessageType>Release</MessageType>
    <PartnerMessageType>S74</PartnerMessageType>
    <MessageTime>2001-12-17T09:30:47.0Z</MessageTime>
    <LinkToRawMessage>String</LinkToRawMessage>
    </Header>
    <Body>
    <Release>
    <Addresses>
    <DealerDestAddr>ABCD</DealerDestAddr>
    <DestAddr>ABCD</DestAddr>
    <NextDestAddr/>
    <StartAddr/>
    </Addresses>
    <Assignment/>
    <ClientStatus/>
    <Dates/>
    <HoldInfo>
    <HoldCode>HoldTest</HoldCode>
    </HoldInfo>
    <Message/>
    <Partner>
    <OrderGiverCode>CMR00BCV</OrderGiverCode>
    </Partner>
    <ToDo/>
    <Transport/>
    <Vehicle>
    <VIN>W0LGDM9A_Ran11115</VIN>
    </Vehicle>
    </Release>
    </Body>
    </MessageEnvelope>
    I am executing the foll query:
    select * from t_xml x where x.message_type='DBLVEH' and x.MESSAGE_CONTENT.existsNode('//*[*="Release"]')=1;
    This gives me correct result.
    But i need to search *Rel and it should give me the desired result. How can i accomplish that?
    I tried the foll and it did not work:
    select * from t_xml x where x.message_type='DBLVEH' and x.MESSAGE_CONTENT.existsNode('//*[contains(*,"Re")]')=1;
    Regards,
    Sprightee

    sprightee wrote:
    Hi,
    How can i do a wild card search for the below data?I am not sure how this can be achieved using existsNode function but does following work for you?
    SELECT *
      FROM t_xml
      WHERE
        XMLExists(
          'declare namespace ora = "http://xmlns.oracle.com/xdb"; (: :)
           $d//*
             [ora:matches(text(), "Re*")]'
          PASSING MESSAGE_CONTENT AS "d");

  • Wild card search in a FM

    Hi experts,
    I have a FM in which there is one table customer_name
    It has fields as SIGN (type SIGN), OPTION (type OPTION), LOW (type name1_gp), HIGH (type name1_gp).
    Now the user can give single value, or a range of values for the customer name.
    I am familiar with the wild card search for a select option, but not sure how to apply that funda here.
    For ex: If a customer enters the customer name as MG*, then all the names starting with MG should appear
    in the output.
    Similarly, if the user enters AP* in LOW and MG* in high, the corresponding output should be displayed.
    Can you please help me out?
    Thanks,
    Ajay.

    Hi,
    Do like this
    t_table-sign = 'I'.
    t_table-option = 'CP'.
    t_table-low = 'AB*'.
    t_table-high = 'MG*'.
    append t_table.
    Use this in your select query.

  • Regarding wild card search in oralce

    I am facing one problem,
    I am using wild card search based on LIKE condition, that search is got used for searching purpose through a user interface.
    the query is like below
    SELECT /*+driving_site(a)*/ A.ID,A.CO_ID,B.NAME,A.CITY,A.state FROM mv1 a,mv2 b WHERE a.id=b.id and nvl(b.name,'x') like '<variable>%' and nvl(a.city,'x') like'<variable>%'  and a.state like'%' ;
    where user can input any one or may two or three parameters for search.
    The problem is in response time because mv1 and mv2(materialized view) contains crores of records(around 3.5 crore )
    I am able to search it with city and state but when I am trying by name I am not not getting response for that query.
    Each where clause is indexed propely even functional index i put there and analyzed also , by explain plan i am able to reduce the cost but im not able to get proper response. I welcome all your suggestions as this is reallly a crucial for me to get that search faster....
    Thanks in Advance
    Edited by: user13104802 on Jul 31, 2010 6:31 AM
    Edited by: user13104802 on Jul 31, 2010 6:31 AM
    Edited by: user13104802 on Jul 31, 2010 6:33 AM

    I welcome all your suggestions as this is reallly a crucial for me to get that search faster....You might want to explore Oracle Text (Index).
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:415419367128
    http://www.oracle-base.com/articles/9i/FullTextIndexingUsingOracleText9i.php
    What is your database version? (the result of: select * from v$version; )
    That'll determine what other pointers we can give you.

Maybe you are looking for

  • Saving as a PDF in print page order [not actual page order]?!?!

    Hiya, I've got a 20 page newsletter, each page A4, all created in InDesign CS3 [nice and simple]. I want to print the document in print page order [as appose to actual page order] on our printer here at work, because it's clever and can fold and stap

  • Tried to open yahoo mail in safari, Safari said I had to turn off private browsing how do I do that?

    Can anyone help me figure out how to get yahoo mail to open in safari? I tried but safari couldn't open it and said I had to go to settings-safari-private browsing- turn off, I tried to find the private browsing section but could not locate it please

  • How to get rid of "There are 0 callers ahead of you"?

    Let me start this post off saying I know very little about CCX.  We are running version 8.0.2.10000-41, and on the call manager and unity we are 8.5. When people call into the main helpdesk line, it says "Thank you for calling.  Please hold while you

  • Declarative component stops working after taskflow-call-in-popup

    Hi! JDev 11.1.1.3.0 I need a component, much like the commandToolbarButton, but I have the requirement that the user should still be able to select from the popup even if the button is disabled. So I created a declarative component, combining two but

  • SQL Commands not working

    Hi, When I try to run an SQL statement like select sysdate from dual{code} or to create a table I get [code]ORA-01003: no statement parsed[/code] Thanks EDIT: I was working in SYSTEM workspace. I created another workspace and it seems sql is working