<?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: call FM dynamic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952703#M1601989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joy,&lt;/P&gt;&lt;P&gt;             We cannot know the table parameter definition in the runtime unless we need to find/investigate is there a logic by which we will come to know dynamically what are the tables , import , export &amp;amp; Exception parameters for a FM that you want to call dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make the logic more complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2011 15:59:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-22T15:59:44Z</dc:date>
    <item>
      <title>call FM dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952698#M1601984</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;&lt;/P&gt;&lt;P&gt;I want to use the dynamic call for FM like the following example but i dont khow how to call&lt;/P&gt;&lt;P&gt;assuming i have several FM's that i always want to call the with different parameters &lt;/P&gt;&lt;P&gt;how can i do that in dynamic way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION func
  PARAMETER-TABLE
  ptab
  EXCEPTION-TABLE
  etab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 12:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952698#M1601984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-22T12:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: call FM dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952699#M1601985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a transparent table with Key = FM-Name. Each data field should contain the name of each FM parameter required. Read the entry for the FM as required and assign the correct values to each of the parameters for the FM. Fill PARAMETER-TABLE with both parameter and value accordingly and call FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 13:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952699#M1601985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-22T13:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: call FM dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952700#M1601986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok ,do you have some example ?&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;Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 13:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952700#M1601986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-22T13:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: call FM dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952701#M1601987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is possible,&lt;/P&gt;&lt;P&gt;you can call function modules dynamically &lt;/P&gt;&lt;P&gt;but the only consideration is that all function modules called must have to have the same Exporting/Importing/Changing/Tables/Exceptions parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a variable "lv_fname" of type rs38l_fnam. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And we have to keep the function module names in a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can read your ztable function module name into the variable lv_fname: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single &amp;lt;Function module Name&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Into lv_fname &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From &amp;lt;table name&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &amp;lt;Condition&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then simply call the function module: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION lv_fmname &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Exporting Parameters&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: passing/returning parameters have to be exactly &lt;/P&gt;&lt;P&gt;the same for all of the different function modules you will be calling.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 14:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952701#M1601987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-22T14:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: call FM dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952702#M1601988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,assuming i have the the FM in remote system that have ERP with all the available Fm's  ,(the source system doesn't have all the FM).what i was doing is to use the following Fm to get the FM interface and its works ,but the issue here assuming i need to move table like export parameter how do i fill the data in the table before i call the the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE'
  EXPORTING
    funcname           = fm
  TABLES
    exception_list     = lt_exception
    export_parameter   = lt_export_parameter
    import_parameter   = lt_import_parameter
    changing_parameter = lt_changing_parameter
    tables_parameter   = lt_tables_parameter
  EXCEPTIONS
    error_message      = 1
    function_not_found = 2
    invalid_name       = 3
    OTHERS             = 4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe i sharpen my question ,assuming i have &lt;STRONG&gt;table as input&lt;/STRONG&gt; (i don't remember such of BAPI &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; )and from the above FM i get the table structure &lt;/P&gt;&lt;P&gt;how can i add the values to the input table ,there is a way to do that?&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;Joy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Joy Stpr on Jun 22, 2011 5:31 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 14:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952702#M1601988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-22T14:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: call FM dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952703#M1601989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joy,&lt;/P&gt;&lt;P&gt;             We cannot know the table parameter definition in the runtime unless we need to find/investigate is there a logic by which we will come to know dynamically what are the tables , import , export &amp;amp; Exception parameters for a FM that you want to call dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make the logic more complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 15:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952703#M1601989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-22T15:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: call FM dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952704#M1601990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi greet soon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the FM that I mentioned above retrieve the the Bapi interface ,which table and the data type of it, it's impoosibe?&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;joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 20:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952704#M1601990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-22T20:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: call FM dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952705#M1601991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joy,&lt;/P&gt;&lt;P&gt;                You need to replicate the SE37 transaction functioanlity to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This logic may be complecated , But  if you check the logic in SE37 you can copy the same logic and get all the data dynamically once if you know the FM name that you wnat to call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your question is answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2011 23:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952705#M1601991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-22T23:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: call FM dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952706#M1601992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Greetson,&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;Are you sure its that complected , since what i want is trivial for calling FM dynamically,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to fill the structure and table of the input of the FM with data like key etc&lt;/STRONG&gt;..and call to the FM every time i can have diff FM ,there is no simple way to do that ?&lt;/P&gt;&lt;P&gt;I assume that when this functionality was implemented ,this question is raised since otherwise the solution is not &lt;/P&gt;&lt;P&gt;complete ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Joy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Joy Stpr on Jun 23, 2011 8:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 05:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952706#M1601992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-23T05:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: call FM dynamic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952707#M1601993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joy,&lt;/P&gt;&lt;P&gt;     Yes , this is a complicated logic. You need to do the same logic that SE37 is doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have the logic ready on my end. We need to go through the SE37 Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave you the solution as SE37 approach.  I will try  to let you know the FM's that SE37 is using when I find time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like they are calling the FM "RS_FUNCTION_DISPLAY". This has the changing parameter that eturns all the import , export , tables etc.. parameter details. You need to explore how to use this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck.&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;Greetson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Greetson Shunmugasundaram on Jun 23, 2011 4:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2011 14:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-fm-dynamic/m-p/7952707#M1601993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-23T14:45:30Z</dc:date>
    </item>
  </channel>
</rss>

