<?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 generation of function modules? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-generation-of-function-modules/m-p/2672229#M617029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes this is possible,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the abap help on GENERATE SUBROUTINE POOL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Rob Dielemans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2007 14:12:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-20T14:12:20Z</dc:date>
    <item>
      <title>Dynamic generation of function modules?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-generation-of-function-modules/m-p/2672228#M617028</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;I'am looking for a facility to generate a function module dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 14:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-generation-of-function-modules/m-p/2672228#M617028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T14:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic generation of function modules?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-generation-of-function-modules/m-p/2672229#M617029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes this is possible,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the abap help on GENERATE SUBROUTINE POOL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Rob Dielemans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 14:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-generation-of-function-modules/m-p/2672229#M617029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic generation of function modules?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-generation-of-function-modules/m-p/2672230#M617030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is, but I'm not really sure why would need to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001 .


data: import type rsimp  occurs 0 with header line.
data: export type rsexp  occurs 0 with header line.
data: source type rssource  occurs 0 with header line.

start-of-selection.

* Create the function module
  import-parameter = 'INDATE'.
  import-dbfield = 'SY-DATUM'.
  append import.

  export-parameter = 'OUTDATE'.
  export-dbfield = 'SY-DATUM'.
  append export.

  source-line = 'outdate = indate + 1.'.
  append source.


  call function 'RS_FUNCTIONMODULE_INSERT'
    exporting
      funcname                      = 'Z_RICH_TEST'
      function_pool                 = 'ZRICHTESTGROUP'
*   INTERFACE_GLOBAL              = ' '
*   REMOTE_CALL                   = ' '
      short_text                    = 'This is a test'
*   SUPPRESS_CORR_CHECK           = 'X'
*   UPDATE_TASK                   = ' '
*   CORRNUM                       = ' '
*   NAMESPACE                     = ' '
*   SUPPRESS_LANGUAGE_CHECK       = 'X'
*   AUTHORITY_CHECK               = 'X'
*   SAVE_ACTIVE                   = 'X'
*   SUPPRESS_UPGRADE_CHECK        = ' '
* IMPORTING
*   FUNCTION_INCLUDE              =
*   CORRNUM_E                     =
 tables
   import_parameter              = import
   export_parameter              = export
*   TABLES_PARAMETER              =
*   CHANGING_PARAMETER            =
*   EXCEPTION_LIST                =
*   PARAMETER_DOCU                =
   source                        = source
 exceptions
   double_task                   = 1
   error_message                 = 2
   function_already_exists       = 3
   invalid_function_pool         = 4
   invalid_name                  = 5
   too_many_functions            = 6
   no_modify_permission          = 7
   no_show_permission            = 8
   enqueue_system_failure        = 9
   canceled_in_corr              = 10
   others                        = 11.


* Use the function module.
  data: date_out like sy-datum.
  call function 'Z_RICH_TEST'
       exporting
            indate  = sy-datum
       importing
            outdate = date_out.
  write:/ sy-datum, date_out.


* Now delete the function module
  call function 'RS_FUNCTION_DELETE'
       exporting
            funcname          = 'Z_RICH_TEST'
            suppress_popups   = 'X'
            suppress_checks   = 'X'
       exceptions
            cancelled         = 1
            function_released = 2
            others            = 3.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 14:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-generation-of-function-modules/m-p/2672230#M617030</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-20T14:17:10Z</dc:date>
    </item>
  </channel>
</rss>

