<?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 parameters in function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660944#M1667520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What release are you working with? I think from 6.10 the options PARAMETER-TABLE and EXCEPTION-TABLE were added to the CALL FUNCTION statement for such purposes.&lt;/P&gt;&lt;P&gt;As always, ABAP F1 help has the details.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2012 11:30:49 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2012-03-09T11:30:49Z</dc:date>
    <item>
      <title>Dynamic parameters in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660942#M1667518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I need to write a program that can call various different function modules based on what the user inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if the user chooses "BAPI_USER_GET_DETAIL" I need to then call that function module. There is a list of about 30 functions they can choose from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read in the function interface using FUNCTION_IMPORT_INTERFACE and have got the import, changing and tables parameters being entered in an editable ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I just need to work out how to call the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could spend ages hard coding all the various combinations, but what I would like to do is call the function totally dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this wouldn't work, but this sort of thing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION p_funct&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;          &amp;lt;imp_1&amp;gt; = &amp;lt;val_1&amp;gt;&lt;/P&gt;&lt;P&gt;          &amp;lt;imp_2&amp;gt; = &amp;lt;val_2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Dave.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 11:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660942#M1667518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-09T11:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameters in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660943#M1667519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have a look at my reply here &lt;SPAN __jive_macro_name="thread" id="2137297"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 11:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660943#M1667519</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-03-09T11:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameters in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660944#M1667520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What release are you working with? I think from 6.10 the options PARAMETER-TABLE and EXCEPTION-TABLE were added to the CALL FUNCTION statement for such purposes.&lt;/P&gt;&lt;P&gt;As always, ABAP F1 help has the details.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 11:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660944#M1667520</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-03-09T11:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameters in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660945#M1667521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heh, You guys are quick and here i was debugging how the 'Pattern' button pop up dialogue calls an FM... Sheesh &lt;SPAN __jive_emoticon_name="silly"&gt;&lt;/SPAN&gt;  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 11:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660945#M1667521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-09T11:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic parameters in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660946#M1667522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I think you've solved it, thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just checking it all now, will be back shortly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't believe it was that simple, spent ages looking through SDN and google. I was searching for dynamic function, not bapi, so I missed that posting too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dave.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 11:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-parameters-in-function-module/m-p/8660946#M1667522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-09T11:55:56Z</dc:date>
    </item>
  </channel>
</rss>

