<?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: Access Source Code of programs / functions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267679#M1529705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; Yeah.. I really meant a dynamic way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. imagine a situation in which i want to present the user the source of a class in a web-dynpro dynamically (==&amp;gt; the user can determine the name of the class). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or another situation: I want to analyse the source-code of classes dynamically for common faults and programming mistakes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Sep 2010 09:43:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-20T09:43:30Z</dc:date>
    <item>
      <title>Access Source Code of programs / functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267677#M1529703</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;Is it possible to access (read only of course) the Source-Code of class-methods / function modules &amp;amp; abap programs in ABAP?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module yy_test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION yy_test.

data yy_test_boolean type xfeld.

yy_test_boolean = 'X'.

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Webdynpro method:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Data lv_result type string.
CALL FUNCTION 'READ_FUNCTION_SOURCE'
EXPORTING iv_name = 'YY_TEST'
IMPORITNG ev_source = lv_result.

==&amp;gt; lv_result = 'function yy_testndata yy_test_boolean type xfeld. \n\nyy_test_boolean = 'X'.\nendfunction'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Timo Stark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 07:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267677#M1529703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-20T07:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Access Source Code of programs / functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267678#M1529704</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;  To access source code of class methods , go to transaction se24 , &lt;/P&gt;&lt;P&gt;Give the class name , you will get all methods , attributes etc .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on the method to read the code.(Its only read only though).&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;Aditya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 08:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267678#M1529704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-20T08:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Access Source Code of programs / functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267679#M1529705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; Yeah.. I really meant a dynamic way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. imagine a situation in which i want to present the user the source of a class in a web-dynpro dynamically (==&amp;gt; the user can determine the name of the class). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or another situation: I want to analyse the source-code of classes dynamically for common faults and programming mistakes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 09:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267679#M1529705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-20T09:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Access Source Code of programs / functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267680#M1529706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This isn't really a web dynpro ABAP directly related question.  You might want to use the source in a WD application, but actually retrieving the source code is not WD specific. I am going to move this question to ABAP General, but you should also search that forum or look at the source of the SAPlink project (or perform a trace during editing in SE80).  There are internal APIs used within the workbench for accessing the class method's source code for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;Moderator note: moved thread from Web Dynpro ABAP forum to ABAP General&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Jung on Sep 20, 2010 8:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 12:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267680#M1529706</guid>
      <dc:creator>thomas_jung</dc:creator>
      <dc:date>2010-09-20T12:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access Source Code of programs / functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267681#M1529707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are several FM´s that can read sources e.G. RV_READ_REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reports are stored in table REPOSRC. hope this will get you a bit further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 12:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-source-code-of-programs-functions/m-p/7267681#M1529707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-20T12:26:12Z</dc:date>
    </item>
  </channel>
</rss>

