<?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: SQL Statement error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement-error/m-p/3649796#M879068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi this is the good way i think....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please go to the site &lt;A href="https://community.sap.com/www.solutions.sap.com" target="test_blank"&gt;www.solutions.sap.com&lt;/A&gt; and post your error then you will get the exact answer...&lt;/P&gt;&lt;P&gt;&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>Tue, 08 Apr 2008 19:44:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T19:44:48Z</dc:date>
    <item>
      <title>SQL Statement error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement-error/m-p/3649793#M879065</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;I was trying to execute a standard function module in which there is a sql statement where IN operator is used.&lt;/P&gt;&lt;P&gt;The no of choices given for that field by the IN operator is 1065.&lt;/P&gt;&lt;P&gt;The error displayed is  the SQL statement generated from the SAP Open SQL statement violates a restriction imposed by the underlying database system of the ABAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I am reducing the no of choices for that filed to 1000 the function modules executes smoothly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now from all these I can understand that there is some restriction imposed by underlying database for the no of choices by IN operator in select statements. I want a way to override that restriction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module I was executing is 'K_PRCTR_VALUES_GET'. The error hits at line no 162 when the table t_selopt contains 1065 line items. Now this function modules gives us all the profit centers based on Profit-center group. So according to the current scenario for the respective profit-center group there are 1065 no. of profit centers. So there is no way that we can reduce the no. of profit centers for profit center group rather I have to find the other way out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will really appreciate the inputs. Please help me out in with this problem. Points will be awarded for good answer.&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;Piyush Kothari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 03:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement-error/m-p/3649793#M879065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T03:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statement error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement-error/m-p/3649794#M879066</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;pls ensure that the internal table that u have declared has occurs 10000 instead of occurs 0 and give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 17:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement-error/m-p/3649794#M879066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T17:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statement error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement-error/m-p/3649795#M879067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed there is a limit to the SELECT-OPTIONS / RANGES with the IN operator. But unfortunately there is no way bypass this limitation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing you can do (sort of workaround) is to call the function module several times for x-number of profit centers (if possible in your particular case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be an option to talk to one of your basis administrators, perhaps they have another solution for this. But from ABAP side there is nothing you can do about it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 17:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement-error/m-p/3649795#M879067</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-08T17:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statement error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement-error/m-p/3649796#M879068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi this is the good way i think....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please go to the site &lt;A href="https://community.sap.com/www.solutions.sap.com" target="test_blank"&gt;www.solutions.sap.com&lt;/A&gt; and post your error then you will get the exact answer...&lt;/P&gt;&lt;P&gt;&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>Tue, 08 Apr 2008 19:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-statement-error/m-p/3649796#M879068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T19:44:48Z</dc:date>
    </item>
  </channel>
</rss>

