<?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: Change the Source Code of a FM Dynamically. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985237#M1895397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have not stated &lt;STRONG&gt;what problem you are trying to solve&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm saying that you probably don't need to dynamically modify function modules. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 20:18:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-04-28T20:18:53Z</dc:date>
    <item>
      <title>Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985230#M1895390</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;&lt;/P&gt;&lt;P&gt;I wanted to change the source code of FM Dynamically.&lt;/P&gt;&lt;P&gt;Is there any way for that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking You All..!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 14:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985230#M1895390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T14:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985231#M1895391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear SAP Rocks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your question. It is very interesting. First of all, the code you write in your FM is what the system executes based on the logic. You can control which piece of code you want to execute based on the logical statements such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF...ELSE...&lt;/P&gt;&lt;P&gt;CASE... ENDCASE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 15:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985231#M1895391</guid>
      <dc:creator>vijayanandpaul_puvvula3</dc:creator>
      <dc:date>2015-04-28T15:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985232#M1895392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, you cannot change function module source code dynamically.&amp;nbsp; Maybe you could do something where you put all the logic of the function into an INCLUDE program; then you can re-create the include program using INSERT REPORT statement. But that won't help you if you also need to change the function module interface dynamically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A better approach is to try to use dynamic programming techniques within your code and avoid generating programs if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 15:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985232#M1895392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T15:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985233#M1895393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vijay and Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe there must be some thing.&lt;/P&gt;&lt;P&gt;Since there are FM to create FM, I am searching some thing to change existing FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION_CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further more the Syntax of &lt;SPAN class="L0S52"&gt;INSERT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REPORT gives provision for &lt;SPAN style="font-size: 10pt;"&gt;&lt;A href="https://community.sap.com/" style="color: #505050;"&gt;Function group&lt;/A&gt; or function pool,, I am searching for Function Module.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking You All..!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 15:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985233#M1895393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T15:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985234#M1895394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope not - it would be pretty dangerous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 15:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985234#M1895394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T15:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985235#M1895395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you've come up with a solution. What problem are you trying to solve? I'm sure we can find a better way.... .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 17:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985235#M1895395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T17:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985236#M1895396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still searching for the solution.&lt;/P&gt;&lt;P&gt;Would request&amp;nbsp; you kindly share your views..!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking You All..!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 20:15:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985236#M1895396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T20:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985237#M1895397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have not stated &lt;STRONG&gt;what problem you are trying to solve&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm saying that you probably don't need to dynamically modify function modules. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 20:18:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985237#M1895397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T20:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985238#M1895398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And I'm saying that it should not be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, an unscrupulous ABAPer dynamically changes a FM to write him or herself a check and then dynamically changes it back so that his or her tracks are erased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, as Lucas asked, what is your basic requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 20:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985238#M1895398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T20:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985239#M1895399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It must be possible or SAPLink wouldn't work... or CTS for that matter!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if the OP doesn't respond with an answer to the question of &lt;EM&gt;why&lt;/EM&gt; he thinks he needs to do this, I will reject the whole thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 05:42:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985239#M1895399</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2015-04-29T05:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985240#M1895400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Matt - wasn't aware of that. But I think in the OPs context, it shouldn't be allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 15:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985240#M1895400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-29T15:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985241#M1895401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't disagree Rob. I can't think of any purpose (other than SAPLink and CTS!) for dynamically generating function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="47026" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="SAP Rocks" href="https://community.sap.com/" modifiedtitle="true" title="SAP Rocks"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last chance to respond, or the thread is going to be rejected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 15:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985241#M1895401</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2015-04-29T15:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985242#M1895402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAPLink and CTS don't really change code 'dynamically' ie: during execution. That's where my mind goes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you've ever imported a transport accidentally during a batch run that impacts one of the classes/functions used by that batch you'll be familiar with the 'load program mismatch' error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So once you've started execution of a program I don't think it's possible to modify the code of something it uses. I don't know this to be 100% true though. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 15:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985242#M1895402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-29T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985243#M1895403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure with "dynamically" he does not mean "during execution".&lt;/P&gt;&lt;P&gt;There is several ways to generate ABAP code on the fly and then execute it (as executable program or function module), and all are on top of IT auditors' lists when scanning for potentially hazardous code.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 16:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985243#M1895403</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2015-04-29T16:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985244#M1895404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas, Lucas, Rob and Matthew Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very sorry for this late re&lt;SPAN style="color: #333333; font-size: 12px;"&gt;ply, in fact I was on &lt;SPAN style="color: #333333; font-size: 12px;"&gt;plant visit &lt;/SPAN&gt;in &lt;SPAN style="color: #333333; font-size: 12px;"&gt;poor&lt;/SPAN&gt; network area.. &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1273/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change the logic inside few RFC FMs based on current unit &lt;SPAN style="color: #333333; font-size: 12px;"&gt;price of the material.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;These RFC FMs are invoked from legacy system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking You All..!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 20:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985244#M1895404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-29T20:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985245#M1895405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't sound to me like you need to change the logic "dynamically". More like you need a BADI or EXIT to change the logic statically, based on your conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 20:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985245#M1895405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-29T20:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985246#M1895406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are Z* FMs written in our APO System, and we have some changes in algorithm based on the forcasting status for coming months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking some thing to chnage the Algorithm dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking You All..!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 09:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985246#M1895406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-30T09:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985247#M1895407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can generate the dynamic code using generate subroutine pool.&lt;/P&gt;&lt;P&gt;Using this statement you can create dynamic class using your own source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need any more help let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985247#M1895407</guid>
      <dc:creator>nishantbansal91</dc:creator>
      <dc:date>2015-04-30T13:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985248#M1895408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can not go with subroutine pool, since the code is to be called from a Legacy System.&lt;/P&gt;&lt;P&gt;So, I need an RFC enabled FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ways, I tried with &lt;SPAN class="L0S52"&gt;INSERT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REPORT with the generated Include name for FM and I found it working too, I am still testing it with various possible scenario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Just wanted to get an opinion from you all ( &lt;SPAN class="j-status-levels"&gt;&lt;/SPAN&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="50948" data-externalid="" data-presence="null" data-userid="953176" data-username="rob.burbank2" href="https://answers.sap.com/people/rob.burbank2"&gt;Rob Burbank&lt;/A&gt;, &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="33038" data-externalid="" data-presence="null" data-userid="19490" data-username="thomas.zloch" href="https://answers.sap.com/people/thomas.zloch"&gt;Thomas Zloch&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;SPAN class="j-status-levels"&gt;&lt;/SPAN&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="38966" data-externalid="" data-presence="null" data-userid="399779" data-username="lucas.ttreault" href="https://answers.sap.com/people/lucas.ttreault"&gt;Lucas Tétreault&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;SPAN class="j-status-levels"&gt;&lt;/SPAN&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="44834" data-externalid="" data-presence="null" data-userid="24079" data-username="matthew.billingham" href="https://answers.sap.com/people/matthew.billingham"&gt;Matthew Billingham&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; Sir ), can I proceed with this approch ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Thanking You All..!!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 11:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985248#M1895408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-01T11:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change the Source Code of a FM Dynamically.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985249#M1895409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*******I strongly recommend against doing this.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to build code dynamically based on some conditions, there should be a way to statically code those conditions as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That said, if you absolutely want to generate code dynamically, my recommendation would be to generate subroutine pool, and call the generated subroutine from your RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RFC function module code shouldn't change because, that function may be called &lt;SPAN style="text-decoration: underline;"&gt;simultaneously&lt;/SPAN&gt; by different instances/threads/systems. If the code inside RFC function module changes, that will effect everyone calling the RFC. Instead, for each RFC call, you will have to generate a unique subroutine pool name, insert the code into the subroutine pool, generate subroutine pool, call the subroutine and then delete the subroutine pool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 14:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-the-source-code-of-a-fm-dynamically/m-p/10985249#M1895409</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2015-05-01T14:27:02Z</dc:date>
    </item>
  </channel>
</rss>

