<?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: Run Include dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367188#M808051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it's not possible.  You don't CALL includes.  You just, er... include them.  That is, they become part of the source code.  Regardless of the value of &lt;STRONG&gt;obj&lt;/STRONG&gt; all your includes are included.  Includes should only be used to manage source code - to prevent the editor having to load too much at one time - NOT as a modularisation technique.  There's an inherent danger in using them inside control structures, and this should be avoided.  You should rather use classes/function modules/forms/submit (in order of decreasing preference.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 14:23:58 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2008-02-07T14:23:58Z</dc:date>
    <item>
      <title>Run Include dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367186#M808049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any possibility to call &amp;#132;INCLUDE&amp;#147; in my ABAP program dynamically. I have many Includes which I call in Case-when-statement. I want to avoid this 20 whens.&lt;/P&gt;&lt;P&gt;Codes looks like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when &amp;#145;Z001&amp;#146;.&lt;/P&gt;&lt;P&gt;Include z001.&lt;/P&gt;&lt;P&gt;When &amp;#145;Z002&amp;#146;&lt;/P&gt;&lt;P&gt;Include z002.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it possibly for &amp;#147;SUBMIT&amp;#148; Report name and for &amp;#147;CALL&amp;#148; FM. So why not for includes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Saila on Feb 7, 2008 2:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 13:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367186#M808049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T13:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Run Include dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367187#M808050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you do a submit to a program for every when?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 13:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367187#M808050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T13:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run Include dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367188#M808051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it's not possible.  You don't CALL includes.  You just, er... include them.  That is, they become part of the source code.  Regardless of the value of &lt;STRONG&gt;obj&lt;/STRONG&gt; all your includes are included.  Includes should only be used to manage source code - to prevent the editor having to load too much at one time - NOT as a modularisation technique.  There's an inherent danger in using them inside control structures, and this should be avoided.  You should rather use classes/function modules/forms/submit (in order of decreasing preference.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 14:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367188#M808051</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-02-07T14:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Run Include dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367189#M808052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define myinclude&lt;/P&gt;&lt;P&gt;case &amp;amp;1.&lt;/P&gt;&lt;P&gt;when 1.&lt;/P&gt;&lt;P&gt;include z001.&lt;/P&gt;&lt;P&gt;when 2.&lt;/P&gt;&lt;P&gt;include z002.&lt;/P&gt;&lt;P&gt;when others.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myinclude 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if it works...... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 08:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367189#M808052</guid>
      <dc:creator>gaurab_banerji</dc:creator>
      <dc:date>2011-06-16T08:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Run Include dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367190#M808053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Includes are just part of you program for improving your codes readability.You dont call them, you just include them.&lt;/P&gt;&lt;P&gt;I dont understand, what issue you are facing if you have all these includes.If you have to put some condition, then put them on the performs , which these include would contain.And execute those conditionally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 08:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-include-dynamically/m-p/3367190#M808053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-16T08:57:57Z</dc:date>
    </item>
  </channel>
</rss>

