<?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: maximum permitted length for open dynamic sql in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713928#M1454173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks suhas $ aRs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The static length (in the ABAP editor) of any ABAP command must not exceed 28672 characters.In Open SQL commands with dynamic subclauses (WHERE, GROUP BY, ORDER BY, and so on), the subclauses cannot contain more than 28672 characters"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is only realated to where_criteria ..... is there any limit for op_list ond  join_tables and right now i&lt;/P&gt;&lt;P&gt;m able to run query more than 65k character....&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Mar 2010 06:14:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-10T06:14:33Z</dc:date>
    <item>
      <title>maximum permitted length for open dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713923#M1454168</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;What is the maximum permitted length for open dynamic multitable sql for different database?&lt;/P&gt;&lt;P&gt;like we have open sql in this format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select (op_list) from (join_tables) into itab where (where_crietria).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so&lt;/P&gt;&lt;P&gt;1-&amp;gt; what is the maximum length of total sql?&lt;/P&gt;&lt;P&gt;2-&amp;gt; what is the maximum length of op_list?&lt;/P&gt;&lt;P&gt;3-&amp;gt; what is the maximum length of &lt;U&gt;join&lt;/U&gt;tables?&lt;/P&gt;&lt;P&gt;4-&amp;gt; what is the maximum length of where_criteria with diff operator like 'IN' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 05:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713923#M1454168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T05:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted length for open dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713924#M1454169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this thread for details: &lt;SPAN __jive_macro_name="thread" id="1375082"&gt;&lt;/SPAN&gt;.&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>Wed, 10 Mar 2010 05:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713924#M1454169</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-10T05:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted length for open dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713925#M1454170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you done something this way i don't think you have limitation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: V_CONDITION(72) TYPE C, 
           ITAB LIKE TABLE OF V_CONDITION. 

SELECTION-OPTIONS : S_MATNR FOR MARA-MATNR. 

DATA WA TYPE MARA-MATNR. 

LOOP AT S_MATNR.
IF SY-TABIX EQ 1.
CONCATENATE 'MATNR = ''' S_MATNR-LOW '''' INTO V_CONDITION. 
APPEND V_CONDITION TO ITAB. 
ELSE.
CONCATENATE 'OR MATNR = ''' S_MATNR-LOW '''' INTO V_CONDITION. 
APPEND V_CONDITION TO ITAB. 
ENDIF.
ENDLOOP.

SELECT MATNR 
INTO   WA 
FROM   MARA 
WHERE  (ITAB). 

  WRITE / WA. 

ENDSELECT.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 05:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713925#M1454170</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-03-10T05:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted length for open dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713926#M1454171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello aRs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The restriction is on the total length of the dynamic SQL statement which is generated at the DB level during runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should check the OSS Note:  Note 635318 - Open SQL: Size restrictions for commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Mar 10, 2010 11:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 05:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713926#M1454171</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-10T05:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted length for open dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713927#M1454172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suhas,&lt;/P&gt;&lt;P&gt;You are right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the SQL statement is generated at runtime, you should check the following restrictions and divide or reduce the statement if necessary.&lt;/P&gt;&lt;P&gt;The static length (in the ABAP editor) of any ABAP command must not exceed 28672 characters.In Open SQL commands with dynamic subclauses (WHERE, GROUP BY, ORDER BY, and so on), the subclauses cannot contain more than 28672 characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 06:07:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713927#M1454172</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-03-10T06:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted length for open dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713928#M1454173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks suhas $ aRs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The static length (in the ABAP editor) of any ABAP command must not exceed 28672 characters.In Open SQL commands with dynamic subclauses (WHERE, GROUP BY, ORDER BY, and so on), the subclauses cannot contain more than 28672 characters"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is only realated to where_criteria ..... is there any limit for op_list ond  join_tables and right now i&lt;/P&gt;&lt;P&gt;m able to run query more than 65k character....&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anuj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 06:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713928#M1454173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T06:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: maximum permitted length for open dynamic sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713929#M1454174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; But this is only realated to where_criteria ..... is there any limit for op_list ond  join_tables and right now i&lt;/P&gt;&lt;P&gt;&amp;gt; m able to run query more than 65k character....&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you elaborate on this statement please ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure about the OP_LIST but for JOINs you have a limitation of 24 join expressions. (source: [http://help.sap.com/abapdocu_70/en/ABAPSELECT_JOIN.htm|http://help.sap.com/abapdocu_70/en/ABAPSELECT_JOIN.htm])&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>Wed, 10 Mar 2010 06:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/maximum-permitted-length-for-open-dynamic-sql/m-p/6713929#M1454174</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-10T06:29:06Z</dc:date>
    </item>
  </channel>
</rss>

