<?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: Native SQL didn't return the correct data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-didn-t-return-the-correct-data/m-p/11427006#M1927134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;col2 is initial value. &lt;SPAN style="font-size: 10pt;"&gt;I have also tried SE11, and enter 'ABC' as search criteria and get nothing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So why the data can be fetched if the where clause is col2 = 'ABC' in native SQL.&lt;/P&gt;&lt;P&gt;It's really strange.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 14:05:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-11-18T14:05:36Z</dc:date>
    <item>
      <title>Native SQL didn't return the correct data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-didn-t-return-the-correct-data/m-p/11427004#M1927132</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 got an issue when using native SQL.&lt;/P&gt;&lt;P&gt;I want to do case-insensitive fetching, so I am using native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In DB table, the data is like:&lt;/P&gt;&lt;P&gt;col1 col2&lt;/P&gt;&lt;P&gt;001 &lt;/P&gt;&lt;P&gt;002&lt;/P&gt;&lt;P&gt;col1 is key and col2 has intial value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In coding:&lt;/P&gt;&lt;P&gt;lv_abc = 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;select col1 from table into :gs_xxx where (upper)col2 = :lv_abc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Normally, you should have got no data.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But the odd thing is, I did get these 2 entries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have tried open SQL as well and I get nothing which is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So I am wondering why native SQL would return the wrong data set.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 09:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-didn-t-return-the-correct-data/m-p/11427004#M1927132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-18T09:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL didn't return the correct data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-didn-t-return-the-correct-data/m-p/11427005#M1927133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suppose those are not "initial" values (space, zeroes) but "null" values, so fulfill any check, try to add a criteria &lt;SPAN class="st"&gt;IS NOT NULL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-didn-t-return-the-correct-data/m-p/11427005#M1927133</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-11-18T10:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL didn't return the correct data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-didn-t-return-the-correct-data/m-p/11427006#M1927134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;col2 is initial value. &lt;SPAN style="font-size: 10pt;"&gt;I have also tried SE11, and enter 'ABC' as search criteria and get nothing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So why the data can be fetched if the where clause is col2 = 'ABC' in native SQL.&lt;/P&gt;&lt;P&gt;It's really strange.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-didn-t-return-the-correct-data/m-p/11427006#M1927134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-18T14:05:36Z</dc:date>
    </item>
  </channel>
</rss>

