LIKE Query via JAC

Hi,
we are just thinking about how to access the Lite db via JAC or JDBC.For our application we need to replicate against a 8iServer db and therefore need a relational structure. So we won't have all the advantages of a object db. Anyway the access via JAC is possible, but we are missing a feature in JAC relating to the LIKE clause in SQL. Is anybody out there facing the same problem or has a solution for that. Each information will be appreciated.
Thanks Ralf

LIKE only works on character columns. Try casting your date field to a character type with TO_CHAR.
null

Similar Messages

  • Execute BW Query Via RFC

    Hi all.
    im traying to execute a BW query via an RFC ussing FM RRW3_GET_QUERY_VIEW_DATA.
    CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
         EXPORTING
         i_infoprovider        =
           i_query                =
           i_view_id              =
           i_t_parameter       =
         IMPORTING
           e_axis_info           =
           e_cell_data           =
           e_axis_data          =
           e_txt_symbols       =
         EXCEPTIONS
           no_applicable_data      = 1
           invalid_variable_values = 2
           no_authority            = 3
           abort                   = 4
           invalid_input           = 5
           invalid_view            = 6
           OTHERS                  = 7.
    my query have two parameters. im puttings this valuen into table i_t_parameter , but at the momento of query execution, this values are not used like parameters never send to query.
    when debug my RFC, i can see that those values are passing to FM.
    Any Idea???

    try this blog.
    /people/durairaj.athavanraja/blog/2005/12/05/execute-bw-query-using-abap-part-iii

  • Execute BEX Query via Function Module

    Hi Mates,
    I want to execute BEX query via a Function Module.
    Also i want to explore whether the input parameters of the query can be retrieved from a Database Table.
    Please let me know how this can be achieved.
    Thanks in advance.
    Regards,
    Hrishikesh

    Hi Hrishikesh,
    Assuming you have the necessary ABAP knowledge, you will have to code the exit in the include ZXRSRU01 under I_STEP = 1 (this is because you want to prepopulate your parameters from the values in your DB table).
    Your DB table has Key1, Key2 and Your field as the three fields and you want to read the value of 'Your Field' based on your keys Key1 and Key2.
    So, the code will be something like -
    when 'Your variable'.
    if i_step = 1.
    select single 'Your field' from 'Your DB table' into lv_your_field where Key 1 = 'X' and
                                                                                                                   key 2 = 'Y'.
    clear l_s_range.
    l_s_range - low = lv_your_field.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    endif.

  • Error while executing BEX query via FM

    Hi Friends,
    I am getting following error while executing a query via FM RRW3_GET_QUERY_VIEW_DATA.
    Please see the error screenshot as follows.
    the I_T_PARAMETERS entered are as follows.
    Please let me know what is missing.
    Thanks.
    Regards,
    Hrishikesh

    the key date variable 0DAT is normally filled by a SAP exit variable, but this may not be the case.  it could have been changed in the query designer,  check the query in query designer and see.
    Try passing 0DAT in the variable list with todays date

  • Problems with query via Database-Link (Oracle 7.3.4)

    I made the following simple query via database-link.
    select count (*) from [email protected]
    I got the result in about 200 miliseconds.
    Then I4ve tried the following query.
    select * from [email protected]
    It took about 2 hours end ended with an error message "ORA-03113: end-of-file on communication channel"
    So I made another choice
    select * from [email protected] where rownum <=1
    Took about 200 miliseconds.
    So I made the query again an changed only the number of rownums,until I was at rownum <=8
    then it went sleeping again(I've canceled the statement because I didn't want to wait 2 hours again).
    We made the same things from another server with the same database-link on the same remote server
    and we had no problems.
    Any Idea???

    No, network is OK!
    Other links are running, I have also no problems when I connect directly to the remote server.

  • About regex and 'like' query

    Dear all,
    can i doing regex query in SAP B1?
    And how to use 'like' query with table, i mean :
    SELECT * FROM test T0 INNER JOIN test2 T1
    WHERE T0 LIKE '%T1.testfield%'
    thanks for your help

    wait - something came out funny in the previous posting - the system highlighted the name "field" with blue - that is NOT what I typed...
    instead I typed...
    "field" between two brackets ( bracket = [ and the other bracket - I cannot type them in because they come out as a different character)
    what the heck is going on with the forum here???  I am seeing this highlighting in other postings as well...
    Hope THIS one comes out correctly
    Edited by: Zal Parchem on Dec 29, 2007 2:47 PM

  • Executing Like Query

    Hey Can Anyone tell me how ca i execute like query using jdbc odbc bridge
    when i use the following syntax it gives me an error
    select topicid,name,subject from topic where subject like("subject1%")
    or
    select topicid,name,subject from topic where subject like("subject1*")
    both of the statements issue an error
    Please Help
    asap
    Thanx

    when i use the following syntax it gives me an error
    select topicid,name,subject from topic where subject
    like("subject1%")You need to use single quotes instead of double quotes.
    SELECT topicid, name, subject FROM topic WHERE subject LIKE 'subject1%'

  • How to access a query via MS Access?

    Hello BI experts,
    we created a query in BI 7.0 and activated the option "Release for OLE DB for OLAP" (=ODBO). It's no problem to access this query via MS Excel 2003.
    But now we have the requirement to access this query via MS Access 2003. Is there a way to do this?
    MS Access 2003 has no ODBO driver. Only connectivity to ODBC is supported.
    Has anyone of you a solution?
    Thanks in advance and best regards
    Dieter

    Dear Dieter
    Have you had the answer about it??
    I have the same problem
    Kind Regards
    Ariel

  • Initial selection screen missing when execting a query via web

    Hello all.
    We have a problem when we try to execute a query in web. We developped queries via query designer and we published all in a role. By doing it system generates a link that makes possible to execte this query via web. The issue is that sometimes the initial selection screen doesn´t appear (and the variables are "ready to input".
    Could anybody help me?
    Thanks in advance.

    Dear Carmen Rodríguez,
    In the WAD properties of the webtemplate.. carefully look for 'Force Variable Screen' Check that option..
    Save and rerun the same.. it should be able to see the screen after that..
    regards,
    Hari

  • Looks like updates via the App. store update option is not working again. Comments?

    Looks like updates via the App. store update option is not working again. Comments?

    There are a number of other threads from people reporting a problem with a blank Updates tab in the App Store app - it looks like there is a problem at Apple's end which they need to fix.
    Some posts are suggesting that you if you go into the Purchased tab in the App Store app you might be able to update the apps from there, though you will need to scroll through the list to find those with updates and individually update them.

  • Is there any LIKE query equivalent in XML?

    Is there any LIKE query equivalent in XML?
    I would like the display words starts with 'A' in flex list, vice versa. I send A as a input.
    Any ideas?

    Hi,
    I don't know that one - but with slight modification I can filter nodes values also - not onlyl attributes:
    var people:XML = <people>
       <person>
                        <firstName>Peter</firstName>
              </person>
       <person>
                        <firstName>Auguste</firstName>
              </person>
       <person>
                        <firstName>Gregory</firstName>
              </person>
       <person>
                        <firstName>Andy</firstName>
              </person>
    </people>
    (so we have nodes that have values - not attributtes)
    and then e.g.:
    var peopleList:XMLList = people.person.(firstName.charAt(0) == "A");
    trace(peopleList);
    (this is dynamic statement - you could replace "A" with variable reference, etc)
    Edit;
    I've googled interesting article you could read on that subject here:
    http://www.senocular.com/flash/tutorials/as3withflashcs3/?page=4
    hth,
    regards,
    Peter
    Message was edited by: Peter Blazejewicz

  • Running a Query via Query Monitor (RSRT) works, but Java Web does not

    I am running a query via RSRT (IC_SOPSAL/Z_SOPIC_CUSTSALES_01) and this is successful. But when I run the Java Web for same Query below,
    http://FQDN:59800/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=Z_SOPIC_CUSTSALES_01
    We get an error, The Web template "ZWEB_TEMPLATE_001" does not exist in the master system.
    our BW8 and BW3 SSO configuration on our Portal System Object connectivity are not BI master systems.
    Regards,
    James

    I am running a query via RSRT (IC_SOPSAL/Z_SOPIC_CUSTSALES_01) and this is successful. But when I run the Java Web for same Query below,
    http://FQDN:59800/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=Z_SOPIC_CUSTSALES_01
    We get an error, The Web template "ZWEB_TEMPLATE_001" does not exist in the master system.
    our BW8 and BW3 SSO configuration on our Portal System Object connectivity are not BI master systems.
    Regards,
    James

  • Like Query Tuning

    Hi
    I am new to Performance tuning and I know only very basic things.
    My DB version is 10.2.0.4.
    I want to tune my query which uses like clause and it is a dynamically created with either left truncation or right truncation or both.
    I found in some sites that catserach will solve my problem and i tried the same in test DB.
    So I did the following.
    SQL >alter system flush buffer_cache;
    GRANT EXECUTE ON CTX_DDL TO user;
    EXEC CTX_DDL.DROP_INDEX_SET('test_set');
    EXEC CTX_DDL.CREATE_INDEX_SET('test_set');
    EXEC CTX_DDL.ADD_INDEX('test_set','d');
    create index test_table_idx on test_table(c) INDEXTYPE IS CTXSYS.CTXCAT PARAMETERS ('index set test_set');
    SQL> SELECT COUNT(*) COUNT, a, b FROM test_table
    WHERE UPPER(c) LIKE '%270%' AND d = 0 GROUP BY a, b ;
    5664 rows selected.
    Elapsed: 00:00:12.29
    Execution Plan
    Plan hash value: 4088289091
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Ti
    me |
    | 0 | SELECT STATEMENT | | 59358 | 1739K| | 8039 (4)| 00:01:37 |
    | 1 | HASH GROUP BY | | 59358 | 1739K| 5144K| 8039 (4)| 00:01:37 |
    |* 2 | TABLE ACCESS FULL| test_table | 59358 | 1739K| | 7547 (4)| 00:01:31 |
    Predicate Information (identified by operation id):
    2 - filter(UPPER("C") LIKE '%270%' AND "D"=0)
    Statistics
    812 recursive calls
    0 db block gets
    33459 consistent gets
    33206 physical reads
    0 redo size
    168223 bytes sent via SQL*Net to client
    4639 bytes received via SQL*Net from client
    379 SQL*Net roundtrips to/from client
    22 sorts (memory)
    0 sorts (disk)
    5664 rows processed
    SQL >alter system flush buffer_cache;
    SQL> SELECT COUNT(*) COUNT, COUNT, a, b FROM test_table
    WHERE CATSEARCH(C,'<query> <textquery grammar="context">%270% </textquery></query>',NULL) > 0
    GROUP BY a, b;
    5664 rows selected.
    Elapsed: 00:00:27.51
    Execution Plan
    Plan hash value: 2203090224
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 59369 | 2261K| | 606 (2)| 00:00:08 |
    | 1 | HASH GROUP BY | | 59369 | 2261K| 6072K| 606 (2)| 00:00:08 |
    | 2 | TABLE ACCESS BY INDEX ROWID| test_table | 59369 | 2261K| | 2 (0)| 00:00:01 |
    |* 3 | DOMAIN INDEX | test_table_idx | | | | | |
    Predicate Information (identified by operation id):
    3 - access("CTXSYS"."CATSEARCH"("C",'<query> <textquery grammar="context">%270% </textquery></query>',NULL)>0)
    Statistics
    17856 recursive calls
    0 db block gets
    26550 consistent gets
    9047 physical reads
    0 redo size
    168223 bytes sent via SQL*Net to client
    4639 bytes received via SQL*Net from client
    379 SQL*Net roundtrips to/from client
    8 sorts (memory)
    0 sorts (disk)
    5664 rows processed.
    I did all the above steps purely from reading some documents.
    Can anyone explain me
    1. if catsearch is the best option based on the stats (as catsearch option has many recursive calls).
    2. What is the purpose of Oracle Grammar
    3. What is the purpose of EXEC CTX_DDL.CREATE_INDEX_SET('test_set'); ??
    4. I used grammar only for right and both side truncation and for left truncation my where clause is
    WHERE CATSEARCH(C,'1044*',NULL) > 0 AND D = 0 GROUP BY A,B;
    Also Can I modify the above where clause as
    WHERE CATSEARCH(C,'1044*',' D = 0 ' > 0 GROUP BY A,B;
    and explain the same pls.

    Here is the Trace for bit map.
    DROP INDEX test_table_idx;
    CREATE bitmap INDEX test_table_idx ON test_table(c) PARALLEL 20 nologging;
    SELECT COUNT(*) COUNT, a, b FROM test_tableWHERE UPPER(c) LIKE '1044270%' AND d = 0 GROUP BY a, b
    Elapsed: 00:00:00.85
    Execution Plan
    Plan hash value: 7812215
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 59358 | 1739K| | 87592 (1)| 00:17:32 |
    | 1 | HASH GROUP BY | | 59358 | 1739K| 5144K| 87592 (1)| 00:17:32 |
    |* 2 | TABLE ACCESS BY INDEX ROWID | test_table | 59358 | 1739K| | 87100 (1)| 00:17:26 |
    | 3 | BITMAP CONVERSION TO ROWIDS| | | | | | |
    |* 4 | BITMAP INDEX FULL SCAN | test_table_idx | | | | | |
    Predicate Information (identified by operation id):
    2 - filter("C"=0)
    4 - filter(UPPER("C") LIKE '1044270%')
    Statistics
    1 recursive calls
    0 db block gets
    5310 consistent gets
    0 physical reads
    0 redo size
    657 bytes sent via SQL*Net to client
    492 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    1 rows processed
    SELECT COUNT(*) COUNT, a, b FROM test_table WHERE UPPER(c) LIKE '10%' AND d = 0 GROUP BY a, b ;
    687644 rows selected.
    Elapsed: 00:00:35.26
    Execution Plan
    Plan hash value: 7812215
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 59358 | 1739K| | 87592 (1)| 00:17:32 |
    | 1 | HASH GROUP BY | | 59358 | 1739K| 5144K| 87592 (1)| 00:17:32 |
    |* 2 | TABLE ACCESS BY INDEX ROWID | test_table | 59358 | 1739K| | 87100 (1)| 00:17:26 |
    | 3 | BITMAP CONVERSION TO ROWIDS| | | | | | |
    |* 4 | BITMAP INDEX FULL SCAN | test_table_idx | | | | | |
    Predicate Information (identified by operation id):
    2 - filter("C"=0)
    4 - filter(UPPER("C") LIKE '10%')
    Statistics
    21 recursive calls
    0 db block gets
    246786 consistent gets
    10328 physical reads
    0 redo size
    20956978 bytes sent via SQL*Net to client
    504754 bytes received via SQL*Net from client
    45844 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    687644 rows processed
    SELECT COUNT(*) COUNT, a, b FROM test_table WHERE UPPER(c) LIKE '%EXT' AND d = 0 GROUP BY a, b
    118760 rows selected.
    Elapsed: 00:01:13.34
    Execution Plan
    Plan hash value: 7812215
    | Id | Operation | Name | Rows | Bytes |TempS
    pc| Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 59358 | 1739K| | 87592 (1)| 00:17:32 |
    | 1 | HASH GROUP BY | | 59358 | 1739K| 5144K| 87592 (1)| 00:17:32 |
    |* 2 | TABLE ACCESS BY INDEX ROWID | test_table | 59358 | 1739K| | 87100 (1)| 00:17:26 |
    | 3 | BITMAP CONVERSION TO ROWIDS| | | |
    | | |
    |* 4 | BITMAP INDEX FULL SCAN | test_table_idx | | | | | |
    Predicate Information (identified by operation id):
    2 - filter("C"=0)
    4 - filter(UPPER("C") LIKE '%0EXT')
    Statistics
    1 recursive calls
    0 db block gets
    122629 consistent gets
    13682 physical reads
    0 redo size
    3534421 bytes sent via SQL*Net to client
    87579 bytes received via SQL*Net from client
    7919 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    118760 rows processed

  • Displaying all related Query Views of an opened Query via DropDown

    Hello Gurus,
    I have following requirement in WAD for SAP BW 7:
    All Query Views related to a opened Query should be displayed and  selectable via a DropDown Item.
    In the standard WebTemplate 0Analysis there is already implemented a DropDown Item called "QueryView Selection" but i dont get it working like in the BW 3.5 template 0adhoc.
    Has anyone a solution or hint?
    Edited by: D. Gehle on Jan 13, 2011 2:15 PM
    Edited by: D. Gehle on Jan 13, 2011 2:15 PM

    Hi Shantanu
    Thank you for your reply.
    I made a trace in the web by putting &TRACE=X at the end of the string.
    I tried to analysis the transaction RSRTRACE and looked at the All Logs button against my user id.
    Firstly, i do not seem to understand what this produces other than the debug session.  I could not also seem to find any information that assisted me on how to produce a log file, and information that indicates what you have said in your reply.
    If you could further assist providing info on how to use the debugger/log file, and how to read
    - used processors
    Thank you.
    Simon

  • Special LIKE query

    Hi,
    I need to create a special SQL query; I'll explain better with an example:
    if, for example, I need to query about the string VIA, I'll use:
    SELECT ..... WHERE name LIKE '% VIA %'
    but if I query about VIA at the end of a comment:
    SELECT ..... WHERE name LIKE '% VIA.%'
    or
    SELECT ..... WHERE name LIKE '% VIA,%'
    or
    SELECT ..... WHERE name LIKE '% VIA;%'
    or I can need to query for VIA between brackets:
    SELECT ..... WHERE name LIKE '%(VIA %'
    or
    SELECT ..... WHERE name LIKE '%VIA)%'
    Can I do all of it with only one question defining a specific group of special characters?, the idea is that I could define a group z=(, . ; : ( ) [ ] ...) and then type my query
    SELECT ..... WHERE name LIKE '%zVIAz%'
    Sorry because of my poor english
    thanks

    I'll do the query throught a program which should separate the query in multiples queries to the database; if a have 12 LIKEs, I'll do 12 queries... too much queries

Maybe you are looking for