Search for LIFNR case insensitive + range

Ladies and gentlemen,
I could use your help. I need to select rows from LFA1 where the name (NAME1) matches a string. It has two difficult points, which I were not able to combine into a single solution, even after all the research I done.
- I need the search to be case insensitive (I found a partial solution here)
- I need to combine it with a range table
So: I need a case insensitive search using range table. Can this be done effectively? Or is there any workaround you could suggest? This is just a minor part of the report about invoices and must not take long.
Thank you for the time and effort,
Cheers Otto

Thank you, guys,
you are very helpful, your ideas solved my problem. The MCOD* idea is easy/fast and solve my problem very well. I don´t understand why I didn´t find it myself. Hope to pay you back one day:))
For others interested:
      DATA sx_dodnam TYPE TABLE OF z_dodnam_range.
      DATA wa_dodnam LIKE LINE OF sx_dodnam.
      LOOP AT s_dodnam INTO wa_dodnam.
        TRANSLATE wa_dodnam-low  TO UPPER CASE.
        TRANSLATE wa_dodnam-high TO UPPER CASE.
        APPEND wa_dodnam TO sx_dodnam.
      ENDLOOP.
      SELECT lifnr INTO wa_lifnr-low FROM lfa1 WHERE stcd2 IN s_ico AND mcod1 IN sx_dodnam.
        IF sy-subrc = 0.
          wa_lifnr-sign = 'I'.
          wa_lifnr-option = 'EQ'.
          APPEND wa_lifnr TO lt_lifnr.
        ENDIF.
      ENDSELECT.
Cheers Otto

