<?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: Reading Table data - case in-sensetivity. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-table-data-case-in-sensetivity/m-p/8033616#M1610072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ameen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not write regular ABAP statements like sy-subrc check, IF condition and all in between EXEC SQL and ENDEXEC. Moreover you can use only host variables in native SQL. In your case it is :wa_user_mail (colon before the data object).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer the documentation of Native SQL in ABAP Keyword documentation (TCode ABAPDOCU) for more details. I think your idea to use native SQL with UPPER function is a good idea in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2011 03:24:14 GMT</pubDate>
    <dc:creator>SureshRa</dc:creator>
    <dc:date>2011-08-10T03:24:14Z</dc:date>
    <item>
      <title>Reading Table data - case in-sensetivity.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-table-data-case-in-sensetivity/m-p/8033615#M1610071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue  in reading data from table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue is : Need to read all recrods(upper, lower, alter) from 2 tables(join) depending on input value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with native sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC sql performing email_change.&lt;/P&gt;&lt;P&gt;SELECT usr21-bname usr21-persnumber  adr6-SMTP_SRCH adr6-smtp_addr INTO  wa_user_email&lt;/P&gt;&lt;P&gt;       from ( usr21 left OUTER JOIN adr6 on usr21-persnumber = adr6-persnumber )&lt;/P&gt;&lt;P&gt;       where UPPER(adr6-SMTP_addr) eq  v_addr.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE i000.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;endexec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting short dump for this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Ameen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 08:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-table-data-case-in-sensetivity/m-p/8033615#M1610071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-09T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Table data - case in-sensetivity.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-table-data-case-in-sensetivity/m-p/8033616#M1610072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ameen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not write regular ABAP statements like sy-subrc check, IF condition and all in between EXEC SQL and ENDEXEC. Moreover you can use only host variables in native SQL. In your case it is :wa_user_mail (colon before the data object).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer the documentation of Native SQL in ABAP Keyword documentation (TCode ABAPDOCU) for more details. I think your idea to use native SQL with UPPER function is a good idea in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 03:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-table-data-case-in-sensetivity/m-p/8033616#M1610072</guid>
      <dc:creator>SureshRa</dc:creator>
      <dc:date>2011-08-10T03:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Table data - case in-sensetivity.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-table-data-case-in-sensetivity/m-p/8033617#M1610073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ameen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify your code like this -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: exc_ref    TYPE REF TO cx_sy_native_sql_error,&lt;/P&gt;&lt;P&gt;        error_code TYPE n,&lt;/P&gt;&lt;P&gt;        error_text TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      EXEC SQL.&lt;/P&gt;&lt;P&gt;        SELECT usr21.bname,&lt;/P&gt;&lt;P&gt;               usr21.persnumber,&lt;/P&gt;&lt;P&gt;               adr6.smtp_srch,&lt;/P&gt;&lt;P&gt;               adr6.smtp_addr&lt;/P&gt;&lt;P&gt;        INTO :wa_user_email&lt;/P&gt;&lt;P&gt;        FROM ( usr21 left OUTER JOIN adr6 on usr21.persnumber = adr6.persnumber )&lt;/P&gt;&lt;P&gt;        WHERE UPPER(adr6.SMTP_addr) = :v_addr&lt;/P&gt;&lt;P&gt;      ENDEXEC.&lt;/P&gt;&lt;P&gt;    CATCH cx_sy_native_sql_error INTO exc_ref.&lt;/P&gt;&lt;P&gt;      error_text = exc_ref-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;      error_code = exc_ref-&amp;gt;sqlcode.&lt;/P&gt;&lt;P&gt;      CONCATENATE error_text ' SQL CODE:' error_code ' MSG:' exc_ref-&amp;gt;sqlmsg INTO error_text.&lt;/P&gt;&lt;P&gt;      MESSAGE error_text TYPE 'I'.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 11:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-table-data-case-in-sensetivity/m-p/8033617#M1610073</guid>
      <dc:creator>rakeshjain</dc:creator>
      <dc:date>2011-08-10T11:53:29Z</dc:date>
    </item>
  </channel>
</rss>

