<?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: Select clause where comparison String in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416841#M1243622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said, native SQL should work. Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES lfa1.

DATA: name LIKE lfa1-name1 VALUE 'SMITH'.

EXEC SQL.
  SELECT *
  INTO :LFA1
  FROM  LFA1
  WHERE UPPER(NAME1)  =  :NAME
ENDEXEC.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2009 13:27:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-03T13:27:48Z</dc:date>
    <item>
      <title>Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416831#M1243612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have in the selection screen one Select-option without intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This select-option for one filed NAME (String).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my specific table, the name can be in upper case or low case or both like: Smith, SMITH or smith or SmiTh...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my case, in the table i have: "Smith" and when i put Smith in the select-option, in debugg i have "SMITH" so in the query Select, it doesn't return anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exists a way to do Select Upper(Field) = Parameter of the selection-screen? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exist other way apart from do the selection with other criteria and after a Loop and compare the Upper (Field) with the parameter of the selection screen? I want do it in the query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 20:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416831#M1243612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T20:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416832#M1243613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on your database, you may be able to use native SQL to do this. What database are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 21:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416832#M1243613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T21:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416833#M1243614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: so_name FOR makt-maktx LOWER CASE NO INTERVALS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 21:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416833#M1243614</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-02T21:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416834#M1243615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Database is ORACLE , Version 9.2.0.8.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J@Y, i Can't do the low case because, i can found the upper cas too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 09:26:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416834#M1243615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T09:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416835#M1243616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make the select option of the type data element of the field which are using in the select stmt to compare, so the select option will have the same values as you have entered in it.&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;Regards,&lt;/P&gt;&lt;P&gt;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 09:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416835#M1243616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T09:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416836#M1243617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sharin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So using the same data element will help but it will not be a full-proof solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this: The user can input 'Smith', 'SMITH', 'smith' in the sel. screen. But none of that will fetch data if you have 'sMiTh' in the DB table. I hope you understand the flaw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ OP: This is happening b'coz the DB field in consideration is "case sensitive". In the domain of the dataelement you can see that the checkbox: "Lowercase": is checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Apr 3, 2009 11:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 09:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416836#M1243617</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-04-03T09:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416837#M1243618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sharine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try it but doesn't work. Because in the Databse the name is Smith and in the paramater the name is "SMITH".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 10:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416837#M1243618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T10:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416838#M1243619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Exist other way apart from do the selection with other criteria and after a Loop and compare the Upper (Field) with the parameter of the selection screen? I want do it in the query?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Salhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this the best workaround i can think of. I donot know of any direct approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awaiting other responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 10:13:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416838#M1243619</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-04-03T10:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416839#M1243620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found the syntax "Lower Case". It works but the problem that we can't ask the user to write the text exactly like in the DB table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The councillor must be able to recuperate the record in all of the cases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Amal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 10:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416839#M1243620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T10:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416840#M1243621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for the matchcode field from the NAME in the DB table you are searching from.&lt;/P&gt;&lt;P&gt;Generally SAP use's these MATCH Code field to search the records depening on the name value as these fields stores the value in uppercase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: in KNA1 table the values which are stores in the NAME1 NAME2 ORT01 will be stored same in &lt;/P&gt;&lt;P&gt;MCOD1  MCOD2  MCOD3 but in upper case. So you can use these fields in searching data from the report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;NAME1 - MCOD1
NAME2 - MCOD2
ORT01 -MCOD2&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 10:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416840#M1243621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T10:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select clause where comparison String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416841#M1243622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said, native SQL should work. Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES lfa1.

DATA: name LIKE lfa1-name1 VALUE 'SMITH'.

EXEC SQL.
  SELECT *
  INTO :LFA1
  FROM  LFA1
  WHERE UPPER(NAME1)  =  :NAME
ENDEXEC.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 13:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-clause-where-comparison-string/m-p/5416841#M1243622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T13:27:48Z</dc:date>
    </item>
  </channel>
</rss>

