Case sensitive Searh field

Hi guys!
Kindly check my codes. It seems like FIND command doesn't work (sy-subrc= 4).
**Pass Value
  IF sl_id IS INITIAL.
    sl_id = '%'.
  ENDIF.
  IF sl_desc IS INITIAL.
    sl_desc = '%'.
  ELSE.
   TRANSLATE sl_desc+1 TO LOWER CASE.
    CONCATENATE '%' sl_desc '%' INTO sl_desc.
  ENDIF.
**Initial Value
  storage_loc-sl_id = '-'.
  storage_loc-sl_desc = 'None'.
  APPEND storage_loc.
  CLEAR storage_loc.
**Get Storage Location
  SELECT lgort
         lgobe
  INTO (storage_loc-sl_id,
        lv_text)
  FROM t001l
  WHERE werks = 'AGP1'
*AND lgort LIKE sl_id
*AND lgobe LIKE sl_desc
    CONCATENATE '%' lv_text '%' INTO lv_text.
    CHECK sl_desc IS NOT INITIAL.
      TRANSLATE lv_text TO UPPER CASE.
-->>      FIND sl_desc IN lv_text IGNORING CASE.
          IF sy-subrc = 0.
            SELECT SINGLE lgobe
            INTO storage_loc-sl_desc
            FROM t001l
            WHERE lgort LIKE sl_desc.
              APPEND storage_loc.
              CLEAR storage_loc.
          ENDIF.
  ENDSELECT.

Maui,
I believe you can use SEARCH option. See the code below from SAP HELP.
Hope this will solve your problem,
Cheers,
Thomas.
DATA STRING(30) VALUE 'This is a little sentence.'.
WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
ULINE /1(26).
SEARCH STRING FOR 'X'.
WRITE: / 'X', SY-SUBRC UNDER 'SY-SUBRC',
               SY-FDPOS UNDER 'SY-FDPOS'
SEARCH STRING FOR 'itt '.
WRITE: / 'itt   ', SY-SUBRC UNDER 'SY-SUBRC',
                   SY-FDPOS UNDER 'SY-FDPOS'
SEARCH STRING FOR '.e .'.
WRITE: / '.e .', SY-SUBRC UNDER 'SY-SUBRC',
SY-FDPOS UNDER 'SY-FDPOS'.
SEARCH STRING FOR '*e'.
WRITE: / '*e ', SY-SUBRC UNDER 'SY-SUBRC',
SY-FDPOS UNDER 'SY-FDPOS'.
SEARCH STRING FOR 's*'.
WRITE: / 's* ', SY-SUBRC UNDER 'SY-SUBRC',
SY-FDPOS UNDER 'SY-FDPOS'.

