<?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: reading sourcecode of function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846965#M1133585</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;Use the following FM to get the include name of the function module.&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'FUNCTION_EXISTS'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            funcname           = lv_functionname&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            include            =  lv_include&lt;/P&gt;&lt;P&gt;            namespace        =  lv_namespace&lt;/P&gt;&lt;P&gt;            str_area           =    lv_str_area&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            function_not_exist = 1.&lt;/P&gt;&lt;P&gt;Now you can use lv_include as the program name in read report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vadivelan B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2008 09:37:46 GMT</pubDate>
    <dc:creator>i048168</dc:creator>
    <dc:date>2008-12-04T09:37:46Z</dc:date>
    <item>
      <title>reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846958#M1133578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to search a string in the sourcecode of function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had already programmed a version for abap programms, but the function READ REPORTS does not accept function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for help&lt;/P&gt;&lt;P&gt;D. S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 09:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846958#M1133578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846959#M1133579</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;The function module is write in an include so u need to transfer the name of the include instead of the name of function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can see the name of the include in the property tab in trx SE37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: max bianchi on Dec 4, 2008 10:16 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 09:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846959#M1133579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T09:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846960#M1133580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The source code of function modules (in functiongroup ZTST) can be found in LZTST&lt;STRONG&gt;U01 etc. Includes will be LZTST&lt;/STRONG&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;Hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 09:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846960#M1133580</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2008-12-04T09:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846961#M1133581</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 need to put in the name of the include&lt;/P&gt;&lt;P&gt;and not the FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 09:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846961#M1133581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T09:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846962#M1133582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As you have to search a string in a FM then it means that you have to read a function module so to do this go to transaction SE37 and then you write the name of a required FM and press the display tab .&lt;/P&gt;&lt;P&gt;then you can easily go through the FM and can search for the required string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 09:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846962#M1133582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T09:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846963#M1133583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use read textpools ,i think this includes function modules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 09:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846963#M1133583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T09:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846964#M1133584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay with include it works,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I want to scan all* function modules&lt;/P&gt;&lt;P&gt;(* frist I scan the first 1000 only).&lt;/P&gt;&lt;P&gt;can i read the include of some table? The column "include" of the table TFDIR has only numbers but no names.&lt;/P&gt;&lt;P&gt;and how can I get back the name of the function module if I have the include?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 09:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846964#M1133584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T09:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846965#M1133585</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;Use the following FM to get the include name of the function module.&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'FUNCTION_EXISTS'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            funcname           = lv_functionname&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            include            =  lv_include&lt;/P&gt;&lt;P&gt;            namespace        =  lv_namespace&lt;/P&gt;&lt;P&gt;            str_area           =    lv_str_area&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            function_not_exist = 1.&lt;/P&gt;&lt;P&gt;Now you can use lv_include as the program name in read report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vadivelan B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 09:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846965#M1133585</guid>
      <dc:creator>i048168</dc:creator>
      <dc:date>2008-12-04T09:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846966#M1133586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I think that schould work,&lt;/P&gt;&lt;P&gt;but now I understand one of the answears above, with adding an "L" before the name and adding the include number at the end. I think this solution is a little bit faster (´cause there are a lot of function modules to scan)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 09:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846966#M1133586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T09:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846967#M1133587</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;Yes you're right, u need a code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables: tfdir.

data: v_include   type trdir-NAME,
      v_funcgroup(30) type C.

parameters: p_func type tfdir-FUNCNAME.


select single * from tfdir where FUNCNAME = p_func.

v_funcgroup = TFDIR-PNAME+4.

concatenate 'L' v_funcgroup 'U' tfdir-INCLUDE into v_include.
condense v_include.

write: v_funcgroup, v_include.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm not sure this solution can be faster than call FUNCTION_EXISTS, because they do the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 10:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846967#M1133587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T10:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846968#M1133588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well the results are teh same but the function module FUNCTION_EXISTS has 130 lines of code (minus lines of comments). And at least with direct sql-statements you save 1 function call. It sound not much but SAP has more than 683  function modules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 10:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846968#M1133588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T10:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846969#M1133589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay my programm works.&lt;/P&gt;&lt;P&gt; But im still using  "....up to 1000 rows" in my select-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can I say something like: ".....where rownr between 1000 and 2000"? known from Oracle&lt;/P&gt;&lt;P&gt;than I can go trough the database step by step&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 10:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846969#M1133589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T10:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846970#M1133590</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 believe it can't do it, it can only indicate the max number of hits to be extracted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think every time a "SELECT" is open the cursor starts from the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to check the command OPEN CURSOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 11:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846970#M1133590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T11:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846971#M1133591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the good news is, that the number of function mudules is 10% of the the number of abap-reports, so I can go trough in 1 step. (takes less then 10 minutes)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 12:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846971#M1133591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T12:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: reading sourcecode of function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846972#M1133592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPES: BEGIN OF progstruc,&lt;/P&gt;&lt;P&gt;     name TYPE string,&lt;/P&gt;&lt;P&gt;     grp TYPE string,&lt;/P&gt;&lt;P&gt;     inclu TYPE string,&lt;/P&gt;&lt;P&gt;END OF progstruc.&lt;/P&gt;&lt;P&gt;DATA tmp0 TYPE progstruc.&lt;/P&gt;&lt;P&gt;DATA prog TYPE c LENGTH 60.&lt;/P&gt;&lt;P&gt;DATA itab TYPE TABLE OF string.&lt;/P&gt;&lt;P&gt;DATA iline TYPE string.&lt;/P&gt;&lt;P&gt;DATA tmp1 TYPE i.&lt;/P&gt;&lt;P&gt;DATA tmp2 TYPE i.&lt;/P&gt;&lt;P&gt;DATA prognames TYPE TABLE OF progstruc.&lt;/P&gt;&lt;P&gt;parameter strg TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select FUNCNAME PNAME INCLUDE&lt;/P&gt;&lt;P&gt;from TFDIR&lt;/P&gt;&lt;P&gt;into table prognames.&lt;/P&gt;&lt;P&gt;loop at prognames into tmp0.&lt;/P&gt;&lt;P&gt;  tmp0-grp = tmp0-grp+3.&lt;/P&gt;&lt;P&gt;  CONCATENATE '' tmp0-grp 'U' tmp0-inclu ''&lt;/P&gt;&lt;P&gt;  into prog.&lt;/P&gt;&lt;P&gt;  READ REPORT prog INTO itab.&lt;/P&gt;&lt;P&gt;  tmp1 = 0.&lt;/P&gt;&lt;P&gt;  tmp2 = sy-subrc.&lt;/P&gt;&lt;P&gt;  IF tmp2 = 0.&lt;/P&gt;&lt;P&gt;    LOOP AT itab into iline.&lt;/P&gt;&lt;P&gt;      SEARCH iline FOR strg.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        tmp1 = 1.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;    IF tmp1 = 1.&lt;/P&gt;&lt;P&gt;      WRITE : / tmp0-name.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2008 13:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-sourcecode-of-function-modules/m-p/4846972#M1133592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-04T13:20:46Z</dc:date>
    </item>
  </channel>
</rss>

