<?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: DBIF_RSQL_SQL_ERROR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514193#M1424094</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;This error usually occurs because SAP support a limited number of records in range selection. I'm not sure exactly whats the number it allows, i believe that it has to be less than 5000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select vbap~vbeln vbap~posnr into table itab_vbap
from vbap inner join vbak
on vbap~vbeln = vbak~vbeln
where vbak~auart = 'KB'
and vbap~vbeln in s_vbeln " Check # of records in s_vbeln
and vbap~posnr in s_posnr " Check # of records in s_posnr
and vbap~werks in s_werks " Check # of records in s_werks
and vbap~lgort in s_lgort " Check # of records in s_lgort
and vbap~matnr in s_matnr " Check # of records in s_matnr
and vbap~abgru 'SF'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gilberto Li on Jan 8, 2010 6:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2010 17:14:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-08T17:14:28Z</dc:date>
    <item>
      <title>DBIF_RSQL_SQL_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514190#M1424091</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 am getting rutime time error with DBIF_RSQL_SQL_ERROR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code written is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbap&lt;SUB&gt;vbeln vbap&lt;/SUB&gt;posnr into table itab_vbap&lt;/P&gt;&lt;P&gt;         from vbap inner join vbak&lt;/P&gt;&lt;P&gt;         on  vbap&lt;SUB&gt;vbeln = vbak&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;         where vbak~auart = 'KB'&lt;/P&gt;&lt;P&gt;           and vbap~vbeln in s_vbeln&lt;/P&gt;&lt;P&gt;           and vbap~posnr in s_posnr&lt;/P&gt;&lt;P&gt;           and vbap~werks in s_werks&lt;/P&gt;&lt;P&gt;           and vbap~lgort in s_lgort&lt;/P&gt;&lt;P&gt;           and vbap~matnr in s_matnr&lt;/P&gt;&lt;P&gt;           and vbap~abgru  &amp;lt;&amp;gt; 'SF'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  sort itab_vbap by vbeln posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dump is coming at SORT statement. &lt;/P&gt;&lt;P&gt;Can anyone help me in rectifying this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashwini Patil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 15:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514190#M1424091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T15:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_SQL_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514191#M1424092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashwini,&lt;/P&gt;&lt;P&gt;Can you elaborate the dump details.&lt;/P&gt;&lt;P&gt;Maybe the field order in internal table itab_vbap is not in the same sequence as VBELN and POSNR.&lt;/P&gt;&lt;P&gt;Or this selection is fetching a lot of records.&lt;/P&gt;&lt;P&gt;Can you paste the dump details?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 15:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514191#M1424092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T15:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_SQL_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514192#M1424093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, dump is in your SELECT.&lt;/P&gt;&lt;P&gt;Check the order of fields in your select and in structure of table itab_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 15:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514192#M1424093</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2010-01-08T15:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_SQL_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514193#M1424094</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;This error usually occurs because SAP support a limited number of records in range selection. I'm not sure exactly whats the number it allows, i believe that it has to be less than 5000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select vbap~vbeln vbap~posnr into table itab_vbap
from vbap inner join vbak
on vbap~vbeln = vbak~vbeln
where vbak~auart = 'KB'
and vbap~vbeln in s_vbeln " Check # of records in s_vbeln
and vbap~posnr in s_posnr " Check # of records in s_posnr
and vbap~werks in s_werks " Check # of records in s_werks
and vbap~lgort in s_lgort " Check # of records in s_lgort
and vbap~matnr in s_matnr " Check # of records in s_matnr
and vbap~abgru 'SF'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gilberto Li on Jan 8, 2010 6:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 17:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514193#M1424094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-08T17:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_SQL_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514194#M1424095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Ashwini , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

and vbap~abgru 'SF'

" should be 

and vbap~abgru = 'SF'

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2010 04:17:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514194#M1424095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-09T04:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: DBIF_RSQL_SQL_ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514195#M1424096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Ashwini Patil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;always&lt;/STRONG&gt; use SELECT .. INTO CORRESPONDING FIELDS OF TABLE ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some people say that this is a performance issue but they do not have any proof at all because it is simply not true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you are always on the safer side of life.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2010 14:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dbif-rsql-sql-error/m-p/6514195#M1424096</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-01-09T14:05:14Z</dc:date>
    </item>
  </channel>
</rss>

