<?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 abap database view not returning entries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071925#M1812084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a dbview with inner join for 4 base tables based on certain conditions.&lt;/P&gt;&lt;P&gt;Now the dbview in se11, if I try to retrieve the entries without giving&lt;/P&gt;&lt;P&gt;any condition, I am getting the entire records pretty fast enough ( hardly few kbs, 97000 records).&lt;/P&gt;&lt;P&gt;And the real issue occurs when I give an extra condtion for one of the field as equal to space, the data retrieval takes alot of time. &lt;/P&gt;&lt;P&gt;However for the same field if I give ne space, the data retrieval is fast.&lt;/P&gt;&lt;P&gt;Can anyone tell me if anything is wrong in using space as condition in the dbview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;select data from dbview where field eq space. -&amp;gt; takes ample time&lt;/P&gt;&lt;P&gt;where as select data from dbview where field ne space. -&amp;gt; super fast.&lt;/P&gt;&lt;P&gt;select data from dbview. -&amp;gt;also super fast. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints will be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Wangmo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Feb 2014 11:11:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-02-14T11:11:25Z</dc:date>
    <item>
      <title>abap database view not returning entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071925#M1812084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a dbview with inner join for 4 base tables based on certain conditions.&lt;/P&gt;&lt;P&gt;Now the dbview in se11, if I try to retrieve the entries without giving&lt;/P&gt;&lt;P&gt;any condition, I am getting the entire records pretty fast enough ( hardly few kbs, 97000 records).&lt;/P&gt;&lt;P&gt;And the real issue occurs when I give an extra condtion for one of the field as equal to space, the data retrieval takes alot of time. &lt;/P&gt;&lt;P&gt;However for the same field if I give ne space, the data retrieval is fast.&lt;/P&gt;&lt;P&gt;Can anyone tell me if anything is wrong in using space as condition in the dbview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;select data from dbview where field eq space. -&amp;gt; takes ample time&lt;/P&gt;&lt;P&gt;where as select data from dbview where field ne space. -&amp;gt; super fast.&lt;/P&gt;&lt;P&gt;select data from dbview. -&amp;gt;also super fast. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints will be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Wangmo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071925#M1812084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-14T11:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: abap database view not returning entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071926#M1812085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tenzin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the field that you are using to set as space and not equal space, part of an index in one of the tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using the SQL trace to see what the database is creating as the SQL statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 18:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071926#M1812085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-14T18:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: abap database view not returning entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071927#M1812086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check TCODE ST05 and use "Explain SQL". Here you can check how the DB will try to execute the query: which index(es) and field(s) will be used. There you will see the answer for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 17:22:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071927#M1812086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-16T17:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: abap database view not returning entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071928#M1812087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. I already have index for the column. I tried the SQL trace, couldn't find anything useful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing is If I give the condition &amp;lt;&amp;gt; space, it works perfectly fine. But when I give = space,&lt;/P&gt;&lt;P&gt;the performance goes for a toss.. I couldn't figure out exactly why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Wangmo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 04:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071928#M1812087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-18T04:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: abap database view not returning entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071929#M1812088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried st05, explain sql, couldn't find anything meaningful to fix the issue.&lt;/P&gt;&lt;P&gt;However I know which fields and indexes are being used.&lt;/P&gt;&lt;P&gt;I can't figure out where exactly the time takes for that particular condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Wangmo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 04:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071929#M1812088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-18T04:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: abap database view not returning entries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071930#M1812089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tenzin, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I asked about the index because, the use of a negative operator on a field in the index, "cannot be used for a search over a database index". &lt;EM&gt; From BC490 ABAP Performance Tuning&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, when you use '&amp;lt;&amp;gt;' you are causing the database optimizer to disregard the index and it is performing a full table scan. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use '=', the index is used by the database optimizer, making the search faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 13:35:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-database-view-not-returning-entries/m-p/10071930#M1812089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-18T13:35:43Z</dc:date>
    </item>
  </channel>
</rss>

