<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778698#M647679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the internal tables of SAP have some limitations...&lt;/P&gt;&lt;P&gt;so you can not give more that  few thousands of records at a time as input...&lt;/P&gt;&lt;P&gt;if u can give input as range .. &amp;amp; execute report in Background.. then your report should work fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 13:48:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T13:48:02Z</dc:date>
    <item>
      <title>Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778694#M647675</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 want to enter single values into Select-Options on the selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I sometimes need to enter more than 20,000 entries as single values in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I run the program for more than 6K single values I face a dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me how to remove this limitation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points for everyone...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 13:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778694#M647675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T13:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778695#M647676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the dump appear at the time of an SQL read. You need to use the FOR ALL ENTRIES command if that is the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know if you can do that using a read, so you will have to use an internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 13:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778695#M647676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778696#M647677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi grame,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. 20 K values... thats too high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The R/3 consutrcts the SQL for select options using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field1 = value1 or field2=value2&lt;/P&gt;&lt;P&gt;  field1 in (value1,value2) &lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The sql will be very long, if values will be high. and hence the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. use FOR ALL ENTRIES Instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 13:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778696#M647677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T13:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778697#M647678</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; The best way to get more entries is to upload using a file either in presentation or applicationserver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to use more entries in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DB has got its own limitations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viswanath Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 13:47:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778697#M647678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T13:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778698#M647679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the internal tables of SAP have some limitations...&lt;/P&gt;&lt;P&gt;so you can not give more that  few thousands of records at a time as input...&lt;/P&gt;&lt;P&gt;if u can give input as range .. &amp;amp; execute report in Background.. then your report should work fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 13:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778698#M647679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T13:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778699#M647680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I am buidling a wrapper program which passes on single values to selection screen of standard transaction CFM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think I can pass on using any other methods.. I dont think this works in background&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any basis settings for this ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 13:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778699#M647680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T13:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778700#M647681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 6K limit you are talking about is not a limitation on the Select-Options or on Ranges tables.  It is a limitation on the amount of SQL that can be sent to the database from the application server in a single Select command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simplest way to fix is to define a Ranges table the same as your select-options, and then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at sel_opt into wa_sel_opt.
w_count = w_count + 1.
append wa_sel_opt to range_tab.
if w_count &amp;gt; 500. "&amp;lt;&amp;lt; Choose appropriate number to keep below 6K
  select field1 field2   "&amp;lt;&amp;lt; fill in field names 
    from table
    APPENDING table it_result
    where field in range_tab.
    clear: range_tab[], w_count.
endif.
endloop.
if w_count &amp;gt; 0. "&amp;lt;&amp;lt; Get the last few records
  select field1 field1   "&amp;lt;&amp;lt; fill in field names 
    from table
    APPENDING table it_result
    where field in range_tab.
    clear: range_tab[], w_count.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should read the data quite efficiently if the field(s) in the where block match index / key fields.  Effectively you are breaking 20,000 entries up into sets of approx 500 (assuming 10 char each key this gives 5KB + for the SQL each time - longer fields = less keys).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other option is to convert list of single entries (I EQ in select-options table) into between groups (I BT).  If the 20,000 has a lot of sequential yalues then you can code this easily, but with gaps it gets messy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 14:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778700#M647681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T14:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778701#M647682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi andrew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the code.. this doesnt help me much because i have to finally submit these values to a standard transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was having another idea to split it up into multiple batches of 6K and process them in background mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;convert list of single entries (I EQ in select-options table) into between groups (I BT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even I have this thought but I need to write a lot of coding to determine whether they are in sequence or not. Anyways points for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 14:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-problem/m-p/2778701#M647682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T14:44:08Z</dc:date>
    </item>
  </channel>
</rss>

