<?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...endselect limit! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541384#M1072829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT a&lt;SUB&gt;werks b&lt;/SUB&gt;lifnr b&lt;SUB&gt;ekgrp a&lt;/SUB&gt;gjahr a&lt;SUB&gt;matnr a&lt;/SUB&gt;belnr a&lt;SUB&gt;buzei a&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;ebelp a&lt;/SUB&gt;bwart a&lt;SUB&gt;lfbnr a&lt;/SUB&gt;lfpos a&lt;SUB&gt;xblnr a&lt;/SUB&gt;budat a~menge&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;wrbtr a&lt;/SUB&gt;waers a&lt;SUB&gt;dmbtr a&lt;/SUB&gt;hswae a&lt;SUB&gt;bwtar b&lt;/SUB&gt;bsart&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF et_out&lt;/P&gt;&lt;P&gt;FROM ekbe AS a JOIN ekko AS b ON a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AND A&lt;SUB&gt;WERKS = B&lt;/SUB&gt;BUKRS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE a~belnr IN s_belnr AND&lt;/P&gt;&lt;P&gt;a~ebeln IN s_ebeln AND&lt;/P&gt;&lt;P&gt;b~lifnr IN s_lifnr AND&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;b~bsart IN g_r_bsart AND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;a~budat IN s_budat AND&lt;/P&gt;&lt;P&gt;a~vgabe = 1 AND&lt;/P&gt;&lt;P&gt;a~matnr IN s_matnr AND&lt;/P&gt;&lt;P&gt;a~werks = p_werks AND&lt;/P&gt;&lt;P&gt;b~ekgrp IN s_ekgrp AND&lt;/P&gt;&lt;P&gt;a~menge &amp;gt; 0 AND&lt;/P&gt;&lt;P&gt;a~bwart IN ('101','102','105','106','161','162','122','123') .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include other select .&lt;/P&gt;&lt;P&gt;ENDSELECT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this field g_r_bsart is a range table defined as ranges in the program? If so then check whether it is containing more than 1000 recs. If so then the dump is because of this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2008 11:31:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-24T11:31:39Z</dc:date>
    <item>
      <title>select...endselect limit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541381#M1072826</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;one report will occurs runtime error currently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Errors         DBIF_RSQL_INVALID_RSQL&lt;/P&gt;&lt;P&gt;Except.                CX_SY_OPEN_SQL_DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;occuring this runtime erorr of circumstance :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the inquiry's terms of the scope of the date of the bigger (the system used for a long time, and a large quantity of data up-to-date, the database will soon increase)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report code as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT a&lt;SUB&gt;werks b&lt;/SUB&gt;lifnr b&lt;SUB&gt;ekgrp a&lt;/SUB&gt;gjahr a&lt;SUB&gt;matnr a&lt;/SUB&gt;belnr a&lt;SUB&gt;buzei a&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;        a&lt;SUB&gt;ebelp a&lt;/SUB&gt;bwart a&lt;SUB&gt;lfbnr a&lt;/SUB&gt;lfpos a&lt;SUB&gt;xblnr a&lt;/SUB&gt;budat a~menge&lt;/P&gt;&lt;P&gt;        a&lt;SUB&gt;wrbtr a&lt;/SUB&gt;waers a&lt;SUB&gt;dmbtr a&lt;/SUB&gt;hswae a&lt;SUB&gt;bwtar b&lt;/SUB&gt;bsart&lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF et_out&lt;/P&gt;&lt;P&gt;   FROM ekbe AS a JOIN ekko AS b ON a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; AND A&lt;SUB&gt;WERKS = B&lt;/SUB&gt;BUKRS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   WHERE a~belnr IN s_belnr AND&lt;/P&gt;&lt;P&gt;         a~ebeln IN s_ebeln AND&lt;/P&gt;&lt;P&gt;         b~lifnr IN s_lifnr AND&lt;/P&gt;&lt;P&gt;         b~bsart IN g_r_bsart AND&lt;/P&gt;&lt;P&gt;         a~budat IN s_budat AND&lt;/P&gt;&lt;P&gt;         a~vgabe = 1        AND&lt;/P&gt;&lt;P&gt;         a~matnr IN s_matnr AND&lt;/P&gt;&lt;P&gt;         a~werks = p_werks  AND&lt;/P&gt;&lt;P&gt;         b~ekgrp IN s_ekgrp AND&lt;/P&gt;&lt;P&gt;         a~menge &amp;gt; 0        AND&lt;/P&gt;&lt;P&gt;         a~bwart IN ('101','102','105','106','161','162','122','123') .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    include other select .&lt;/P&gt;&lt;P&gt;  ENDSELECT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in debug I found that  this statement  can be perform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT a&lt;SUB&gt;werks b&lt;/SUB&gt;lifnr b&lt;SUB&gt;ekgrp a&lt;/SUB&gt;gjahr a&lt;SUB&gt;matnr a&lt;/SUB&gt;belnr a&lt;SUB&gt;buzei a&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;        a&lt;SUB&gt;ebelp a&lt;/SUB&gt;bwart a&lt;SUB&gt;lfbnr a&lt;/SUB&gt;lfpos a&lt;SUB&gt;xblnr a&lt;/SUB&gt;budat a~menge&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but loop again,in this statement occur runtime dump!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i want to know what limit about select ... endselect!&lt;/P&gt;&lt;P&gt;and it's working function!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 11:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541381#M1072826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T11:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect limit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541382#M1072827</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;Try to get this select query data into one internal table...and then loop on that int table. Or if you dont want to use loop again..then use FOR ALL ENTRIES IN previous table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use select...endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;werks b&lt;/SUB&gt;lifnr b&lt;SUB&gt;ekgrp a&lt;/SUB&gt;gjahr a&lt;SUB&gt;matnr a&lt;/SUB&gt;belnr a&lt;SUB&gt;buzei a&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;ebelp a&lt;/SUB&gt;bwart a&lt;SUB&gt;lfbnr a&lt;/SUB&gt;lfpos a&lt;SUB&gt;xblnr a&lt;/SUB&gt;budat a~menge&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;wrbtr a&lt;/SUB&gt;waers a&lt;SUB&gt;dmbtr a&lt;/SUB&gt;hswae a&lt;SUB&gt;bwtar b&lt;/SUB&gt;bsart&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF &lt;STRONG&gt;table&lt;/STRONG&gt;  &lt;STRONG&gt;it_out&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM ekbe AS a JOIN ekko AS b ON a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND A&lt;SUB&gt;WERKS = B&lt;/SUB&gt;BUKRS &lt;/P&gt;&lt;P&gt;WHERE a~belnr IN s_belnr AND&lt;/P&gt;&lt;P&gt;a~ebeln IN s_ebeln AND&lt;/P&gt;&lt;P&gt;b~lifnr IN s_lifnr AND&lt;/P&gt;&lt;P&gt;b~bsart IN g_r_bsart AND&lt;/P&gt;&lt;P&gt;a~budat IN s_budat AND&lt;/P&gt;&lt;P&gt;a~vgabe = 1 AND&lt;/P&gt;&lt;P&gt;a~matnr IN s_matnr AND&lt;/P&gt;&lt;P&gt;a~werks = p_werks AND&lt;/P&gt;&lt;P&gt;b~ekgrp IN s_ekgrp AND&lt;/P&gt;&lt;P&gt;a~menge &amp;gt; 0 AND&lt;/P&gt;&lt;P&gt;a~bwart IN ('101','102','105','106','161','162','122','123') .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select........&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Kuldeep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kuldeep Mane on Sep 24, 2008 5:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 11:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541382#M1072827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T11:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect limit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541383#M1072828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; When the inquiry's terms of the scope of the date of the bigger &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try pasting the short dump section "error analysis" here, but I cannot guarantee anything...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 11:30:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541383#M1072828</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-09-24T11:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect limit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541384#M1072829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT a&lt;SUB&gt;werks b&lt;/SUB&gt;lifnr b&lt;SUB&gt;ekgrp a&lt;/SUB&gt;gjahr a&lt;SUB&gt;matnr a&lt;/SUB&gt;belnr a&lt;SUB&gt;buzei a&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;ebelp a&lt;/SUB&gt;bwart a&lt;SUB&gt;lfbnr a&lt;/SUB&gt;lfpos a&lt;SUB&gt;xblnr a&lt;/SUB&gt;budat a~menge&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;wrbtr a&lt;/SUB&gt;waers a&lt;SUB&gt;dmbtr a&lt;/SUB&gt;hswae a&lt;SUB&gt;bwtar b&lt;/SUB&gt;bsart&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF et_out&lt;/P&gt;&lt;P&gt;FROM ekbe AS a JOIN ekko AS b ON a&lt;SUB&gt;ebeln = b&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AND A&lt;SUB&gt;WERKS = B&lt;/SUB&gt;BUKRS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE a~belnr IN s_belnr AND&lt;/P&gt;&lt;P&gt;a~ebeln IN s_ebeln AND&lt;/P&gt;&lt;P&gt;b~lifnr IN s_lifnr AND&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;b~bsart IN g_r_bsart AND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;a~budat IN s_budat AND&lt;/P&gt;&lt;P&gt;a~vgabe = 1 AND&lt;/P&gt;&lt;P&gt;a~matnr IN s_matnr AND&lt;/P&gt;&lt;P&gt;a~werks = p_werks AND&lt;/P&gt;&lt;P&gt;b~ekgrp IN s_ekgrp AND&lt;/P&gt;&lt;P&gt;a~menge &amp;gt; 0 AND&lt;/P&gt;&lt;P&gt;a~bwart IN ('101','102','105','106','161','162','122','123') .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include other select .&lt;/P&gt;&lt;P&gt;ENDSELECT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this field g_r_bsart is a range table defined as ranges in the program? If so then check whether it is containing more than 1000 recs. If so then the dump is because of this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 11:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541384#M1072829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T11:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect limit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541385#M1072830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you first retrive data from one table in an internal table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;noe use as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab1[] is not initial.&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF et_out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for all entries in itab1&lt;/P&gt;&lt;P&gt;where &amp;lt;field&amp;gt; = itab1-&amp;lt;field&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 11:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541385#M1072830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T11:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect limit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541386#M1072831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Joyjit Ghosh  ! thank you!&lt;/P&gt;&lt;P&gt;your answer is right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this select statement responce time is very long!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in select .... endselect statement have what limit!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 11:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541386#M1072831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T11:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect limit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541387#M1072832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per my knowledge it has no limit. But I am not sure, may be someone can validate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 06:26:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541387#M1072832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T06:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect limit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541388#M1072833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you your answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 06:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541388#M1072833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T06:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: select...endselect limit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541389#M1072834</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 also have faced such a problem in one join , and is due to the &lt;/P&gt;&lt;P&gt;number of records in a range table . In my case the range table containing more than 3000 records , when i reduce the records to nearly 2220 , the join works for me . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ratheesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2008 06:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-endselect-limit/m-p/4541389#M1072834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-25T06:46:42Z</dc:date>
    </item>
  </channel>
</rss>

