<?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 Error during runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510721#M235572</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;We have a problem with the following code. The code works fine for less number of data, however when there is huge data it dumps giving the following error CX_SY_OPEN_SQL_DB. In the dump the following are given the possible causes of errors.&lt;/P&gt;&lt;P&gt; The maximum size of an SQL statement has been exceeded.           &lt;/P&gt;&lt;P&gt; The statement contains too many input variables.                  &lt;/P&gt;&lt;P&gt; The space needed for the input data exceeds the available memory. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The code where the dump occurs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln vkorg pkunag kdgrp bzirk pkunrg           &lt;/P&gt;&lt;P&gt;           matnr posnr SUM( kzwi3 ) SUM( kzwi4 ) SUM( kzwi5 ) &lt;/P&gt;&lt;P&gt;     INTO TABLE t_s502                                      &lt;/P&gt;&lt;P&gt;     FROM s502&lt;/P&gt;&lt;P&gt;     WHERE ssour  EQ space                                   &lt;/P&gt;&lt;P&gt;      AND vrsio  IN s_vrsio                                 &lt;/P&gt;&lt;P&gt;      AND spmon  EQ '000000'                                &lt;/P&gt;&lt;P&gt;      AND sptag  EQ '00000000'                             &lt;/P&gt;&lt;P&gt;      AND spwoc  EQ '000000'                               &lt;/P&gt;&lt;P&gt;      AND spbup  IN s_spbup&lt;/P&gt;&lt;P&gt;      AND vkorg  IN s_vkorg                                &lt;/P&gt;&lt;P&gt;      AND kdgrp  IN r_kdgrp                                 &lt;/P&gt;&lt;P&gt;      AND bzirk  IN r_bzirk                                 &lt;/P&gt;&lt;P&gt;      AND pkunag IN r_kunnr                                &lt;/P&gt;&lt;P&gt;       AND vbeln  IN s_vbeln&lt;/P&gt;&lt;P&gt;       AND matnr  IN s_matnr&lt;/P&gt;&lt;P&gt;    GROUP BY vbeln vkorg pkunag kdgrp bzirk pkunrg matnr posnr.        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At runtime the r_kunnr has close to 7000 entries, s_spbup is for 6months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to encounter this problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Brain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Aug 2006 17:14:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-18T17:14:47Z</dc:date>
    <item>
      <title>Error during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510721#M235572</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;We have a problem with the following code. The code works fine for less number of data, however when there is huge data it dumps giving the following error CX_SY_OPEN_SQL_DB. In the dump the following are given the possible causes of errors.&lt;/P&gt;&lt;P&gt; The maximum size of an SQL statement has been exceeded.           &lt;/P&gt;&lt;P&gt; The statement contains too many input variables.                  &lt;/P&gt;&lt;P&gt; The space needed for the input data exceeds the available memory. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The code where the dump occurs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln vkorg pkunag kdgrp bzirk pkunrg           &lt;/P&gt;&lt;P&gt;           matnr posnr SUM( kzwi3 ) SUM( kzwi4 ) SUM( kzwi5 ) &lt;/P&gt;&lt;P&gt;     INTO TABLE t_s502                                      &lt;/P&gt;&lt;P&gt;     FROM s502&lt;/P&gt;&lt;P&gt;     WHERE ssour  EQ space                                   &lt;/P&gt;&lt;P&gt;      AND vrsio  IN s_vrsio                                 &lt;/P&gt;&lt;P&gt;      AND spmon  EQ '000000'                                &lt;/P&gt;&lt;P&gt;      AND sptag  EQ '00000000'                             &lt;/P&gt;&lt;P&gt;      AND spwoc  EQ '000000'                               &lt;/P&gt;&lt;P&gt;      AND spbup  IN s_spbup&lt;/P&gt;&lt;P&gt;      AND vkorg  IN s_vkorg                                &lt;/P&gt;&lt;P&gt;      AND kdgrp  IN r_kdgrp                                 &lt;/P&gt;&lt;P&gt;      AND bzirk  IN r_bzirk                                 &lt;/P&gt;&lt;P&gt;      AND pkunag IN r_kunnr                                &lt;/P&gt;&lt;P&gt;       AND vbeln  IN s_vbeln&lt;/P&gt;&lt;P&gt;       AND matnr  IN s_matnr&lt;/P&gt;&lt;P&gt;    GROUP BY vbeln vkorg pkunag kdgrp bzirk pkunrg matnr posnr.        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At runtime the r_kunnr has close to 7000 entries, s_spbup is for 6months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to encounter this problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Brain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 17:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510721#M235572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T17:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510722#M235573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Number of entries in r_kunnr is the reason for the dump. refer to oss 635318 for the size restrictions of sql statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to reduce the number of entries in r_kunnr or move kunnr into an itab and use for all entries in itab statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sridhar K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 17:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510722#M235573</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-18T17:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510723#M235574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can split a (too) large SELECT statement in smaller ones using the option &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT ... PACKAGE SIZE 1000.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; (e.g.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the "full" SELECT yields 7000 entries with the option above the selection will exceute 7 times the SELECT statement restricting the read data to 1000 entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This reduces the performance yet you omit the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;    Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 17:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510723#M235574</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-08-18T17:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510724#M235575</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 believe the IN will allow only for a certain limit..since sap converts open SQL to native SQL it cannot exceed the limit..I am not sure of the limit..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Instead of IN use For all entries for the customer range internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 17:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510724#M235575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T17:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510725#M235576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Uwe, i ll try to use the package size and i ll keep u posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the for all entries, i cant use it as i need duplicates as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Brain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 18:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-during-runtime/m-p/1510725#M235576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T18:17:30Z</dc:date>
    </item>
  </channel>
</rss>

