<?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: Upper / Lower case using SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003605#M77116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See my earlier reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fisrt select from db table ( based on other restrictions) in an internal table .&lt;/P&gt;&lt;P&gt;Then translate both fields from Db and the field in your work area to Uppercase and then compare the strings to validate .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From database you will get more records than what you desire which you can delete from internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2005 09:56:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-19T09:56:46Z</dc:date>
    <item>
      <title>Upper / Lower case using SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003601#M77112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to read a field out of a dbtable. The field contains e.g. a string like "a11B". During the sql selection i would like to use upper or lower case to transform the string to "A11B":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT...WHERE UPPER(attribute) IN range_variable.&lt;/P&gt;&lt;P&gt;Can somebody say how this command looks like in abap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't found a command for abap like UPPER() or UCASE() using mysql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;help&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 08:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003601#M77112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T08:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Upper / Lower case using SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003602#M77113</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;You cannot use upper/ lower case  in SQL statements .&lt;/P&gt;&lt;P&gt;Instead you will have to select and then validate transalating to upper or lower case .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 08:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003602#M77113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T08:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Upper / Lower case using SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003603#M77114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should first TRANSLATE (attribute) TO UPPER CASE then pass it to the SQL statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 09:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003603#M77114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T09:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Upper / Lower case using SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003604#M77115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx for your answers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i transalte first the attribute to upper or lower case, i will get either "A11B" or "a11b" but the information of the dbfield is "a11B" and nothing will be selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 09:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003604#M77115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T09:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Upper / Lower case using SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003605#M77116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See my earlier reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fisrt select from db table ( based on other restrictions) in an internal table .&lt;/P&gt;&lt;P&gt;Then translate both fields from Db and the field in your work area to Uppercase and then compare the strings to validate .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From database you will get more records than what you desire which you can delete from internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 09:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003605#M77116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T09:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Upper / Lower case using SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003606#M77117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put the data first into an internal table.&lt;/P&gt;&lt;P&gt;then loop at the internal table, and find the attribute... something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select.... into corresponding fields of table i_tab....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tab.&lt;/P&gt;&lt;P&gt;translate i_tab-attribute to uppercase.&lt;/P&gt;&lt;P&gt;...do something...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 10:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003606#M77117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T10:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Upper / Lower case using SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003607#M77118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok thx, what a shame that i can't use only a select. now i will use a internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 11:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003607#M77118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T11:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Upper / Lower case using SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003608#M77119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if native sql has command sequence for select .. upper() then you could use the same in ABAP context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out the key word documentation of&lt;/P&gt;&lt;P&gt;EXEC SQL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 11:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003608#M77119</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-09-19T11:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Upper / Lower case using SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003609#M77120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on you database system, you can use native SQL. For Oracle:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report ztest no standard page heading.
tables lfa1.
data: name like lfa1-name1 value 'TEST'.
EXEC SQL.
  SELECT *
  INTO :LFA1
  FROM  LFA1
  WHERE UPPER(NAME1)  =  :NAME
ENDEXEC.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will select where the name is "Test" or "TEST" or other combinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2005 15:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003609#M77120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-19T15:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Upper / Lower case using SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003610#M77121</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Apparently you can but you have to be on 7.51 ABAP version.&lt;/P&gt;&lt;P&gt;Here is the example from SAP: &lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abensql_function_upper_abexa.htm" target="test_blank"&gt;https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abensql_function_upper_abexa.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Nemanja&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 08:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upper-lower-case-using-sql/m-p/1003610#M77121</guid>
      <dc:creator>NemanjaSimovic</dc:creator>
      <dc:date>2022-07-14T08:56:35Z</dc:date>
    </item>
  </channel>
</rss>

