<?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 maximum limit??? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792459#M340813</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; thanks for sharing the information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2006 14:53:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-28T14:53:12Z</dc:date>
    <item>
      <title>Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792452#M340806</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;        I guess there is a maximum limit that a select-options can hold. If so, what is the maximum number of single values that it can hold upto?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 14:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792452#M340806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T14:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792453#M340807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dont think, There will be maximum limit for SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;As its a kind of internal table, so everytime it will increase the memory size like internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs&lt;/P&gt;&lt;P&gt;Manas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 14:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792453#M340807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T14:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792454#M340808</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 SELECT-OPTIONS are internal tables. The rules applied to number of lines to an internal table will also applicable to SELECT-OPTIONS too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The characterctis of an internal table in number of lines:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The only restriction on the number of lines an internal table may contain are the limits of your system installation. The maximum memory that can be occupied by an internal table (including its internal administration) is 2 gigabytes. A more realistic figure is up to 500 megabytes. An additional restriction for hashed tables is that they may not contain more than 2 million entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 14:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792454#M340808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T14:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792455#M340809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;i guess it is around 1600 - 1700

chk this program , if u increase the do loop to 1800 it will give dump



REPORT ychatest LINE-SIZE 350.

TABLES : mara.
SELECT-OPTIONS : s_matnr FOR mara-matnr.

DATA : BEGIN OF itab OCCURS 0.
        INCLUDE STRUCTURE mara.
DATA:    END OF itab.

DO 1600 TIMES.
  s_matnr-sign = 'I'.
  s_matnr-option = 'BT'.
  s_matnr-low = ''.
  s_matnr-high = ''.
  APPEND s_matnr.
  CLEAR s_matnr.
ENDDO.

SELECT  * FROM mara INTO TABLE itab WHERE matnr IN s_matnr.

