<?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 Ranges and Dynamic SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521174#M239319</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;I originally thought of generating a subroutine pool, but i thought you could not pass it parameters??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Aug 2006 09:49:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-15T09:49:50Z</dc:date>
    <item>
      <title>Dynamic Ranges and Dynamic SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521169#M239314</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;I have built a table of ranges and would like to use them in an sql query. Ive had a look but cannot think of a way to get this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table of fieldnames and a table of ranges. Does abap have a way of selecting a element from a table so I can generate the following sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from table&lt;/P&gt;&lt;P&gt;  into some_table&lt;/P&gt;&lt;P&gt;  where &lt;/P&gt;&lt;P&gt;    'FIELD0' IN range[0] AND &lt;/P&gt;&lt;P&gt;    'FIELD1' IN range[1] AND&lt;/P&gt;&lt;P&gt;    'FIELD2' IN range[2] AND&lt;/P&gt;&lt;P&gt;    'FIELD3' IN range[3] AND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to build dynamic sql thats the easy bit. The hard bit is inserting a reference to a table element dynamically into the sql :S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appretiated, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 09:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521169#M239314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-15T09:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ranges and Dynamic SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521170#M239315</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;&lt;/P&gt;&lt;P&gt;look this threads:&lt;/P&gt;&lt;P&gt;1) &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="252048"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2)&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="516687"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 09:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521170#M239315</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-08-15T09:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ranges and Dynamic SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521171#M239316</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;  We can have a dynamic where condition.&lt;/P&gt;&lt;P&gt;  But even in dynamic where condition, we can not specify IN. So, we can not use dynamic ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 09:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521171#M239316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-15T09:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ranges and Dynamic SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521172#M239317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sailaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so use &amp;lt;a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db999535c111d1829f0000e829fbfe/frameset.htm"&amp;gt;subroutine pool&amp;lt;/a&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 09:42:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521172#M239317</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-08-15T09:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ranges and Dynamic SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521173#M239318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why could you not use IN, in a dynamic sql statement??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im no abap expert but surely at runtime the dynamic sql is converted into normal open sql, where you can use the in statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 09:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521173#M239318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-15T09:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ranges and Dynamic SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521174#M239319</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;I originally thought of generating a subroutine pool, but i thought you could not pass it parameters??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 09:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521174#M239319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-15T09:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ranges and Dynamic SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521175#M239320</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;  Yes, We can make use of Subroutine pools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This is from F1 help about dynamic where..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1. This variant is exclusively for use with SELECT. The          &lt;/P&gt;&lt;P&gt;     internal table itab can only have one field which must be of  &lt;/P&gt;&lt;P&gt;     type C and not be greater than 72 characters. itab must be    &lt;/P&gt;&lt;P&gt;     specified in parentheses with no blanks between the           &lt;/P&gt;&lt;P&gt;     parentheses and the table name. The condition specified in    &lt;/P&gt;&lt;P&gt;     the internal table itab must have the same form as a          &lt;/P&gt;&lt;P&gt;     condition in the ABAP/4 source code. The following            &lt;/P&gt;&lt;P&gt;     restrictions apply:                                                                                &lt;/P&gt;&lt;P&gt;- You can only use literals as values, not variables.         &lt;/P&gt;&lt;P&gt;                                                                   &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;     - The operator IN cannot be used in the form f1 IN itab1.    &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 09:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521175#M239320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-15T09:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Ranges and Dynamic SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521176#M239321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks sailaja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not a having a dig at your knowledge, just did not realise this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2006 10:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ranges-and-dynamic-sql/m-p/1521176#M239321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-15T10:03:53Z</dc:date>
    </item>
  </channel>
</rss>

