<?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 checking whether function module is obsolete or not in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-function-module-is-obsolete-or-not/m-p/5379981#M1237295</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 developing a program that will have a selection screen where we can input name of the report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that report program the program that i am developing has to check if it has any obsolete function modules like upload,download are obsolete function modules.the table that gives this data is RODIR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my report program must tel the function modules that are obsolete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i pick the name of the function module used in the program.i have taken the report program in to internal table..so here how can i get the name of the function  module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2009 09:31:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-02T09:31:01Z</dc:date>
    <item>
      <title>checking whether function module is obsolete or not</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-function-module-is-obsolete-or-not/m-p/5379981#M1237295</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 developing a program that will have a selection screen where we can input name of the report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that report program the program that i am developing has to check if it has any obsolete function modules like upload,download are obsolete function modules.the table that gives this data is RODIR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my report program must tel the function modules that are obsolete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i pick the name of the function module used in the program.i have taken the report program in to internal table..so here how can i get the name of the function  module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 09:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-function-module-is-obsolete-or-not/m-p/5379981#M1237295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T09:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: checking whether function module is obsolete or not</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-function-module-is-obsolete-or-not/m-p/5379982#M1237296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM 'REPOSITORY_ENVIRONMENT_ALL' to get FM for a program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass Obj_type = PROG&lt;/P&gt;&lt;P&gt;check all the checkbox for ENVIRONMENT_TYPES&lt;/P&gt;&lt;P&gt;object_name = program name&lt;/P&gt;&lt;P&gt;Deep = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get FM used inside the program, then goto RODIR table and get whether it is obsolete or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 09:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-function-module-is-obsolete-or-not/m-p/5379982#M1237296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T09:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: checking whether function module is obsolete or not</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-function-module-is-obsolete-or-not/m-p/5379983#M1237297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[function module used in the program|https://forums.sdn.sap.com/click.jspa?searchID=24370095&amp;amp;messageID=5842747]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 09:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-function-module-is-obsolete-or-not/m-p/5379983#M1237297</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-04-02T09:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: checking whether function module is obsolete or not</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-function-module-is-obsolete-or-not/m-p/5379984#M1237298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZSEARCH.
PARAMETERS: P_NAME LIKE D010SINF-PROG.
DATA: PROGTXT(72) TYPE C OCCURS 0 WITH HEADER LINE.
DATA: FUNCT TYPE RS38L_FNAM OCCURS 0 WITH HEADER LINE.

READ REPORT P_NAME INTO PROGTXT.
LOOP AT PROGTXT.
  IF PROGTXT CS 'CALL FUNCTION'.
    SEARCH PROGTXT FOR ''''.
    IF SY-SUBRC = 0.
      DO.
        SHIFT PROGTXT LEFT BY 1 PLACES.
        IF PROGTXT(1) = ''''.
          SHIFT PROGTXT LEFT BY 1 PLACES.
          DO.
            SHIFT PROGTXT RIGHT BY 1 PLACES.
            IF PROGTXT+71(1) = ''''.
              SHIFT PROGTXT RIGHT BY 1 PLACES.
              CONDENSE PROGTXT.
              FUNCT = PROGTXT. COLLECT FUNCT. EXIT.
            ENDIF.
          ENDDO.
          EXIT.
        ENDIF.
      ENDDO.
    ENDIF.
  ENDIF.
ENDLOOP.
LOOP AT FUNCT.
  WRITE: FUNCT. NEW-LINE.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 09:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-whether-function-module-is-obsolete-or-not/m-p/5379984#M1237298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T09:58:47Z</dc:date>
    </item>
  </channel>
</rss>

