IMT - Error in query usind wild card character

This with XML doc
Whenever I use following query
select * from temp where contains(col_1, '% within col_1_tag', 1)> 0 I get following error
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: interMedia Text error:
DRG-50937: query too complex
DRG-51030: wildcard query expansion resulted in too many terms
If any one knows the solution to this problem then please come forward, that would br great help to me.
null

Hi,
  You can take a CHAR variable and concatinate Character and Wild character in it. give it in select query.

Similar Messages

  • Alert Rule - not working. Wild Card character issue

    Hi All,
           I have a requirement where I need to trigger alerts for mapping failures
    of all the interfaces whose namespace is urn:abc.com:odna* or urn:abc.com.odna*.     (in the first instance, there is dot before odna and int he second instance, a colon before odna )
    So to suit both the cases, I gave urn:abc.comodna in the Alert Rule.
    It worked before. But now its not working.
    Then when i changed it to urn:abc.com:odna* it works again. i really dont understand how it worked before and why it fails now.
    What is the reason for the unpredicatable behaviour of WildCard Character based Alert Rules?
    Should Wild Card Characters be avoided completely?

    Hey
    Just create two separate alert rules for the same alert category
    one for urn:abc.com:odna* and another for urn:abc.com.odna*.
    but before that please make sure that "Suppress multiple alerts of this rule" box is unchecked.
    Also please check SAP Note 913858
    Thanx
    Aamir
    Edited by: Aamir Suhail on May 20, 2009 9:16 AM

  • How to use wild card character in input field

    Hi
    I'm creating model in which the Purchase Order information need to be entered in Input Field.
    My requirement is search using wild char char as '*'
    Let say in input field  i gave PO order as 20* then it'll search for all the PO's which starts from 20.
    Could you please share some documents/guidelines, for this issue
    Thanks and Regards
    Puneet

    Hi,
    You can use the wild card char in the input box.please try  below steps.
    1.Check whether the input string has ' * '  char using "CONTAINS(text,pattern)" operation.
    2.If yes, Replace the ' * ' with space by "REPLACE(text,pattern,repstr)" operation.->consider this result as input2
    3.Now , Have a Filter from ur webservice(which gives your Purchase Order information )
    and filter it by the condition " BEGINS(WSField,input2)"
    the Final expression in the filter will be "_=IF(CONTAINS(input,""),BEGINS(HelpWSField,REPLACE(input,"\","")),true)_"
    Hope it helps.
    Regards,
    Priya
    Edited by: priya on May 20, 2009 12:49 PM

  • Dynamic query with wild card

    Hi,
    I have a table1 like below
    Id (NUMBER) , Keyword (VARCHAR2)
    1,A
    2,B
    3,C
    another table2
    name(VARCHAR2)
    Alice
    Bob
    Jack
    I need to write a stored procedure to check whether name of table 2 mactched any of the keyword char of table1. How to I write dynamic query in my PL/SQL stored procedure so that i can generate query similar to
    SELECT * from table2 where name like '%X%' where i need to replace X with the char in table1
    Please help.
    Thanks in advance,
    Marutha

    I need to write a stored procedure to check whether name of table 2 mactched any of the keyword char of table1You might simply join the tables:
    SQL> with table1  as
    select 1 id, 'A' keyword from dual union all
    select 2 id, 'B' keyword from dual union all
    select 3 id, 'C' keyword from dual
    table2 as (
    select 'Alice' name from dual union all
    select 'Bob' name from dual union all
    select 'Jack' name from dual
    select * from table1, table2 where name like '%' || keyword  || '%'
            ID KEYWORD NAME
             1 A       Alice
             2 B       Bob 
    2 rows selected.

  • How to query with wild card

    hi friends
    we have a requirement where if the user enters a letter in a field of selection-screen, he is supposed to get the fields details with its prefix entered in the selection-screen
    eg: if user enters P and give execute
    he needs to get the details of the particular field starting with P
    how to code this
    with regards
    s.janagar

    Hi,
    Here wildcard character '%' can be used as pattern code. Character and then the '%' sign signifies that all values with character as first letter will be searched upon.
    In your case use of like 'P%' in the where clause of the select statementr should solve the issue. e.g.,
    select * from <tabname> into table <internal table> where <fieldname> like 'P%'.
    searches all entries from table <tabname> and places them in internal table <internal table> where the field <fieldame> begin with P.
    Thanks and Regards,
    Sachin

  • 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

  • Wild card characters support for PreCompilation list of classes in RTSJ?

    Hi
    I am generating a precompilation list for methods and classes (ITC.preinit for class is generated and nhrt.precompile for methods are generated). I done this because i dont want the compilation jitter in between the execution..... So i generate these list and load these lists.
    Now class list contents are look like following
    java/lang/CharacterData02
    java/lang/CharacterDataUndefined
    java/lang/CharacterData0E
    java/lang/CharacterDataPrivateUse
    java/lang/ConditionalSpecialCasing
    sun/security/provider/X509Factory
    sun/security/util/Cache
    sun/security/util/MemoryCache
    sun/security/x509/X509CertInfo
    java/lang/Integer$IntegerCache
    file also includes class name for my application.
    I actually want to give wild card character ie " * " with the package name so that it will load all the classes under package mentioned....can anyone tell me whether i can do that or not ....ie RTSJ provides this support or not????
    or how i can do that???????????
    Actually problem with the existing format that file generated is too long and everytime i add new classes and methods i ve to regenerate the file ...due to this reason i need solution like following
    For Example ---> java/lang/*
    Compiler should load all classes under the package java.lang before execution....
    Thanks

    Sorry, but no, wildcards are not supported for preload/init or precompile lists.
    Wildcards can easily cause problems, and would have to be used with great care. For example, preloading all classes/types in a package could load and initialize them in an order that is impossible under normal runtime conditions and that could lead to initialization failures - which is why the generated lists maintain the order in which things actually occurred. Precompilation is safer but if you precompiled everything you're likely to run out of memory - there are potentially three different compiled versions of each method (for JLT, RTT and NHRT) and a normal run of a program would only compile a small fraction of the methods defined in an entire package.
    Regeneration of the lists is presently the only option.
    David Holmes

  • WILD CARD char in file Name

    Hi all,
    I'm trying to use the wild card character "" in file name to read files from App server using open dataset st.If the file name is 2005stcjk.txt ,and if i use wild card like 2005.txt it should be able to pick that up.I tried and i'm not getting this to work.
    Is ther anything i'm missing,i guess it's possible.any help is greatly appreciated.
    Thanks,
    Gopal.

    You cannot do that. Open dataset works with only one file at a time and the filename and directory should be valid.
    You can use EPS_GET_DIRECTORY_LISTING function module to get the list of files in a specific directory. You can then loop at that internal tables with file names, and do a READ DATASET on each of those files. Remember, this function module is used on the administrative side, so you need proper authorizations to use function module. Otherwise you will get a blank internal table. Also, you can do a search with wild card only with * at the end, not any other way.
    Hope this helps,
    Srinivas

  • QUERY ERROR WITH WILD CARD ON FORM WHEN NO DATA WWC-49102

    Portal 30985 ; database 9014 on sun solaris
    Same server : two databases 9014 : db1 with portal and db2(used here as remote database);
    Step1 ; Create public database link; db_link on db1 through Portal interface;
    Step2 ; create public synonym emp_syn for table emp@db_link through Portal interface;
    Step3 :create form based on emp_syn;
    the form is generated OK and also is behaving OK when Insert,Update,Delete from
    underlying table ;but when I am quering for 758% into the empno field I've got the same error:
    Error: An unexpected error occurred: ORA-00000: normal, successful completion (WWV-16016)
    No conversion performed for type NUMBER, value 758%. (WWC-49102) INSTEAD OF RETURNING EMPTY FORM(NO ROWS)
    I have tryed to query on other fields ;
    querying on a numeric field will give the above message;
    querying on a varchar or date field with or without wild card will raise the following error:Error: An unexpected error occurred: ORA-00000: normal, successful completion (WWV-16016)
    An unexpected error occurred: ORA-00000: normal,successful completion (WWV-16016).
    Lawrence

    Hi Mike,
    You can actually just check for the existence of the cell:
    var l_Cell = $x(pId);
    if (l_Cell)
    rest of the code to hide the column
    }As long as l_Cell refers to a valid page item, then the if test passes and the rest of your code can run.
    Andy

  • How to pass wild card '%'  value from the parameter to the query

    Hello everyone,
    I have following 2 problems
    1) I was trying to do some thing like below
    select * from emp
    where ename like 'J%'
    for this i have used the following code
    select * from emp
    where ename like :P_ENAME
    and before running the query in the parameter box i entered J%. But my report returns an error which says INVALID PARAMETERS REQUESTED.
    2) I have a req of passing both comma separated and wild card for the same parameter. If we take the same example as above,
    user should be able to enter
    a) JASON, SMITH, JOHN OR b) J%
    I have used comma separated value option of the parameter for the csv values and its working fine, but i need to add the wild card feature also to the same parameter.
    Can anyone please help me with these things?????
    Thanks in advance!!
    Raghu

    Hi Raghu,
    I guess you are in older version, You have to get into latest version to use %, it should work well
    you should use where ( ename like :P_ENAME ) or ( ename in (:P_ENAME)) for both the condition to satisfy.

  • 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

  • RFC as webservice and wild cards

    Hi experts,
    We have a custom RFC that fetches employee data based on import parameters like PERNR,FIRSTNAME,LASTNAME etc.This RFC is exposed as a WS by default(we are on ECC6.0) and is consumed by a non-SAP application.
    The problem is when the calling application tries to do a wild card search in any of the field (say,FIRSTNAME),there is an error with the message like give below:
    There is an error in XML document (1, 17584987).
    'ўј', hexadecimal value 0x06, is an invalid character. Line 1, position 17584987
    Please note that the RFC works fine in all scenarios from SE37.
    Even the WS works fine for searches like 'A'.But the problem occurs only when one/any of the parameters is ''.
    My questions is:Is there any restriction on using the wild card as a parameter to a WS interface?If yes,how to have a workaround on this?
    Thanks in advance,
    Prasanna

    Hi
    Can we wrap a rfc as web service ?
    Yes.
    <i>To use the SAP Web AS 6.40 you need to build a wrapper in the 6.40 system. This is a remote function call (RFC) enabled function module with the same interface or a similar interface that internally calls the required RFC-enabled function module in the old 4.6x system via RFC. The wrapper then can be exposed to the outside world as a Web service. Another option is to use the Integration Broker capabilities for calling Web services in an older system.</i>
    How XI will play a role here ?
    XI will pass the input to the external java application and get back the result to the webservice
    regards
    krishna

  • Wild Card Postal Codes in Transportation Zones and Postal Code Range in TCM

    Hello Experts,
    I have 2 queries on Postal Codes usability in SAP TM:
    1. Postal Code Transportation Zones:
    Business Scenario: Some countries have non-numeric Postal Codes and you can not maintain From and To Postal Code range. System supports Postal Code to be entered as Wild Card (XY1*) in Transportation Zone but does not respect them during charge calculation.
    2. Postal Code Range in Rate Table:
    There are standard Calculation Bases for Source/Destination Postal Code Range but these do not allow maintaining values like Source Postal Code Range (90100-90199) to Destination Postal Code Range (63100-63199). I am unable to understand the use of these 2 calculation bases since they do not accept range.
    Kindly suggest.
    Thanks and Best Regards,
    Vikas Chhabra

    I start with the first question: Well, well, well. Probably one of the most underestimated topics in the transportation network. A bit of a background: Postal codes are alphanumeric meaning they allow numbers and characters. Of course for some countries only numbers are required and those are pretty easy to handle. Nevertheless, SAP produces global software and there are countries having postal codes with unfixed length, character first, in the middle, at the end. This makes ranges ugly, tough, sometimes impossible.
    The range definition works alphanumeric, which is a position to position comparison based on single chars. You can check the inclusion results in excel or with any database. For the zone definition this can mean that you are forced to enter postal codes and no ranges. Of course this blows up the maintenance effort in the beginning, but ensures the correctness.
    I was surprised by your comment that the zone definition allows '*' because this would make this whole thing even more complicated and error prone. I tested it and it does not work, at least for Germany. I think in the address definition per country you can define valid formats for postal codes and there '*' is not valid for Germany. The transportation zone location inclusion will not work with pattern!
    In case you have manages to maintain this: I would advise to take the effort and enter at least valid ranges.

  • 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

  • Oracle Export Error on QUERY Parameter

    Hi All,
    I would like to ask for assistance.
    Here's my environment:
    OS: Linux 5.4 32bit
    DB: Oracle 10.2.0.4
    Here's what I would like to do:
    Export selected rows from SH.SALES table using the query:
    SQL> select * from sh.sales
    where to_date(time_id,'DD-MON-RR:HH24:MI:SS') = to_date('28-DEC-01:00:00:00','DD-MON-RR:HH24:MI:SS');
    My parfile is:
    userid="sys/oracle as sysdba"
    buffer=10000000
    file=mysales148.dmp
    log=mysales148.log
    TABLES=sh.mysales
    query="where to_date(time_id,\'DD\-MON\-RR:HH24:MI:SS\')=\to_date(\'28\-DEC\-01:00:00:00\',\'DD\-MON\-RR:HH24:MI:SS\')"
    recordlength=65535
    statistics=none
    When I run the script, I am getting this error:
    [oracle@shaoran selective_export]$ exp parfile=exp_mysale.par
    Export: Release 10.2.0.1.0 - Production on Thu Feb 3 16:57:08 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    Current user changed to SH
    . . exporting table MYSALES
    EXP-00056: ORACLE error 911 encountered
    ORA-00911: invalid character
    Export terminated successfully with warnings.
    Hope to hear your feedback soon.
    Thanks a lot!

    Hi Guys,
    Thanks for the feedback.
    I edited my parfile as shown here:
    [oracle@shaoran selective_export]$ cat exp_mysale.par
    userid="sys/oracle as sysdba"
    buffer=10000000
    file=mysales148.dmp
    query="where time_id=\to_date(\'28\-DEC\-01:00:00:00\',\'DD\-MON\-RR:HH24:MI:SS\')"
    log=mysales148.log
    TABLES=sh.mysales
    recordlength=65535
    statistics=none
    [oracle@shaoran selective_export]$
    and I did the following steps:
    [oracle@shaoran selective_export]$ export NSL_LANG=AMERICAN_AMERICA.UTF8
    [oracle@shaoran selective_export]$ exp parfile=exp_mysale.par
    Export: Release 10.2.0.1.0 - Production on Fri Feb 4 11:34:03 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in UTF8 character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    Current user changed to SH
    . . exporting table MYSALES
    EXP-00056: ORACLE error 911 encountered
    ORA-00911: invalid character
    Export terminated successfully with warnings.
    [oracle@shaoran selective_export]$
    I still get the same error. :(

Maybe you are looking for