<?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 Editing Function module import parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/editing-function-module-import-parameter/m-p/7777742#M1585144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a FM whose import parameter structure need to be changed, Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I dont want to make the parameter as CHANGING or EXPORTING because this fm is called dynamicallly in many programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I dont want to change the Import parameter structure as PASS BY VALUE because the changed value is not passed to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2011 07:18:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-05T07:18:30Z</dc:date>
    <item>
      <title>Editing Function module import parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editing-function-module-import-parameter/m-p/7777742#M1585144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a FM whose import parameter structure need to be changed, Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I dont want to make the parameter as CHANGING or EXPORTING because this fm is called dynamicallly in many programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I dont want to change the Import parameter structure as PASS BY VALUE because the changed value is not passed to the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 07:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editing-function-module-import-parameter/m-p/7777742#M1585144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-05T07:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Function module import parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editing-function-module-import-parameter/m-p/7777743#M1585145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i understand you correctly, you have a parameter which is an "Import" parameter to the function, and you want to change the value of this parameter within the FM and get it back to the calling program. Also you do not want to add another changing/export parameter as this would change the interface and cause problem to other programs which are already using this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have aptly put you cannot get the value back by changing it to pass by value and you cannot change it by using pass by reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible solutions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Add an export/changing parameter and mark it as optional, export parameters are always optional, by this you would not be changing the interface and the other programs will still continue to work.&lt;/P&gt;&lt;P&gt;2) If this FM is not a RFC and not being used by remote systems, then you can export the value that you need inside the FM and import it in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know, if i have missed out on anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 09:19:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editing-function-module-import-parameter/m-p/7777743#M1585145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-05T09:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Editing Function module import parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editing-function-module-import-parameter/m-p/7777744#M1585146</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;if this is a SAP standard fm then you mustn't change it. If it is a custom fm then you should define a new exporting parameter, where you can pass back the changed value. You can call the fm with the same program field for the importing and exporting parameter!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional info: For all exporting parameters are optional, you will not have any problems with the dynamic calls of this fm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Klaus Babl on Apr 5, 2011 11:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 09:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editing-function-module-import-parameter/m-p/7777744#M1585146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-05T09:35:41Z</dc:date>
    </item>
  </channel>
</rss>