Similar Messages

  • Change Case-sensitivity of field ASKTX in Search Help ASMD

    Hi experts,
    In Collective Search help ASMD, there is a elementory search help /SAPBOQ/ASMD_MITEM where field ASKTX is Case sensitive.
    How can I remove the case-sensitivity of this field ?
    Thnks in advance,
    Goutam

    owngoal wrote:
    You say your "backups still turn up corrupted now and then" - how do you know? Is it only when you try to access them that you will know this?
    Sometimes a backup will fail, sometimes you can't access them, sometimes you'll get this message:
    See #C13 in Time Machine - Troubleshooting for details.
    And by this stage is it too late to recover anything?
    Sometimes.    Sometimes they can be repaired by Disk Utility.  Sometimes only a heavy-duty 3rd-party disk repair app like DiskWarrior ($100) can fix them.  Sometimes nothing can.  Sometimes you can restore some individual items, sometimes not.  Sometimes you can do a full system restore from some backups, other times not.
    does it help that I am using a Gigabit WIRED connection between iMac - 10/100/1000 switch - Airport Extreme Base Station?
    Probably -- you won't have WIFI interference.
    But if you have an iMac, why not just connect the external HD directly to your Mac?  That's much faster and more reliable (and supported).
    You'd need to erase the disk in that case, since Time Machine won't bother with a sparse bundle at all on a direct backup.  Just format the disk as GUID, with Mac OS Extended (Journaled) and let 'er rip!

  • ALV grid case-sensitive edit field

    Hello,
    i've a editable field on a alv grid.
    The field is case-sensitive in the domain.
    But when i enter a field an click rturn, the letters get uppercase.
    What's the problem?
    Best regards,
    TomSd

    Hi,
    Add the attribute  lowercase = 'X'  while preapring field catalog for this field.
    Regards,
    Gopi.
    Reward points if helpfull.

  • Are idoc fields case sensitive?

    Hello, there has been an error during idoc processing. The trading partner field was filled in lowercase and this is bringing me error      Message no. FB279  ' Company dp0017 is not defined'. The other idocs had DP0017 filled in and were processed fine.
    Any input on this? thx.
    Edited by: Antish  Awootar on Jun 7, 2011 8:02 AM

    Hi Antish,
    It actually depends on the value that is stored in the IDOC, if the IDOC has company code in lower case then that is exactly how it will be used in the program for all purpose and no automatic conversion is applied. The below message is thrown in the FM - FI_COMPANY_CHECK This FM will look up the table T880 - If you check the entry in this table will be DP0017 and not dp0017. Hence it is throwing the error message.
    If your question is it works fine when i try in SE37 with the FM "FI_COMPANY_CHECK" or if i input "dp0017" in  WE19 or in SE11 against T880, then the reason for that is a conversion is applied automatically and it is changed to DP0017.
    To answer your question "Are idoc fields case sensitive?", it depends on the context, does it retain the case when it is filled in, yes it does.
    Regards,
    Chen
    Edited by: Chen K V on Jun 7, 2011 4:10 PM

  • SOAPAction Header field case sensitive

    Hi gurus,
    I am trying to consume a webmethods java webservice via XI/PI NW2004 and when I send a request, PI send the soapaction field in uppercase.
    POST http://webservices.kuehne-nagel.com/HelloWorld_test HTTP/1.0
    Accept: /
    Host: https://webservices.kuehne-nagel.com/HelloWorld_test
    User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
    content-id: <soap-4C4DF1260912013BE10080009E344EB9sap.com>
    Content-Type: text/xml; charset=utf-8
    Content-Length: 316
    SOAPACTION: "http://webservices.kuehne-nagel.com/helloWorld/hello"
    It should be like SOAPAction : "http://webservices.kuehne-nagel.com/helloWorld/hello"
    How can I set/change it on XI/PI ?
    Regards,
    Rodolfo Miã

    Gourav,
    This is W3 Standard:
    HTTP verbs are case sensitive. (http://www.w3.org/TR/wsdl)
    In my case, the webservice provider was implemented in JAVA code and in Linux server. Java and Linux are case sensitive.
    I agree with you if we are working with .NET implementation.
    I  already have tried to consume a .Net asmx webservice and works fine.

  • Case sensitive field in to_date function

    update "Ab_Order" set "OrderDate" = to_date("Order Date String", 'yyyy/mm/dd)
    Here the OrderDate column is of type Date
    "Order Date String" is varchar2. Iam trying to copy the data from "Order Date String" which contains data in this format '2011/04/24' to OrderDate column to perform some date functions
    when I try to run this query it gives a error: ORA-01830: date format picture ends before converting entire input string
    So I tried to run this query by creating a test table wit 2 columns : update testtable set column1 = to_date(field1, 'yyyy/mm/dd')
    where column1 is date field and field1 is varchar2 and this worked.
    So Iam assuming this is the problem with case sensitive fieldnames . As far as i know we should include case sensitive fields in double quotes. Is there anything else to do wit the to_Date function. Can anyone please let me know how to do that.

    Hi,
    Welcome the the forum!
    882431 wrote:
    update "Ab_Order" set "OrderDate" = to_date("Order Date String", 'yyyy/mm/dd)It looks like you're missing a single-quote right before the last ')'.
    Here the OrderDate column is of type Date
    "Order Date String" is varchar2. Iam trying to copy the data from "Order Date String" which contains data in this format '2011/04/24' to OrderDate column to perform some date functions
    when I try to run this query it gives a error: ORA-01830: date format picture ends before converting entire input stringThat error occurs when when you have characters in the 1st argument that do not correspond to anything in the 2nd argument. For example:
    TO_DATE ( '30-Aug-2011 12:00'
         , 'dd-Mon-yyyy'
         )In this example, TO_DATE doesn;t know what to do with the ' 12:00' at the end of the 1st argument. According to the 2nd arguemnt, there's only supposed to be 11 characters in the string. So it raises the ORA-01830 error.
    So I tried to run this query by creating a test table wit 2 columns : update testtable set column1 = to_date(field1, 'yyyy/mm/dd')
    where column1 is date field and field1 is varchar2 and this worked.
    So Iam assuming this is the problem with case sensitive fieldnames . As far as i know we should include case sensitive fields in double quotes. Is there anything else to do wit the to_Date function. Can anyone please let me know how to do that.Case sensitive column names are a bad idea because they cause so amny problems, but I don't think this is one of those problems. It's more likely that you need to use SUBSTR (or some other string manipulation function) on "Order Date String" before using it in TO_DATE.
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables, so people can re-create the problem and test their ideas.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Always say which version of Oracle you're using.

  • How do I make the my login page username field not case-sensitive?

    Can anyone tell me how to make my username field not case-sensitive?
    This is my code
    <html>
    <body>
    <%@ page import="java.sql.*" %>
    <%
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    Connection login = DriverManager.getConnection("jdbc:odbc:Testing","abc","abc");
    Statement stmtLogin = login.createStatement();
    String sqlLogin = "SELECT UserName, UserPassword FROM Users WHERE UserName='"+username+"'";
    ResultSet rsLogin = stmtLogin.executeQuery(sqlLogin);
    while(rsLogin.next())
    String suser = rsLogin.getString("UserName");
    String spass = rsLogin.getString("UserPassword");
    if(username.equals(suser) && password.equals(spass))
    HttpSession mysession = request.getSession(true);
    mysession.setAttribute("username",request.getParameter("username"));
    response.sendRedirect("hello.jsp");
    else if(!(username.equals(suser) && password.equals(spass)))
    response.sendRedirect("index.jsp?message=Invalid%20Username%20or%20Password");
    login.close();
    %>
    </body>
    </html>

    if(username.equalsIgnoreCase(suser) && password.equals(spass))Hope this helps!

  • Case sensitivity for text fields

    Does anyone know how to turn off case sensitivity for a text field??
    Your help is appreciated.

    Do you recommend another field type that can be used that does not use case sensitivity?
    Thank you

  • Case sensitive sql - table and field names

    I have a weird problem.
    I have a client which works with MS SQL SERVER 2000.
    database collation name is: Turkish_CI_AS
    at the beginning I have this sql statement:
    "select value from [OWNER].setting"
    but because this table exists in database as "SETTING", I get java.sql.SQLException -
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'setting'.
    while I change the sql statement to:
    "select VALUE from [OWNER].SETTING"
    it works ok.
    I uses also other databases, but it works ok with small letters.
    How can avoid this problem? should I change all the sql statements to
    upper case?
    I will appreciate any help.
    Thanks.

    I am not sure about case sensitivity of tables, but as a convention, I always use table names in UpperCase separated only by _.
    I don't remember this to be a problem with Oracle or Sybase.
    ***Annie***

  • In ALV Report Filter selection should be case sensitive

    Dear All,
    since one field is case sensitive in database table , i have to fetch that in alv report , but when i am applying  filter on that field its is simply fetching data with case description.  if its in caps it should fetch caps data but in   smaal case report showing no data
    Regards,
    Pankaj Vashista

    Hi,
    All text datas are case sensitive.
    To make it work perfectly You have to Use the Keyword translate to Upper Case than display
    Now filter can work.
    Without Transalation to Upper Case filter will not work.
    Regards
    Arbind

  • Problem in XI - JDBC (oracle) Scenario, case sensitive column name

    I had a XI -> JDBC scenario, connecting to a SQL server, where the query was being generated using Message Mapping (XML SQL Format),
    now the database has been migrated from SQL server to Oracle, and we are using the same XI scenario, but now the problem is, the query generated using message mapping doesnt work because it seems the query (UPDATE statement) requires the field name as having All capital letters, i mean the Column name in query to Oracle has become case sensitive,
    can u help me out

    Hi
    Oracle doesnt have restriction that Query has to be in uppercase for any column. But it is good go use Upper case for the Query.
    Use oracle editor to do the query if it is working fine and then use XML SQL in XI
    Check this thread SAP has given some
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/68a541a1166153e10000000a1553f6/frameset.htm
    Check FAQ on the JDBC adapter, see SAP Note 831162
    always useful Note
    Thanks
    Gaurav

  • Case sensitive statement in the select-statement

    Hi All,
    i have a table in the abap-dictionary filled with names...when i try to select them with the select-statement with condition:
    table-name_column like 'some_name'
    I have encountered some problems...the inquiry is case-sensitive. What i want to do is to read the value from the abap-dictionary table uppercase or lowercase and compare it with the needed value also translated in uppercase or lowercase.
    The only idea i have is to select all values of the dictionary table into an internal table and to translate the values there in uppercase or lowercase and then to loop trough it. But this approach would cost a lot of performance.
    Do someone has an other proposal?

    check...
    Select statement
    It would be difficult , because it is based on how data is stored in the data base , now consider the scenario of the system i am using , we can material description as 'test' or 'TEST' , 'Test' .
    If in your system there are only stored in either caps or small the you can perform the select twice .
    But i myself dont find it to be such a good solution , but you can give it a try
    There is one more solution specific to material description ,and that is in the table MAKT there is a field MAKTG , which stored the description in uppercase , so for this you can first convert the description to uppercase and then perform select on this field

  • How to get Case Sensitive Check Box at Search Page

    Hi Everyone,
    I am trying to get case sensitive check box at the bottom of the search page, for that we have to set any propert or we ahve to do anything else.
    Please Help!!!!
    Thanks,
    Amit

    Have never really thought of it. One thing you need to do is set the Case Insesitive Searching Option correclty in PeopleTools Options. I can't find any other setings. But it might have to do with the fields that are on your Search record. My guess is if any of the Search Fields are of type Character and format Mixedcase then the Case Sensitive check box will be displayed automatically.

  • Business Partner search (case sensitive)

    I create a Business Partner with the following details
    FirstName - Vikram
    LastName - Chandna
    When i search the created Business Partner via Tcode-FPP3 by name, the
    search is case In-Sensitive(i.e Font case doesn't matter)
    But, when i search the same in the Database table-BUT000 directly or in
    the SAP Query/Reports , the search is Case-Sensitive.
    Why?
    Thanks & Regards,
    Gagan

    Hi Gagan,
    The field BU_SORT1 in Table BUT000 which is for search option has data type as Character without Lowercase.If the Lowercase option (in the output characteristicks)  is ticked in the table, the sytem will allow you to search based on Lowercase as well.
    Regards
    Amitav

  • SOAPAction HTTP header case sensitive

    Hi gurus,
    I am trying to consume a webmethods java webservice via XI/PI NW2004 and when I send a request, PI send the soapaction field in uppercase.
    POST http://webservices.kuehne-nagel.com/HelloWorld_test HTTP/1.0
    Accept: /
    Host: https://webservices.kuehne-nagel.com/HelloWorld_test
    User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
    content-id: <soap-4C4DF1260912013BE10080009E344EB9sap.com>
    Content-Type: text/xml; charset=utf-8
    Content-Length: 316
    SOAPACTION: "http://webservices.kuehne-nagel.com/helloWorld/hello"
    It should be exactly like SOAPAction : "http://webservices.kuehne-nagel.com/helloWorld/hello"
    How can I set/change it on XI/PI ?
    Regards,
    Rodolfo Miã

    > The value of the required verb attribute indicates the HTTP verb. Common values are GET or POST, but others may be used. Note that HTTP verbs are case sensitive.
    This section does not say anything about HTTP headers. GET and POST are not headers, but HTTP methods.
    > Acording to my Webservice vendor, the SOAPAction are indicated into this section.
    This section has nothing to do with SOAPAction
    > Also, I am working with SAP Support and got this repply:
    > ... Yes, the value should be SOAPAction
    > instead of SOAPACTION....
    I do not comment this.
    You have now following possibilities:
    1. Convince your vendor to accept HTTP headers according to above mentioned RFC
    2. Convince SAP that to change SOAPAction
    Good luck.

Maybe you are looking for