WRITE : 'hi'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 14:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792455#M340809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T14:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792456#M340810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, there is a limit to the number of single values which the program can handle.  It may depend on the system, but in my system, I believe it is somewhere between 800 - 1100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 14:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792456#M340810</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-28T14:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792457#M340811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;limit is somewhere between 1000 - 1100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 14:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792457#M340811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T14:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792458#M340812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot. I tested the sample code. It doesn't take anything more than 1624. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know whether it varies from system to system but in my system it takes maximum of 1624. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 14:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792458#M340812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T14:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792459#M340813</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; thanks for sharing the information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 14:53:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792459#M340813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T14:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792460#M340814</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;It's good to know that the maximum differs from table to table or should I say per data element. Thing is that all entries in the select-options are expanded in the SQL statement that is generated. The SQL statement passed to the database has its size limitations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read SAP note 635318 : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constructs with SELECT-OPTIONS (or RANGE tables), for example, "WHERE id IN itab", look completely different in the database.These constructs are converted to an AND/OR tree:all 'E' rows are linked with AND and all 'I' rows with OR.These two parts are then linked with AND.Depending on the database system, you can also map the I rows to IN (val1, val2, and so on) if they all have the operator 'EQ'. For a condition created in this way, points 1 and 2 apply.&lt;/P&gt;&lt;P&gt;The length of the statement in the database must not exceed 28672 characters (with Unicode, 14336 characters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;jeroen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 15:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792460#M340814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T15:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792461#M340815</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;But I have used more than 5000 Single Values in Table Selection Screen.. Even I don't think there would be any maximum limit. Can you make me clear in this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 13:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792461#M340815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-13T13:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792462#M340816</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; &lt;SPAN class="L0S52"&gt;TABLES &lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;mara&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;SELECT-OPTIONS &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;s_matnr &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;mara&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;itab &lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INCLUDE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE &lt;/SPAN&gt;mara&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;DO &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4800 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TIMES&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; s_matnr&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;sign &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'I'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; s_matnr&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;option &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'BT'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; s_matnr&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;low &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;''&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; s_matnr&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;high &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;''&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;/SPAN&gt;s_matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLEAR &lt;/SPAN&gt;s_matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ENDDO&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;SELECT&amp;nbsp; &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;mara &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;itab &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;matnr &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;s_matnr&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'hi'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;For my case it working fine. what will be the correct.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 13:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792462#M340816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-13T13:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792463#M340817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="64060" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 14:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792463#M340817</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2013-06-13T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792464#M340818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the age of the thread, apparently SAP has evolved over this time to allow more entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have run into the size limit on SQL statements in DBIF_RSQL_INVALID_RSQL when the selection table and the query were both large.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792464#M340818</guid>
      <dc:creator>dave_price</dc:creator>
      <dc:date>2015-03-24T18:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792465#M340819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The restriction is actually a database restriction, not SAP. See the note mentioned above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 18:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792465#M340819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-24T18:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792466#M340820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Databases do not limit SQL statements to &lt;SPAN style="color: #333333; font-size: 12px;"&gt;28672 characters, at least not since around version 9 of Oracle (and even in 8 it apparently wasn't enforced&amp;nbsp; &lt;A href="https://asktom.oracle.com/pls/asktom/f?p=100:11:0%3A%3A%3A%3AP11_QUESTION_ID:41742083561301" title="https://asktom.oracle.com/pls/asktom/f?p=100:11:0%3A%3A%3A%3AP11_QUESTION_ID:41742083561301"&gt;Ask Tom &amp;amp;amp;quot;maximum length of sql statement&amp;amp;amp;quot;&lt;/A&gt; ).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what the limit is in SAP6.0 or whether it is an SAP parameter, but I managed to blow it up by sending multiple selection-tables, one of which would break it with a few hundred rows, into a query against around fourteen different tables.&amp;nbsp; As it happened it was a non-issue for us because they really wanted everything in that situation, so we just gave them that as an option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792466#M340820</guid>
      <dc:creator>dave_price</dc:creator>
      <dc:date>2015-03-24T19:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792467#M340821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From note &lt;SPAN style="font-size: 10pt;"&gt;635318 :&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="j-thread-post j-rc4"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Caution: Individual database systems limit this area to 32,000 bytes. A machine-independent program may therefore not use more than 32,000 bytes for the comparison values in the WHERE, HAVING or ON condition of a command.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;But this note is 9 years old. I haven't seen this problem in a while (DB6).&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Rob&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;And I ran a quick test to see what might happen. I was able to run a SELECT with a range containing 15,000 entries, but it dumped with 16,000 entries.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;So I guess that SAP may have a hard limit on the size of a SELECT-OPTION, but that it is based on underlying database limitations.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 19:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792467#M340821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-03-24T19:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options maximum limit???</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792468#M340822</link>
      <description>&lt;P&gt;The limit depends entirely on how you are using the select-options table.  Because it is a table you can load any number of rows into it, but if you subsequently apply it for use against an SQL select statement, or as a table parameter passed to another program, which then applies it against an SQL select statement, then you are limited by the length of the SQL statement that will be generated.  &lt;/P&gt;&lt;P&gt;Each Select-Options row will translate into code expanding the length of the SQL select statement, and so the more rows you have, the longer the resulting select statement will become.  Also, the longer each data item in the select-options is, the longer the statement will become.&lt;/P&gt;&lt;P&gt;It is because of the fact that the data length of each select-option entry impacts the length, that people have given different limits in above posts, as the length directly impacts how many entries can be processed into the selection statement before it blows its limit.&lt;/P&gt;&lt;P&gt;You cannot see the resulting select statement, as the translation of the select-options into the IN clause is done behind the scenes.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 21:35:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-maximum-limit/m-p/1792468#M340822</guid>
      <dc:creator>stephenl1</dc:creator>
      <dc:date>2020-07-16T21:35:42Z</dc:date>
    </item>
  </channel>
</rss>

