<?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: Read ABAP codes from class method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-abap-codes-from-class-method/m-p/6198240#M1375668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel, thanks a lot for the help. This works perfectly! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2009 08:44:30 GMT</pubDate>
    <dc:creator>former_member367551</dc:creator>
    <dc:date>2009-10-20T08:44:30Z</dc:date>
    <item>
      <title>Read ABAP codes from class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-abap-codes-from-class-method/m-p/6198238#M1375666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way for me to read ABAP codes from a class method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that the methods can be found from the database table SEOCOMPO where CMPTYPE = 1. But I'm still unable to find a way to read the ABAP source codes of these methods (tried searching for the necessary FMs to accomplish this, but I can't get any too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, if there are any ideas at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 03:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-abap-codes-from-class-method/m-p/6198238#M1375666</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2009-10-08T03:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read ABAP codes from class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-abap-codes-from-class-method/m-p/6198239#M1375667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deborah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should have a look to MF SEO_METHOD_GET_SOURCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to fill MTDKEY with class name / method name and STATE with the state of activation of your method (in most of cases, you will have to put 'A' : activated)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : ls_mtdkey     TYPE seocpdkey,
         lt_source     TYPE TABLE OF edpline,
         lt_source_exp TYPE rswsourcet,
         ld_incname    TYPE program.

  ls_mtdkey-clsname = 'CL_ABAP_STRUCTDESCR'.
  ls_mtdkey-cpdname = 'CREATE'.

  CALL FUNCTION 'SEO_METHOD_GET_SOURCE'
    EXPORTING
      mtdkey          = ls_mtdkey
      state           = 'A'
    IMPORTING
      SOURCE          = lt_source
      source_expanded = lt_source_exp
      incname         = ld_incname
    EXCEPTIONS
      OTHERS          = 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 09:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-abap-codes-from-class-method/m-p/6198239#M1375667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T09:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Read ABAP codes from class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-abap-codes-from-class-method/m-p/6198240#M1375668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel, thanks a lot for the help. This works perfectly! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 08:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-abap-codes-from-class-method/m-p/6198240#M1375668</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2009-10-20T08:44:30Z</dc:date>
    </item>
  </channel>
</rss>

