<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Case Insensitive Select Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198629#M762240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like Problem is not with your select statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check the Domain of the concerned field. There will be a characteristic check box called "lower case" in the Definition tab of your domain. See if that is Flagged. If that is flagged, then the stored record will be case sensitive. In best practice, you should not have that flagged, So that the records will not be case sensitive and you will not have to face a similar situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Dec 2007 14:55:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-28T14:55:49Z</dc:date>
    <item>
      <title>Case Insensitive Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198628#M762239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have requirement that i have to fetch data from database table without considering whether it is upper case or lower case. For example, if user is giving Name1 on selection screen as "Micro", i want all record from database whether it is "micro" or "MICRO" or "mICro" and so on. Please guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Braham Mittal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 12:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198628#M762239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T12:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Case Insensitive Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198629#M762240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like Problem is not with your select statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check the Domain of the concerned field. There will be a characteristic check box called "lower case" in the Definition tab of your domain. See if that is Flagged. If that is flagged, then the stored record will be case sensitive. In best practice, you should not have that flagged, So that the records will not be case sensitive and you will not have to face a similar situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vinodh Balakrishnan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 14:55:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198629#M762240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T14:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Case Insensitive Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198630#M762241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Braham,&lt;/P&gt;&lt;P&gt;Apart from Vinodh's suggestion, if there are records already, then&lt;/P&gt;&lt;P&gt;probably you can think &lt;/P&gt;&lt;P&gt;1. Reading the records into an Internal table(probably any additional filtering might help to reduce data).&lt;/P&gt;&lt;P&gt;2. Convert the Name1 field to UPPERCASE by using TRANSLATE statement&lt;/P&gt;&lt;P&gt;3. Do your comparision in UPPER case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not a nice way but probably you can keep it as an option....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should do it if the number of records are not that really large...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Subhakanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 15:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198630#M762241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T15:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Case Insensitive Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198631#M762242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Braham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is one way to code case insensitive select statemets...&lt;/P&gt;&lt;P&gt;To be more accurate also check the string length of the user inputs with that of the corresponding database field... In reference to your example, check the strlen(micro) with its counterpart in the database tables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zmamata NO STANDARD PAGE HEADING .&lt;/P&gt;&lt;P&gt;DATA : wa_adrp TYPE adrp,&lt;/P&gt;&lt;P&gt;           it_adrp TYPE TABLE OF adrp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : p_name TYPE adrp-name_text .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM adrp&lt;/P&gt;&lt;P&gt;         INTO TABLE it_adrp&lt;/P&gt;&lt;P&gt;        WHERE name_text NE space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_adrp INTO wa_adrp .&lt;/P&gt;&lt;P&gt;  IF wa_adrp CS p_name.&lt;/P&gt;&lt;P&gt;    WRITE : / wa_adrp-name_text , wa_adrp-persnumber .&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CLEAR : wa_adrp.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do reward points if this suggestion helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mamata Swamy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mamata Swamy on Jan 4, 2008 6:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 05:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198631#M762242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T05:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Case Insensitive Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198632#M762243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      Open SQL does not support this, you cannot write a select statement which will compare aginst a database record in case insensitive manner. What you can do at the most is convert your variable to UPPER CASE and compare aginst the database filed if the database field is case insensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But open SQL does not support this if the database field is case sensitve. You cannot compare a case sensitive filed in the database ignoring the case. I found this strange but its the fact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 05:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198632#M762243</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2008-01-04T05:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Case Insensitive Select Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198633#M762244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.. what you said is correct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then there is some data in tables like ....Havana and HAVANA... both are available in tables ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then how convert directly..to uppercase or and lowercase.. then data will fetched from database was completely wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Aug 2015 04:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/case-insensitive-select-statement/m-p/3198633#M762244</guid>
      <dc:creator>ajay_rajareddy</dc:creator>
      <dc:date>2015-08-23T04:54:03Z</dc:date>
    </item>
  </channel>
</rss>

