<?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 Include Programming - Calling Includes dynamically at runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237424#M1629735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think we can have dynamic include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will propose something else that can do similar job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a customized class. Example "ZCL_INCLUDE"&lt;/P&gt;&lt;P&gt;2. Create all the variables, needed by the program and shared throught each include, into the class itself.&lt;/P&gt;&lt;P&gt;3. Create one method by include you would like to use dynamically&lt;/P&gt;&lt;P&gt;4. The ztable containing the include name should now contain the method name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following code will execute each method defined into the ztable.&lt;/P&gt;&lt;P&gt;loop at ztable.&lt;/P&gt;&lt;P&gt;&amp;nbsp; call method zcl_include=&amp;gt;(ztable-methodname).&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2012 20:10:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-09-19T20:10:32Z</dc:date>
    <item>
      <title>Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237411#M1629722</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;The scenario is ....&lt;/P&gt;&lt;P&gt;there is a Z table consisting of Include Names and partner names. In the program we do a select query and select the name of the appropriate include into a variable name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select INCLUDE_NAME from table where...... into VAR.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do something like   Include VAR.&lt;/P&gt;&lt;P&gt;I cannot use a CASE statement on the variable. I have tried Include (VAR). It does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Question is how to execute the code in the Include Name fetched at runtime ????&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest some dynamc way of executing the code in the Include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rahulgo26 on Sep 20, 2011 7:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 17:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237411#M1629722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T17:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237412#M1629723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi we can cnnot call the include dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can call the perform routines or reports dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SUBMIT (w_rname) USING SELECTION-SET p_var&lt;/P&gt;&lt;P&gt;            EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;                    AND RETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 19:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237412#M1629723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T19:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237413#M1629724</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;How do you intend to call the code in the include ? Do you know for example that subroutines that you would like to call in the selected include before hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then may use  INSERT REPORT XXXXX from &amp;lt;itab&amp;gt; and create a new report.  Do a submit to the report to execute  the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: code TYPE TABLE OF rssource-line,&lt;/P&gt;&lt;P&gt;      lwa_code type rssource-line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND 'REPORT ZTEST_INCLUDE_1' to code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'INCLUDE'&lt;/P&gt;&lt;P&gt;            'BDCRECXX' " fetch the include name form ur Z table here&lt;/P&gt;&lt;P&gt;            INTO lwa_code.&lt;/P&gt;&lt;P&gt;APPEND lwa_code to code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT REPORT 'ZTEST_INCLUDE_1' FROM code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 19:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237413#M1629724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T19:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237414#M1629725</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;You can use the PERFORM command to call an ABAP subroutine (form) from any program.&lt;/P&gt;&lt;P&gt;Write the code as subroutines in your include. Then use perform &amp;lt;routine&amp;gt; in program........ I dont have a sap access now to check with a dynamic call example. Try to check it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the syntax with F1 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 03:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237414#M1629725</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-21T03:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237415#M1629726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if i do a SUBMIT the error is that only TYPE-1 programs can be used in a SUBMIT statement and not TYPE I programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is that there are some Includes already present in the system, I need to ececute the include code dynamically at runtime based on a condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So PERFORM cannot be used as the Includes are already there, and these are not subroutines, converting the Includes to Subroutines might be an option, but that shall be the last option for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ REPORT and INSERT REPORT statements but the include is not getting executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I created a blank include program in the system and then inserted the code into it from the internal table using Insert and Read Report statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here the problem is that the Include is not getting overwritten the next time I want to place the code of the next include. If the Include is blank then it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a solution for this, apart from whatever I have tried ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rahulgo26 on Sep 21, 2011 9:31 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 07:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237415#M1629726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T07:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237416#M1629727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And one more query is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we do this dynamic programming thing in Quality and Production systems where we do not have WRITE access to programs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 07:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237416#M1629727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T07:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237417#M1629728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I advice you to first learn what we do in development system,quality system &amp;amp; production system before getting into development&lt;/P&gt;&lt;P&gt;Everything is dealed with transports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are includes alraedy existing then right now i am not getting any idea for your question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at link:[Creating and Starting Temporary Subroutines |http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/content.htm].( Not sure ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 08:49:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237417#M1629728</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-21T08:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237418#M1629729</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;Try with &lt;/P&gt;&lt;P&gt;GENERATE REPORT 'INCLUDENAME'. &lt;/P&gt;&lt;P&gt;Note this statement is marked as Internal use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rshankar on Sep 21, 2011 5:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 10:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237418#M1629729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T10:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237419#M1629730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kesav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First try to understand the question then answer. I have told twice that the issue is not with SUBROUTINES but with INCLUDES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am asking you not to edit programs in Quality and Prod systems and I also know that everything is dealt with transports. My Question was &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS DYNAMIC PROGRAMMING POSSIBLE IN THE QUALITY AND PROD SYSTEMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the second question is if the name of the Include is in a Variable Name then how can you execute the code in the include ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now can u get my question Kesav ??????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please show more respect towards those who are trying to help you. &lt;EM&gt;You&lt;/EM&gt; are asking for help, after all.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Sep 22, 2011 11:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 07:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237419#M1629730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T07:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237420#M1629731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add a include with fix name into your include then create this fix named include dynamicly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: CODE(72) OCCURS 0,&lt;/P&gt;&lt;P&gt;PROG(8) value 'zinc_fix',&lt;/P&gt;&lt;P&gt; MSG(120), LIN(3), WRD(10), OFF(3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ztable to inttable " ztable contains includes name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND 'INCLUDES:" TO CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at inttable.&lt;/P&gt;&lt;P&gt;concatanate inttable-includename ',' into code.&lt;/P&gt;&lt;P&gt;append code. clear code.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND "." TO CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GENERATE SUBROUTINE POOL CODE NAME PROG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take care.&lt;/P&gt;&lt;P&gt;Çağatay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 07:50:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237420#M1629731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T07:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237421#M1629732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Includes can be used inside a subroutine. So try to generate subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 08:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237421#M1629732</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-22T08:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237422#M1629733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Normally program code in an include is written in routines. But in your case you need to include an include with plain program code?&lt;/P&gt;&lt;P&gt;Can you give an example of such an include? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if i want to include some external program code, i'd simply add the statement &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INCLUDE &amp;lt;insert_include_name_here&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i want to do that dynamically, i would try: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INCLUDE gv_some_include_name.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i want to do it conditionally, i would try:  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF &amp;lt;some_condition&amp;gt;.
  INCLUDE gv_some_include_name..
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But... then i'll have the problem of data declarations of variables in that include.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 09:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237422#M1629733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T09:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237423#M1629734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for sounding inappropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with using subroutines is the missing data declarations error which would not be case if the Include code can be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for example :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exit include code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : .........&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;perform sub&lt;/STRONG&gt; -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&amp;gt; form sub.   missing declarations which are present in the exit include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exit include code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data : .........&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Include sub.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the missing declarations wont be a problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 19:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237423#M1629734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-22T19:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Include Programming - Calling Includes dynamically at runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237424#M1629735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think we can have dynamic include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will propose something else that can do similar job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a customized class. Example "ZCL_INCLUDE"&lt;/P&gt;&lt;P&gt;2. Create all the variables, needed by the program and shared throught each include, into the class itself.&lt;/P&gt;&lt;P&gt;3. Create one method by include you would like to use dynamically&lt;/P&gt;&lt;P&gt;4. The ztable containing the include name should now contain the method name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following code will execute each method defined into the ztable.&lt;/P&gt;&lt;P&gt;loop at ztable.&lt;/P&gt;&lt;P&gt;&amp;nbsp; call method zcl_include=&amp;gt;(ztable-methodname).&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 20:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-include-programming-calling-includes-dynamically-at-runtime/m-p/8237424#M1629735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-19T20:10:32Z</dc:date>
    </item>
  </channel>
</rss>

