<?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: CLASS where-used Function Module or Method? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-where-used-function-module-or-method/m-p/6925499#M1484931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to find any code that already does this, so I came up with the following&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check first 30 chars == clsname. remove filler '=' chars&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ld_clsname = p_obj_name(30).&lt;/P&gt;&lt;P&gt;  replace all occurrences of '=' in ld_clsname with ''.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;now read gt_seoclass to see if it is a class&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  read table gt_seoclass into ls_seoclass&lt;/P&gt;&lt;P&gt;       with key clsname = ld_clsname.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    move ld_clsname to p_obj_name_n.&lt;/P&gt;&lt;P&gt;    move 'CLAS' to p_obj_type.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_oo_classname_service=&amp;gt;get_all_method_includes&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      clsname            = clsname&lt;/P&gt;&lt;P&gt;    receiving&lt;/P&gt;&lt;P&gt;      result             = lt_result&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      class_not_existing = 1&lt;/P&gt;&lt;P&gt;      others             = 2.&lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;     read table lt_result into ls_result&lt;/P&gt;&lt;P&gt;          with key incname = ls_include-include.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 11:06:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-20T11:06:31Z</dc:date>
    <item>
      <title>CLASS where-used Function Module or Method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-where-used-function-module-or-method/m-p/6925498#M1484930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found function module RS_TYPE_IN_PROGRAMS that outputs a where-list for classes, but it only lists the programs as indicated by the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code would list all the classes too, but it will require additional processing to convert the INCLUDE fields to actual object names:&lt;/P&gt;&lt;P&gt;SELECT INCLUDE INTO LT_INCLUDES&lt;/P&gt;&lt;P&gt;WHERE "OTYPE" = 'TY'&lt;/P&gt;&lt;P&gt;AND "NAME" = 'ZCL_GENERIC_READ'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of a function module or method that returns a list of proper class names for a where-used on CLASS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and best regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-where-used-function-module-or-method/m-p/6925498#M1484930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T10:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: CLASS where-used Function Module or Method?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-where-used-function-module-or-method/m-p/6925499#M1484931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't seem to find any code that already does this, so I came up with the following&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check first 30 chars == clsname. remove filler '=' chars&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ld_clsname = p_obj_name(30).&lt;/P&gt;&lt;P&gt;  replace all occurrences of '=' in ld_clsname with ''.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;now read gt_seoclass to see if it is a class&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  read table gt_seoclass into ls_seoclass&lt;/P&gt;&lt;P&gt;       with key clsname = ld_clsname.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    move ld_clsname to p_obj_name_n.&lt;/P&gt;&lt;P&gt;    move 'CLAS' to p_obj_type.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_oo_classname_service=&amp;gt;get_all_method_includes&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      clsname            = clsname&lt;/P&gt;&lt;P&gt;    receiving&lt;/P&gt;&lt;P&gt;      result             = lt_result&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      class_not_existing = 1&lt;/P&gt;&lt;P&gt;      others             = 2.&lt;/P&gt;&lt;P&gt;   if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;     read table lt_result into ls_result&lt;/P&gt;&lt;P&gt;          with key incname = ls_include-include.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 11:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-where-used-function-module-or-method/m-p/6925499#M1484931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T11:06:31Z</dc:date>
    </item>
  </channel>
</rss>

