<?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: select-options memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622069#M872597</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;There is a limitation for select-options memory.&lt;/P&gt;&lt;P&gt;The reason why one get the short dump for select statements like this is based on the system setting (memory allocation is normally 64KB) for variables in the select. &lt;/P&gt;&lt;P&gt;It doesnt matter when your field is camparing with select-options or manually entered long ranges of values. &lt;/P&gt;&lt;P&gt;SAP doesnt advice to increase the memory allocation for Select statements as the execution time for this select may result a dead lock for other queries or other processes in queue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original SAP code was &lt;/P&gt;&lt;P&gt;"select from where field in s_option ".&lt;/P&gt;&lt;P&gt;which dumps with over 8,000 single entries. It's not a runtime error, as it dumps straight away, so presumably fails on the number of single values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see in SQL trace when the statement was executed successfully. Therefore if R3 throws dump because statement couldn't be accepted by database server if your select-options table is too big.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OSS note changed it to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select for all entries in S_OPTION where field = s_option_low.&lt;/P&gt;&lt;P&gt;which  doesnot dump , and the report displays all the entries selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the above statement and inform whether it works or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ammavajjala Narayana on Apr 2, 2008 8:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2008 18:11:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-02T18:11:04Z</dc:date>
    <item>
      <title>select-options memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622063#M872591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am processing a report and doing some validations thru select options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any limitations memory for select options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am processing here 2. million records and validation them thru selection option internal table(which contains low, high and option values).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 15:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622063#M872591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T15:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: select-options memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622064#M872592</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;  yes there is a limit to the size, if the select-options variable is used to select data from a table and if the data selection is of huge size..then there is a chance of having a short dump..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 16:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622064#M872592</guid>
      <dc:creator>nivin_varkey</dc:creator>
      <dc:date>2008-04-02T16:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: select-options memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622065#M872593</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; Yes there is a limit and the number is limited based on the memory ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 16:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622065#M872593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T16:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: select-options memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622066#M872594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MICR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Maximum limit select option can hold is 1624 entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this program , if u increase the do loop to 1625 or above it will give dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ychatest LINE-SIZE 350.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : mara.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_matnr FOR mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE mara.&lt;/P&gt;&lt;P&gt;DATA: END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 1600 TIMES.&lt;/P&gt;&lt;P&gt;s_matnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_matnr-option = 'BT'.&lt;/P&gt;&lt;P&gt;s_matnr-low = ''.&lt;/P&gt;&lt;P&gt;s_matnr-high = ''.&lt;/P&gt;&lt;P&gt;APPEND s_matnr.&lt;/P&gt;&lt;P&gt;CLEAR s_matnr.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM mara INTO TABLE itab WHERE matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : 'hi'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 16:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622066#M872594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: select-options memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622067#M872595</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;yaa there is a limitation for the memory over the select  options as said by chandrasekhar ...when ur prossing the more no of records to an internal table it is better to use the statement PACKAGE SIZE in the declaration of itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 17:09:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622067#M872595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T17:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: select-options memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622068#M872596</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 Chandra said, There is a limitation on the number of entries in the select options. The generated SQL command for your SELECT statement is too large as i understand it should not be more than some predefined bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are too many parameter values the program will dump with &lt;STRONG&gt;'SAPSQL_STMNT_TOO_LARGE'&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my experience the number of entries is roughly around 1600. But i think Chandrasekhar should be right in the exact count, i feel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 17:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622068#M872596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T17:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: select-options memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622069#M872597</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;There is a limitation for select-options memory.&lt;/P&gt;&lt;P&gt;The reason why one get the short dump for select statements like this is based on the system setting (memory allocation is normally 64KB) for variables in the select. &lt;/P&gt;&lt;P&gt;It doesnt matter when your field is camparing with select-options or manually entered long ranges of values. &lt;/P&gt;&lt;P&gt;SAP doesnt advice to increase the memory allocation for Select statements as the execution time for this select may result a dead lock for other queries or other processes in queue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original SAP code was &lt;/P&gt;&lt;P&gt;"select from where field in s_option ".&lt;/P&gt;&lt;P&gt;which dumps with over 8,000 single entries. It's not a runtime error, as it dumps straight away, so presumably fails on the number of single values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see in SQL trace when the statement was executed successfully. Therefore if R3 throws dump because statement couldn't be accepted by database server if your select-options table is too big.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OSS note changed it to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select for all entries in S_OPTION where field = s_option_low.&lt;/P&gt;&lt;P&gt;which  doesnot dump , and the report displays all the entries selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the above statement and inform whether it works or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ammavajjala Narayana on Apr 2, 2008 8:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 18:11:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-memory/m-p/3622069#M872597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T18:11:04Z</dc:date>
    </item>
  </channel>
</rss>

