<?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: How to Call a Function Module Dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-function-module-dynamically/m-p/2960063#M698325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your different scenarios, store the name of function module in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function &amp;lt;var&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here you must be sure about the interface of the function module and required to pass the mandatory fields while calling function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-subrc check will let you know whether the function call is successful of not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 07:30:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-12T07:30:17Z</dc:date>
    <item>
      <title>How to Call a Function Module Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-function-module-dynamically/m-p/2960060#M698322</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;Can any one plz tell me the way to call a function Module dynamically. And any way out to find whether a FM has called dynamically or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-function-module-dynamically/m-p/2960060#M698322</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2007-10-12T07:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call a Function Module Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-function-module-dynamically/m-p/2960061#M698323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF TKOMP OCCURS 5,
        FUNCTION LIKE TRWPR-FUNCTION,
      END OF TKOMP.

       LOOP AT TKOMP.
         CALL FUNCTION   TKOMP-FUNCTION
              EXPORTING  BLTXT            = PA_BLTXT
                         GJAHR            = PA_GSJHR
                         KOKRS            = X-KOKRS
                      PERAB            = T_PLZ-PERAB       " n. 168475
                      PERBI            = T_PLZ-PERBI       " n. 168475
                         UPDATE_VALUES    = 'X'
                         DELTA            = L_DELTA
                         COMMIT           = ' '
                         VERSN            = PA_VERSI
                         VRGNG            = 'RKP1'
                         MESSAGES_SHOW    = ' '
                         IRKU01_CUR       = RKU01_CUR
                         TESTMODE         = PA_TESTL           "n.525131
              TABLES     IRKU01JA         = HLP_RKU01JA
              EXCEPTIONS OTHERS           = 04.
         IF PA_TESTL EQ SPACE.                                "msg
            PERFORM ABEND_WHEN_POSTING_ERROR.                 "msg
         ENDIF.                                               "msg
       ENDLOOP.
     ENDIF.

  ENDDO.

  ENDLOOP.                                                 " n. 168475&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Andreas Mann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-function-module-dynamically/m-p/2960061#M698323</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2007-10-12T07:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call a Function Module Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-function-module-dynamically/m-p/2960062#M698324</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;instead of call function 'function_module'.&lt;/P&gt;&lt;P&gt;data:var(30) value 'function_module'.&lt;/P&gt;&lt;P&gt;and &amp;lt;b&amp;gt;call function var&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;this will be supported only when the importing,exporting,changing,tables parameters of the function modules match.other wise u should not use this type of calling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-function-module-dynamically/m-p/2960062#M698324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T07:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call a Function Module Dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-function-module-dynamically/m-p/2960063#M698325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your different scenarios, store the name of function module in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function &amp;lt;var&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here you must be sure about the interface of the function module and required to pass the mandatory fields while calling function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-subrc check will let you know whether the function call is successful of not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 07:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-function-module-dynamically/m-p/2960063#M698325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T07:30:17Z</dc:date>
    </item>
  </channel>
</rss>

