<?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 - source code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356043#M177682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    I would like to know is there any system table available, where the source code of a function module is stored? I have a requirement like I want to insert code into the function module through code without going to the transaction se37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2006 05:04:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-19T05:04:50Z</dc:date>
    <item>
      <title>Function module - source code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356043#M177682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    I would like to know is there any system table available, where the source code of a function module is stored? I have a requirement like I want to insert code into the function module through code without going to the transaction se37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 05:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356043#M177682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T05:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Function module - source code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356044#M177683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think there is any table which store the code of FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Prakashsingh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 05:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356044#M177683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T05:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function module - source code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356045#M177684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this sounds highly risky but I guess you could do it with the 'insert report' statement. Check out the help which is quite detailed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 05:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356045#M177684</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-05-19T05:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function module - source code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356046#M177685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I dont think such table is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt; Description&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DBCON&lt;/P&gt;&lt;P&gt; Description of database connections (including password)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DD02V&lt;/P&gt;&lt;P&gt; Date dictionary tables&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DD03L&lt;/P&gt;&lt;P&gt; Date dictionary tables and fields&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DD07T&lt;/P&gt;&lt;P&gt; Texts for Domain Fixed Values&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TRDIR&lt;/P&gt;&lt;P&gt; Table of programs&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TRMAC&lt;/P&gt;&lt;P&gt; Table of macros&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TSTC&lt;/P&gt;&lt;P&gt; Table of transaction codes&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TADIR&lt;/P&gt;&lt;P&gt; Directory of R/3 repository objects&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TFACD&lt;/P&gt;&lt;P&gt; Factory calender definition&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;THOCI&lt;/P&gt;&lt;P&gt; Public holiday calendar index&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TPARA&lt;/P&gt;&lt;P&gt; Table of PID's&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 05:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356046#M177685</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-05-19T05:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function module - source code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356047#M177686</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;You can try using 'READ REPORT' to read the code of the function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Check out the program 'RPR_ABAP_SOURCE_SCAN'.&lt;/P&gt;&lt;P&gt;and the FM: 'SCWB_GET_ABAP_CODE_OF_OBJECT'&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;Anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 05:18:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356047#M177686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T05:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module - source code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356048#M177687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. REPOSRC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This is the table where all source codes,&lt;/P&gt;&lt;P&gt;  whether module pool, se38 program, include,&lt;/P&gt;&lt;P&gt;   Function module (fM also have associated&lt;/P&gt;&lt;P&gt;    program+includes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. But we cannot directly edit this table.&lt;/P&gt;&lt;P&gt;   (System will give error message that&lt;/P&gt;&lt;P&gt;   This table cannot be used for insert/modify)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. u can however use &lt;/P&gt;&lt;P&gt;   READ REPORT &lt;/P&gt;&lt;P&gt;   command (see F1 help on it)&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 05:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356048#M177687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T05:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function module - source code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356049#M177688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I DONT THINK THERE IS ANY TABLE WHICH STORE THE SOURCE CODE OF A FUNCTION MODULE.&lt;/P&gt;&lt;P&gt;DO LIKE THIS&lt;/P&gt;&lt;P&gt;1-CONVERT THAT FUNCTION MODULE TO Z* FUNCTION MODULE &lt;/P&gt;&lt;P&gt;2-FIND OUT THE CODE POSITION WHERE YOU WANT TO ADD THE CODE.&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;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 05:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356049#M177688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T05:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function module - source code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356050#M177689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a Function Module that satisfies your requirement. When the program executes this FM, a new FM is created, with the specified Import,export,changing,tables section. You can also insert source code into the newly created FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Function Module is &amp;lt;b&amp;gt;RS_FUNCTIONMODULE_INSERT&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just have a look at the code..&lt;/P&gt;&lt;P&gt;Suppose I want to create a FM with an import parameter(type I) and an export parameter( type I) and I want to insert some code into this FM, just execute this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSHAIL_1.&lt;/P&gt;&lt;P&gt;data: rtab type table of rssource with header line.&lt;/P&gt;&lt;P&gt;data: imptab type table of rsimp with header line.&lt;/P&gt;&lt;P&gt;data: exptab type table of rsexp with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imptab-parameter = 'IMP_PARAM'.&lt;/P&gt;&lt;P&gt;imptab-typ = 'I'.&lt;/P&gt;&lt;P&gt;append imptab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exptab-parameter = 'EXP-PARAM'.&lt;/P&gt;&lt;P&gt;exptab-typ = 'I'.&lt;/P&gt;&lt;P&gt;append exptab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rtab-line = 'Insert your code for the Function Module here'.&lt;/P&gt;&lt;P&gt;append rtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RS_FUNCTIONMODULE_INSERT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    funcname                      = 'ZSP_FMNAME1'&lt;/P&gt;&lt;P&gt;    function_pool                 = 'ZKUN_FUNGRP'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INTERFACE_GLOBAL              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REMOTE_CALL                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    short_text                    = 'short description'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUPPRESS_CORR_CHECK           = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UPDATE_TASK                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CORRNUM                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NAMESPACE                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUPPRESS_LANGUAGE_CHECK       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  AUTHORITY_CHECK               = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SAVE_ACTIVE                   = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEW_SOURCE                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXCEPTION_CLASS               = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SUPPRESS_UPGRADE_CHECK        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION_INCLUDE              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CORRNUM_E                     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   IMPORT_PARAMETER              = imptab[]&lt;/P&gt;&lt;P&gt;   EXPORT_PARAMETER              = exptab[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TABLES_PARAMETER              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHANGING_PARAMETER            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXCEPTION_LIST                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETER_DOCU                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   SOURCE                        = rtab[]&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   DOUBLE_TASK                   = 1&lt;/P&gt;&lt;P&gt;   ERROR_MESSAGE                 = 2&lt;/P&gt;&lt;P&gt;   FUNCTION_ALREADY_EXISTS       = 3&lt;/P&gt;&lt;P&gt;   INVALID_FUNCTION_POOL         = 4&lt;/P&gt;&lt;P&gt;   INVALID_NAME                  = 5&lt;/P&gt;&lt;P&gt;   TOO_MANY_FUNCTIONS            = 6&lt;/P&gt;&lt;P&gt;   NO_MODIFY_PERMISSION          = 7&lt;/P&gt;&lt;P&gt;   NO_SHOW_PERMISSION            = 8&lt;/P&gt;&lt;P&gt;   ENQUEUE_SYSTEM_FAILURE        = 9&lt;/P&gt;&lt;P&gt;   CANCELED_IN_CORR              = 10&lt;/P&gt;&lt;P&gt;   OTHERS                        = 11&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your query is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your query is solved , please close the thread.&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sylendra Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 06:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-source-code/m-p/1356050#M177689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T06:38:36Z</dc:date>
    </item>
  </channel>
</rss>

