<?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: SQL Sentence Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-sentence-error/m-p/5426538#M1245215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes for an SQL statement a range can only have a finite number of entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the FOR ALL ENTRIES command instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2009 13:44:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-25T13:44:33Z</dc:date>
    <item>
      <title>SQL Sentence Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-sentence-error/m-p/5426537#M1245214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to execute this sentence : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT   PERNR&lt;/P&gt;&lt;P&gt;               BEGDA&lt;/P&gt;&lt;P&gt;               ZZCPRENDA&lt;/P&gt;&lt;P&gt;               ZZDPRENDA&lt;/P&gt;&lt;P&gt;               ZZTPRENDA&lt;/P&gt;&lt;P&gt;               ZZPROV    from ZPREN_EMP_FUNC into (wa_entr-n_pers,&lt;/P&gt;&lt;P&gt;                                                   wa_entr-frecog,&lt;/P&gt;&lt;P&gt;                                                   wa_entr-cod_prenda,&lt;/P&gt;&lt;P&gt;                                                   wa_entr-descrip,&lt;/P&gt;&lt;P&gt;                                                   wa_entr-tall_r,&lt;/P&gt;&lt;P&gt;                                                   wa_entr-origen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                                                   where subty = '0003' and begda &amp;gt;= ran_f-low and begda &amp;lt;= ran_f-high&lt;/P&gt;&lt;P&gt;                                                   and pernr in num_per.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But It gives me and SQL error 'Error in module RSQL of the database interface'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is all because of the num_per table. It contains 3001 regs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve it ? Should I modify the maximum size of the SQL statement ? or even the space?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 13:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-sentence-error/m-p/5426537#M1245214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T13:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Sentence Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-sentence-error/m-p/5426538#M1245215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes for an SQL statement a range can only have a finite number of entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the FOR ALL ENTRIES command instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 13:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-sentence-error/m-p/5426538#M1245215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T13:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Sentence Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-sentence-error/m-p/5426539#M1245216</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 this OSS note 13607. It describes how SAP rewrites OpenSQL statement with ranges into SQL query for DB server and why there is technical limitation of number of items in range. You can try to use FOR ALL ENTRIES or split you select into more select where you will split your range into smaller chunks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 23:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-sentence-error/m-p/5426539#M1245216</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-03-25T23:02:53Z</dc:date>
    </item>
  </channel>
</rss>