Similar Messages

  • Help: Searching for a case

    Hi, I ride a motorcycle in Europe. Due to high wind speeds, I fear for my brand new iPhone 4.
    I just wanted a leather case, that I can fit my belt trough and stays there forever.
    In other words...a non-clip, non-strap, non-inside-pockets, wind/drop-proof leather case.
    Any suggestions ? Thanks.

    I've seen most ebay and non-ebay leather cases/pouches. The problem is that most of them, there's no pictures of the back side.
    I forgot to mention that I use the phone 70% of the time at work, and I have to wear a classic/casual uniform similar to those in hotel staff. Therefore, I cannot have something "radical" or outdoor-like such as sport straps. I need a leather case, that resists the bike speed, and I move alot at work also, so that's why I'm searching for something that will stay in my belt permanently locked and looks classic/professional.
    I have found something almost suitable at a local chinese store, however it is horizontal, and the iphone 4 fits perfect, but quite honestly, looks like I wrapped a brick to my belt. So I'm going for vertical style. Unfortunately, the chinese store have tons of cases, but for iPhone 4 it's a no...
    I still appreciate someone kind enough to give me more suggestions because I cannot find what I'm looking for online.
    Thanks in advance.

  • Iam searching for test cases specific to iPhone apps

    Please help me out on writing Test cases specific to iPhone apps
    Thankyou

    I think I had the same problem. iTunes was reporting (in the side bar and at the bottom of the applications view) that there were X application updates but when I clicked it, it showed either none or only a couple of them.
    The problem was that iTunes checks if there are any updates to the applications you have installed (in your iTunes or iPhone) but when you go to see the updates, it logs in your iTunes account and displays the updates that are purchased with this specific account. Of course when you use for some reason two different accounts (e.g. just got a MobileMe account and want to use this instead of your previous), you will get different updates available to each account but the total number of updates will be displayed in various locations (sidebar, apps pane, iPhone app store icon badge).
    The only work-around I found was to logout from one account, login with the other, do the updates and log back in to the one I currently use.

  • Search for upper case in Bex Queries

    Dear Gurus,
    I'm facing the following situation:
    I have a query from BW listing customers from a Infocube and it is displayed in uppercases, but when I click in the button filter in left panel from the characteristic Customer and type the customer name in lowercases it doesn't work anyway,
    What can I do to solve this problem?
    Thank you in advance,
    Fabio Purcino
    Brazil

    Hi,
    I've solved this problem by changing the function module RSD_CHA_BUILD_QUERY. I just added the following code before ENDFUNCTION.
      data: ti_where type table of rsdrs_s_where with header line.
      loop at e_sx_query-t_where into ti_where.
        translate ti_where-low to upper case.
        translate ti_where-high to upper case.
        append ti_where.
      endloop.
    Regards,
    Fabio Purcino

  • Case insensitive search mode by jbo:DataQuery

    I'm working on a BC4J JSP project. I cannot find a way to search in the case insensitive mode. I'm using JDeveloper 9.0.3.1. I looked in the DataQueryComponent.jsp, the xxxx_Query.jsp, and all the files generated under the ViewObject to find a way to accomplish this but no luck. Please advise. Thank you.

    One thing you can do is modify the query handler. If it's a straight JSP app (no uix/struts) you are probably using DataHandler.jsp for you handling. If this is the case, you can modify the OnEvent section for Search and Add Criteria. They should look like this
    <jbo:OnEvent list="Search, Add Criteria" >
    <% String rowParam = params.getParameter("nRows");
    int nRows = 0;
    if (rowParam != null)
    try { nRows = Integer.parseInt(rowParam); }
    catch (Exception ex) { }
    %>
    <jbo:ViewCriteria id="vc" datasource="ds" action="new">
    <% for (int index=0; index < nRows; index++)
    String criteriaRowId = "row" + index;
    %>
    <jbo:CriteriaRow id="<%=criteriaRowId%>" >
    <jbo:AttributeIterate id="attrvc" datasource="ds" queriableonly="true">
    <% String item = attrvc.getName();
    String value = params.getParameter("row" + index + "_" + item);
    %>
    <jbo:Criteria dataitem="<%=item%>" value="<%=value%>" />
    </jbo:AttributeIterate>
    </jbo:CriteriaRow>
    <% } %>
    </jbo:ViewCriteria>
    </jbo:OnEvent>
    I added a line just about the <jbo:Criteria> line that converts the value to uppercase like this:
    if (value !=null) { value=value.toUpperCase(); }
    Hope that helps!

  • GetOrdinal of AseDataReader Class is not doing case-insensitive search

    hi,
    I am working on 12.5.4 version of sybase ASE.I am using 'Sybase.AdoNet2.AseClient.dll' to connect with database. I am using GetOrdinal method of ASEDatareader class (that as per documentation performs a case-sensitive lookup first. If it fails , a second search that is case-insensitive occurs) but in my case it is not performing case-insensitive search. I am attaching the document for your reference.
    http://infocenter.sybase.com/help/index.jsp?topic=/com.infocenter.dc20066.1570100/doc/html/san1364409576274.html
    Thanks,
    Raman

    Hi Monica,
    Another thing you want to make sure is on your ASE that the oledb/adonet MDA scripts are up to snuff. Some of our fixes in the driver are in this.
    If you login into the ASE and get the output of sp_version.
    You should get something like this:
    OLEDB MDA Scripts
             15.7.0.1250.1013/Wed Feb 19 UTC 00:28:47 2014
    The ado.net driver and the older oledb driver use some specific MDA scripts on the ASE.
    Read the coverletter of the SDK (Software Developers Kit for ASE). It explains how to update the MDA scripts. They are on the client side $sybase\ADONET\sp.
    So where you downloaded the SDK you want to click Info then look for the README.
    This is all the SDKs:
    * Updating the metadata stored procedures required by ODBC, OLE DB and
      jConnect Drivers on Adaptive Server Enterprise
      Certain new features and bug fixes in ODBC, OLE DB and jConnect drivers
      require you to modify the metadata stored procedures in Adaptive Server.
      These stored procedures may not be up-to-date on your host ASE server due
      to various reasons.
      If the metadata stored procedures are outdated, you may not be able to use
      some of the fixes that are implemented in this SP/ESD, so you will need to
      manually install the updated metadata stored procedures.
      To update the metadata stored procedures in Adaptive Server, first determine
      the version of the meta-data scripts installed on the ASE. To do so, execute
      the following command:
      sp_version
      go
      The version number of the ODBC, OLE DB and jConnect meta-data scripts will
      be displayed.
      Review the version number column and compare it against the version of the 
      driver being used.
      If the metadata scripts are outdated, the version installed will be older
      than the driver build number or you will encounter one of the following:
      - stored procedure sp_version is not found
      - the stored procedure output does not print a row for the driver
      The updated scripts are included with the drivers and can be installed as
      follows:
      For ODBC & OLE DB:
      - Go the "sp" directory under the ODBC/OLE DB installation directory
      - Execute the install_odbc_sprocs script for the ODBC Driver and
      install_oledb_sprocs script for OLE DB Provider.
      Syntax for using the script is:
            install_[odbc/olebd]_sprocs <ServerName> <username> [<password>]
             where <ServerName> is the name of the Adaptive Server
                 <username> is the username to connect to the server
                 [<password>] is the password the username
                 (don’t supply this for null password)
      For jConnect:
      - Go to the "sp" directory under the jConnect installation directory. Based
      on your host ASE server version, choose the appropriate SQL script.
      - Use isql or another tool of your choice to execute the selected script.
      This will install the current meta-data stored procedures.
    Thanks,
    Dawn

  • Jbo:DataQuery with case insensitive search

    I'm working on a BC4J JSP project. I cannot find a way to search in the case insensitive mode. I'm using JDeveloper 9.0.3.1. I looked in the DataQueryComponent.jsp, the xxxx_Query.jsp, and all the files generated under the ViewObject to find a way to accomplish this but no luck. Please advise. Thank you.

    For those who e-mailed me about this question and you who are searching an answer for this question, here is the solution.
    I added some codes in DataQueryComponent.jsp. I put the following codes right after the closing of the "Add Criteria" jbo:OnEvent. It works for me and it will work for you.
    <jbo:OnEvent name="Search" >
    <% String rowParam = params.getParameter("nRows");
    int nCriteria = 0;
    if (rowParam != null)
    try {
    nCriteria = Integer.parseInt(rowParam);
    catch (Exception ex) { }
    %>
    <jbo:ViewCriteria id="vc" datasource="ds" action="new">
    <% for (int i=0; i < nCriteria-1; i++)
    { %>
    <jbo:CriteriaRow id="row<%=i%>" uppercolumns="true">
    <jbo:AttributeIterate id="attrvc" datasource="ds" queriableonly="true">
    <% String item = attrvc.getName();
    String value = params.getParameter("row" + i + "_" + item);
    value = value.toUpperCase(); %>
    <jbo:Criteria dataitem="<%=item%>" value="<%=value%>" />
    </jbo:AttributeIterate>
    </jbo:CriteriaRow>
    <%
    %>
    </jbo:ViewCriteria>
    </jbo:OnEvent>

  • WCC Case Insensitive Search

    Hello everyone,
    I am using OOTB DATABASE.METADATA as the search engine.
    I wanted to know how to make it case insensitive search.
    thanks

    Hey Jiri,
    thanks for the quick answer, I had to use Oracle Text Search.
    to switch the search engine i added the following two entries in config.cfg
    SearchIndexerEngineName=OracleTextSearch
    MaxIndexableFileSize=0
    bounce UCM and recreated indexes.
    and i could make them case insensitive on WCC.
    for WCCIMG i also had to make my applications full text before the searches were made case insensitive.
    thanks

  • Case insensitive searching for criteria "All metadata"

    If I'm specifically searching in (for example) keywords, then the search is case insensitive. However, if I'm searching "All metadata" then the search is case sensitive. I don't know if this is a bug or a feature (seems like a bug to me), but I'd really prefer it to remain case insensitive for this search criterion as well.
    While I'm at it, I'd like to be able to search the IPTC headline.
    Bart

    I'll second that request on both counts! In fact, I'd like to see the ability to search based on any XMP field.
    -Andrew

  • Support for Case Insensitive Search and IN Clause in Open SQL

    Hi,
    I have some doubts regarding Open SQL:
    - Is there any support for Case Insensitive Search in Open SQL, is it availabe by default?
    - Is there any restriction on number of elements in "IN" Clause, in Open SQL, is there any default number?
    I have checked the [Open SQL Grammer |http://help.sap.com/saphelp_nwce711/helpdata/en/9b/f46cabaa874bc9a82234e8cf1d0696/frameset.htm]also, but nothing found there.
    Thanks,
    Piyush
    P.S I didn't find any other appropriate place to post this thread, let me know the correct categorization of Open SQL in case its wrong.

    No cross posting.
    Read the "Rules of Engagement"
    Regards
    Juan

  • Case Insensitive Search for the Dashboard Prompt Filter

    Hi,
    Can anyone help me, how to make dashboard propmt filter to be case insensitive, as of now dashboard propmts are case sensitive by default. How can we achieve this? Any help on this will be appreciated. TIA

    I wonder if it can be done. don't know if there's any work-around for it.
    Generally, the data that is imported into the SOD system is case sensitive hence the field on which you base your prompt will also be case sensitive.

  • Case insensitive search and index

    I have to execute a case insentitive search.
    I created this index on a not null field:
    create index indx_prova on
    table (nlssort(campo, 'NLS_SORT=BINARY_CI'));
    The select is:
    select * from tabella where campo like 'A storage%'
    This select should retrive 5 records:
    A storage ring for crystalline beam studies
    a storage ring for crystalline beam studies
    A Storage Ring for Crystalline Beam Studies
    A storage ring for crystalline beam studies
    A storage ring for crystalline beam studies
    Instead I got only 3 records:
    A storage ring for crystalline beam studies
    A storage ring for crystalline beam studies
    A storage ring for crystalline beam studies
    So The query isn't case insensitive.
    I can't set nls_sort=BINARY_CI and nls_comp=LINGUISTIC at level session.
    Is there a solution.
    Am I doing something wrog?

    I set alter session set nls_comp=LINGUISTIC; alter session set nls_sort=BINARY_CI;
    I create this index:
    create index titolo_indx on
    table (nlssort(campo, 'NLS_SORT=BINARY_CI'));
    If I execute this query:
    select * from ri01_prodotti where titolo like 'A storage ring f%'
    Oracle doesn't user the index.
    SQL_ID 7yvspnyf96vp8, child number 0
    select * from ri01_prodotti where titolo like 'A storage ring%'
    Plan hash value: 350479533
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | | | 2020 (100)| |
    |* 1 | TABLE ACCESS FULL| TABLE | 1 | 1365 | 2020 (1)| 00:00:25 |
    Predicate Information (identified by operation id):
    1 - filter("CAMPO" LIKE 'A storage ring%')
    If I execute a query with =, oracle use index.
    select * from table where campo ='A storage ring for crystalline beam studies'
    SQL_ID 5jzr5nm6b37pq, child number 0
    select * from ri01_prodotti where titolo ='A storage ring for crystalline beam
    studies'
    Plan hash value: 3866031381
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | | | 151 (100)| |
    | 1 | TABLE ACCESS BY INDEX ROWID| RI01_PRODOTTI | 377 | 502K| 151 (0)| 00:00:02 |
    |* 2 | INDEX RANGE SCAN | TITOLO_INDX | 151 | | 3 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - access("RI01_PRODOTTI"."SYS_NC00078$"=HEXTORAW('612073746F726167652072696E6720
    666F72206372797374616C6C696E65206265616D207374756469657300') )

  • Possible to do case-insensitive searches?

    G'day,
    I was wondering if it's possible to do case-insensitive searches in oracle/HTMLDB?
    I've tried what I thought would work
    "select * from application where name like '%microsoft%'", this unfortunately doesn't return any records with a capital in it(eg "Microsoft").
    If there is no way to do case-insensitive searches what is the best way around it?
    Thanks
    -Colin

    Colin,
    Yes it is possible to do case insensitive searches using SQL. Try, for example:
    select * from application where upper(name) like '%ORACLE%'
    The trick is to upper() both sides of the like operator.
    Sergio

  • Error in a report after enabling case insensitive search in conn pool prop

    Hi All,
    I put the below code in connection pool's connection string to enable case insensitive search.
    alter session set NLS_SORT=BINARY_CI
    alter session set NLS_COMP=LINGUISTIC
    After putting this code one of my report started giving the below error which was working fine otherwise.
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. NQODBC SQL_STATE: HY000 nQSError: 10058 A general error has occurred. nQSError: 16001 ODBC error state: S1000 code: 1791 message: OracleODBCOraORA-01791: not a SELECTed expression. nQSError: 16001 ODBC error state: S1000 code: 1791 message: OracleODBCOraORA-01791: not a SELECTed expression. nQSError: 16015 SQL statement execution failed. (HY000)
    The report gives error for the below divide condition when I select a column from a different dimension (eg: region)
    COUNT(DISTINCT RMA.RMA)/COUNT(DISTINCT User."User Name")
    Can anyone please throw a light why this is happening.

    Below is the SQL which is throwing error in OBIEE. It was working fine when I tried running it in toad:
    select T1609.ATTRIB_05 as c1,
    count(distinct T1609.ATTRIB_42) as c2,
    TRUNC(T1159.FSCL_WEEK_START_DT) as c3
    from
    WC_DAY_D T1159 /* RMA_RECEIVED_DT(WC_DAY_D) */ ,
    WC_RMA_D T571,
    WC_FV_FA_D T1609,
    WC_FV_FA_F T1679
    where ( T571.ROW_WID = T1679.RMA_WID and T1159.ROW_WID = T1679.RMA_RECEIVED_WID and T1609.ROW_WID = T1679.FV_FA_WID and T1609.ATTRIB_39 <> 'FV' and (T571.STATUS_CD in ('2nd FA', '2nd FA Review', 'Closed')) and TRUNC(T1609.TODO_ACTL_END_DT) is not null and TRUNC(T1159.FSCL_WEEK_START_DT) between TIMESTAMP '2009-03-22 00:00:00' and TIMESTAMP '2009-04-12 00:00:00' )
    group by T1609.ATTRIB_05, TRUNC(T1159.FSCL_WEEK_START_DT)
    order by c3
    -------------------- Query Status: Query Failed: [nQSError: 16001] ODBC error state: S1000 code: 1791 message: [Oracle][ODBC][Ora]ORA-01791: not a SELECTed expression.
    [nQSError: 16001] ODBC error state: S1000 code: 1791 message: [Oracle][ODBC][Ora]ORA-01791: not a SELECTed expression.
    [nQSError: 16015] SQL statement execution failed.

  • Neen help with date range searches for Table Sources

    Hi all,
    I need help, please. I am trying to satisfy a Level 1 client requirement for the ability to search for records in crawled table sources by a date and/or date range. I have performed the following steps, and did not get accurate results from Advanced searching for date. Please help me understand what I am doing wrong, and/or if there is a way to define a date search attribute without creating a LOV for a date column. (My tables have 500,00 rows.)
    I am using SES 10.1.8.3 on Windows 32.
    My Oracle 10g Spatial Table is called REPORTS and this table has the following columns:
    TRACKNUM Varchar2
    TITLE Varchar2
    SUMMARY CLOB
    SYMBOLCODE Varchar2
    Timestamp Date
    OBSDATE Date
    GEOM SDO_GEOMETRY
    I set up the REPORTS table source in SES, using TRACKNUM as the Primary Key (unique and not null), and SUMMARY as the CONTENT Column. In the Table Column Mappings I defined TITLE as String and TITLE.
    Under Global Settings > Search Attributes I defined a new Search Attribute (type Date) called DATE OCCURRED (DD-MON-YY).
    Went back to REPORTS source previously defined and added a new Table Column Mapping - mapping OBSDATE to the newly defined DATE OCCURRED (DD-MON-YY) search attribute.
    I then modified the Schedule for the REPORTS source Crawler Policy to “Process All Documents”.
    Schedule crawls and indexes entire REPORTS table.
    In SES Advanced Search page, I enter my search keyword, select Specific Source Group as REPORTS, select All Match, and used the pick list to select the DATE OCCURRED (DD-MON-YY) Attribute Name, operator of Greater than equal, and entered the Value 01-JAN-07. Then the second attribute name of DATE_OCCURRED (DD-MON-YY), less than equals, 10-JAN-07.
    Search results gave me 38,000 documents, and the first 25 I looked at had dates NOT within the 01-JAN-07 / 10-JAN-07 range. (e.g. OBSDATE= 24-MAR-07, 22-SEP-), 02-FEB-08, etc.)
    And, none of the results I opened had ANY dates within the SUMMARY CLOB…in case that’s what was being found in the search.
    Can someone help me figure out how to allow my client to search for specific dated records in a db table using a single column for the date? This is a major requirement and they are anxiously awaiting my solution.
    Thanks, in advance….

    raford,
    Thanks very much for your reply. However, from what I've read in the SES Admin Document is that (I think) the date format DD/MM/YYYY pertains only to searches on "file system" sources (e.g. Word, Excel, Powerpoint, PDF, etc.). We have 3 file system sources among our 25 total sources. The remaining 22 sources are all TABLE or DATABASE sources. The DBA here has done a great job getting the data standardized using the typical/default Oracle DATE type format in our TABLE sources (DD-MON-YY). Our tables have anywhere from 1500 rows to 2 million rows.
    I tested your theory that the dates we are entering are being changed to Strings behind the scenes and on the Advanced Page, searched for results using OBSDATE equals 01/02/2007 in an attempt to find data that I know for certain to be in the mapped OBSDATE table column as 01-FEB-07. My result set contained data that had an OBSDATE of 03-MAR-07 and none containing 01-FEB-07.
    Here is the big issue...in order for my client to fulfill his primary mission, one of the top 5 requirements is that he/she be able to find specific table rows that are contain a specific date or range of dates.
    thanks very much!

Maybe you are looking for

  • Regarding free goods

    hi friends as per my knowledge R100 condition type is for 100% discount 1. at wat situation this R100 conditon wiil be used? 2.what is the procedure for customizing this R100 condition type to display in sales order in condition tab? plz reply me tha

  • IPod Touch 4th Gen Does Not Sync

    Basically had an black iPod 4th generation for 2 years this christmas. It worked perfectly til September last year and the suddenly out of no where it seemed to stop syncing. I click the sync button and it seems to either do nothing and the sync butt

  • I book doesnt work with power cord only

    Hello. I was just using my ibook g4 and shut it down. When i tried to turn it back on it worked for about 5 minutes then it shut off. I tried taking out the battery and holding down the power button for 5 seconds among other things. I gave up and bor

  • How to mark a line in between the colums of the section

    i have 3 columns in the section in pivot table i want like 1st column 2nd column 3rd column is this is possible in pivot table...... colud any body please help me in this

  • RFC Adapter CC Maximum connection.

    Hi Experts, In our scenario in RFC Communication channel the maximum connection parameters is blank. In that field there not specified any figure. so please can you tell me in that case how many connections it will take by default. Regards Prabhakar.