<?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: Maximum size of an SQL statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686721#M1292395</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 are getting this dump because maybe your entries are huge and it might have exceeded the buffer space of the table. You have to ask your basis team to increase the size of the buffer space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can segregate the range values into smaller ranges and fetch from the database accordingly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the size of the table space in DB02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or please refer this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="731818"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sneha singhania on Jun 12, 2009 4:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2009 10:22:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-12T10:22:16Z</dc:date>
    <item>
      <title>Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686720#M1292394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we get a short dump with runtime error DBIF_RSQL_SQL_ERROR and exception CX_SY_OPEN_SQL_DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dump occurs at the following select statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        select * from /rtc/tm_inuse&lt;/P&gt;&lt;P&gt;          appending table gt_zrtc4inuse&lt;/P&gt;&lt;P&gt;          where obj_name in lv_sel_copy&lt;/P&gt;&lt;P&gt;            and trkorr ne p_trkorr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We think the problem is the number of entries in the range table lv_sel_copy so that the maximum size of the SQL statement is reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how likely is the maximum size ?&lt;/P&gt;&lt;P&gt;Depends the size on the data base ? We are using MaxDB 7.6, MaxDB 7.7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we determine the maximum size so that we can calculate the nubmer of entries in the range tabel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other idea or solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Arnfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 10:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686720#M1292394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T10:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686721#M1292395</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 are getting this dump because maybe your entries are huge and it might have exceeded the buffer space of the table. You have to ask your basis team to increase the size of the buffer space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can segregate the range values into smaller ranges and fetch from the database accordingly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the size of the table space in DB02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or please refer this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="731818"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sneha singhania on Jun 12, 2009 4:01 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 10:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686721#M1292395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T10:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686722#M1292396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use 'package size' in your query&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 10:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686722#M1292396</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-06-12T10:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686723#M1292397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Communicate with the basis team to increase the buffer size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Renu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 10:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686723#M1292397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T10:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686724#M1292398</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;I used 'package size'  without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arnfried Dötsch on Jun 12, 2009 12:33 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 10:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686724#M1292398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T10:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686725#M1292399</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 can see the size of the table space in DB02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or please refer this thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="731818"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try these..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 10:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686725#M1292399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T10:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686726#M1292400</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;which is the parameter to increase the buffer size ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can a see if the buffer size is to small ? (SysLog, ST02,...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 10:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686726#M1292400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T10:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686727#M1292401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has nothing to do with buffer size or DB02. As you suggested, your SQL statement grew to big due to many entries in the selection range. I don't know where the exact limit in KByte is quoted, probably somewhere in the MaxDB documentation. There is dedicated forums for this here on SCN. With Oracle, the problem occurs from 2000 or 3000 single values upwards, depending on circumstances.&lt;/P&gt;&lt;P&gt;A workaround could be to use a select statement with FOR ALL ENTRIES and an internal table rather than a range. You would have to transfer the values from the range to the internal table beforehand. This  might be a little complex if the ranges contain more than just single values.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 10:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686727#M1292401</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-06-12T10:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686728#M1292402</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;As this is the issue of the memory, you can contact your basis team for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 11:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686728#M1292402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T11:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686729#M1292403</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; Have a look at this SAP note. Might be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note 635318 - Open SQL: Size restrictions for commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 11:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686729#M1292403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T11:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686730#M1292404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably you get a short dump because your SQL statement exceeds the maximum number of 2090 rows(see error with transaction ST11 double click at dev_w0 ). Check  the number of entries into selection option &lt;STRONG&gt;lv_sel_copy&lt;/STRONG&gt; try to change your selection by using the option &lt;STRONG&gt;for all entries in table&lt;/STRONG&gt; replacing the &lt;STRONG&gt;in lv_sel_copy&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 12:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686730#M1292404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T12:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum size of an SQL statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686731#M1292405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the statement "for all entries in" it works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2009 07:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-size-of-an-sql-statement/m-p/5686731#M1292405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-16T07:32:41Z</dc:date>
    </item>
  </channel>
</rss>

