<?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 Function module Dynamic call in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-dynamic-call/m-p/11187241#M1909287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to make a dynamic call of function, I am fetching data from&amp;nbsp; fupararef table and making dynamic calls to functions using the below code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;*-- Main call&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;function&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;PARAMETER&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;ptab&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTION&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;etab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debug, when I hog into the function the import parameters are blank even though ptab table is filled correct.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/746793" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The value is being passed as a ref to data. Not sure why the import parameters A and B are blank in the function( its a simple function to add a + b = c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2015 16:05:43 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2015-07-13T16:05:43Z</dc:date>
    <item>
      <title>Function module Dynamic call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-dynamic-call/m-p/11187241#M1909287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to make a dynamic call of function, I am fetching data from&amp;nbsp; fupararef table and making dynamic calls to functions using the below code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;*-- Main call&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;function&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;PARAMETER&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;ptab&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXCEPTION&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;etab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debug, when I hog into the function the import parameters are blank even though ptab table is filled correct.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/746793" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The value is being passed as a ref to data. Not sure why the import parameters A and B are blank in the function( its a simple function to add a + b = c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 16:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-dynamic-call/m-p/11187241#M1909287</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2015-07-13T16:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function module Dynamic call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-dynamic-call/m-p/11187242#M1909288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Parameter A and B should be passed as EXPORTING (ABAP_FUNC_EXPORTING = 10) in field KIND. I think you are passing that as IMPORTING (ABAP_FUNC_IMPORTING = 20). Parameter C should be IMPORTING (20).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you may ask why it didn't raise an error as those parameter A and B are not defined as EXPORTING in the FM. The reason is - Dynamic FM call ignores all the parameters which don't exist. Read more at - &lt;A href="http://zevolving.com/2013/11/abap-call-fm-dynamically-with-mystery-parameters/" title="http://zevolving.com/2013/11/abap-call-fm-dynamically-with-mystery-parameters/"&gt; ABAP Call FM Dynamically with Mystery Parameters! | ABAP Help Blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 20:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-dynamic-call/m-p/11187242#M1909288</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2015-07-13T20:30:08Z</dc:date>
    </item>
  </channel>
</rss>

