<?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: Dynamic SQL Qeury. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-sql-qeury/m-p/7272957#M1530403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Asish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is b'coz the SQL statement you've coded exceeds maximum length of the SQL statement for your SAP release.(Search for relevant OSS Notes, you can check ABAP forums as well i remember a discussion on this 1-2 weeks back)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Open SQL statement with the range (after the 'IN' keyword) is parsed before being forwarded to the DB layer &amp;amp; if your range contains too many recs your DELETE stmt will result in a runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Sep 2010 09:56:27 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-09-20T09:56:27Z</dc:date>
    <item>
      <title>Dynamic SQL Qeury.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-sql-qeury/m-p/7272955#M1530401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the SELECT query has dynamic WHERE clause then in CRM side it fails if the number of records are more than 13000 in table from where we are picking up the values. We have used it many a place in whole application. Is there any way to handle it by configuring System level change rather than changing the code? We have problems in changing the code as it is used in multiple locations in whole custom application.&lt;/P&gt;&lt;P&gt;Example1:&lt;/P&gt;&lt;P&gt;DELETE FROM &amp;lt;table1&amp;gt; WHERE &amp;lt;field1&amp;gt; IN ( SELECT &amp;lt;field1&amp;gt; FROM &amp;lt;table2&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;field2&amp;gt; = &amp;lt;var2&amp;gt; ).&lt;/P&gt;&lt;P&gt;&amp;lt;table1&amp;gt; has more than 13000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 09:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-sql-qeury/m-p/7272955#M1530401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-20T09:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic SQL Qeury.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-sql-qeury/m-p/7272956#M1530402</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;Incase u changes code ,better use modular programming ,include the code in form &lt;/P&gt;&lt;P&gt;,so that you dont have to face such problem again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 09:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-sql-qeury/m-p/7272956#M1530402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-20T09:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic SQL Qeury.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-sql-qeury/m-p/7272957#M1530403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Asish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is b'coz the SQL statement you've coded exceeds maximum length of the SQL statement for your SAP release.(Search for relevant OSS Notes, you can check ABAP forums as well i remember a discussion on this 1-2 weeks back)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Open SQL statement with the range (after the 'IN' keyword) is parsed before being forwarded to the DB layer &amp;amp; if your range contains too many recs your DELETE stmt will result in a runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 09:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-sql-qeury/m-p/7272957#M1530403</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-09-20T09:56:27Z</dc:date>
    </item>
  </channel>
</rss>

