<?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 dynamic FM call in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960238#M394850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to call dynamically a FM? I can get on run-time the FM name, but what about the export&amp;amp;import parameters? How do you handle that? An example would be very usefull.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2007 10:23:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-28T10:23:19Z</dc:date>
    <item>
      <title>dynamic FM call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960238#M394850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to call dynamically a FM? I can get on run-time the FM name, but what about the export&amp;amp;import parameters? How do you handle that? An example would be very usefull.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 10:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960238#M394850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T10:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic FM call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960239#M394851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI George,&lt;/P&gt;&lt;P&gt; Even if you get the function module name at the run time, a function module with that name will still be statically defined in se37.&lt;/P&gt;&lt;P&gt;You can see that in the se37 transaction and find the parameters for the same.&lt;/P&gt;&lt;P&gt;then you can simple use those exporting and importing parameters.&lt;/P&gt;&lt;P&gt;call function v_fm_name&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;field1 = &lt;/P&gt;&lt;P&gt;importing fiel2 = ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 10:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960239#M394851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T10:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic FM call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960240#M394852</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;U can only manage the name of the fm dynamically, but not the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can only manage several fms with the same interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: FUNCTION_NAME(30) TYPE C.

IF ......
  FUNCTION_NAME = 
ELSE
  FUNCTION_NAME =
ENDIF.


CALL FUNCTION FUNCTION_NAME
   EXPORTING
      ....................   
   IMPORTING
      .....................&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 10:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960240#M394852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T10:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic FM call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960241#M394853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write Case Statement or condition u can branch to the required FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 10:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960241#M394853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T10:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic FM call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960242#M394854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think it is not possible.&lt;/P&gt;&lt;P&gt;but you can do like this&lt;/P&gt;&lt;P&gt;if fmnae = 'ABC'.&lt;/P&gt;&lt;P&gt;call fn 'ABC'.&lt;/P&gt;&lt;P&gt;elsif fmname = 'DEF'.&lt;/P&gt;&lt;P&gt;call fm 'DEF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 10:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960242#M394854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T10:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic FM call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960243#M394855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's say that I have the FM names and parameters in a configuration table. Depending on a selection screen parameter, I must select the proper FM name and parameters and call the FM. The number of parameter differs from one FM to another. So, how can I call the FM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 10:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960243#M394855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T10:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic FM call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960244#M394856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use a recording over the transation se 37 and place the function modules name that you have dynamically retrieved there in the func. module name field and then press the run button , in this next screen place the input parameters and then capture the required output value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunmit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 10:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960244#M394856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T10:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic FM call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960245#M394857</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;lv_function = 'function1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fill itab_para with parameters for dynamic parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION lv_function&lt;/P&gt;&lt;P&gt;  PARAMETER-TABLE itab_para.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example from ABAP help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools ABAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data NAME type STRING value `ABAP_DOCU_SHOW`. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data PARA_TAB type ABAP_FUNC_PARMBIND_TAB. &lt;/P&gt;&lt;P&gt;data PARA_LINE like line of PARA_TAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data AREA(4) type C. &lt;/P&gt;&lt;P&gt;data OBJECT(30) type C. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AREA = 'ABAP'. &lt;/P&gt;&lt;P&gt;PARA_LINE-NAME = 'AREA'. &lt;/P&gt;&lt;P&gt;PARA_LINE-KIND = ABAP_FUNC_EXPORTING. &lt;/P&gt;&lt;P&gt;get reference of AREA into PARA_LINE-VALUE. &lt;/P&gt;&lt;P&gt;append PARA_LINE to PARA_TAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECT = 'CLASS'. &lt;/P&gt;&lt;P&gt;PARA_LINE-NAME = 'NAME'. &lt;/P&gt;&lt;P&gt;PARA_LINE-KIND = ABAP_FUNC_EXPORTING. &lt;/P&gt;&lt;P&gt;get reference of OBJECT into PARA_LINE-VALUE. &lt;/P&gt;&lt;P&gt;append PARA_LINE to PARA_TAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function NAME &lt;/P&gt;&lt;P&gt;     parameter-table PARA_TAB. &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;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 10:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-fm-call/m-p/1960245#M394857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T10:50:35Z</dc:date>
    </item>
  </channel>
</rss>

