<?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: Retrieving variables of program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799348#M1779609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 08:52:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-24T08:52:07Z</dc:date>
    <item>
      <title>Retrieving variables of program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799344#M1779605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am making a program which checks whether a program uses data declarations and makes a list with the found data elements. For example program below will result in following list.&lt;/P&gt;&lt;P&gt;Name is the name of the variable, objectname is the name of the type and local can be set in case of a like (objname can be a Z without it being a custom data element).&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Name&lt;BR /&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Type/like&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Objname&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Local&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;UT_CODE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;TYPE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;RSFB_SOURCE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;LW_CODE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;TYPE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;STRING&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;LS_RETURN&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;TYPE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;BAPIRET2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ZV_C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;NONE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;LV_CC&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;LIKE&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ZV_C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;X&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;REPORT z&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;test2&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;: &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;ut_code&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;rsfb_source&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;data&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;:&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;lw_code&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;string&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;. &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;data &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;ls_return &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;bapiret2&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;. &lt;/SPAN&gt;&lt;EM&gt;"CALL FUNCTION&lt;/EM&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;EM&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lw_objects TYPE gty_objects.&lt;/EM&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;data&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;: &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;zv_c&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;: &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;lv_cc&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;LikE &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;zv_c&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Now I've found FM WB_TREE_GET_OBJECTS but this only results in a list of global data declaration elements. If there is a subroutine it should also be checked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Is there anything I can use to retrieve a list of variables and its typing?&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Wim van Erp&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 09:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799344#M1779605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-22T09:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving variables of program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799345#M1779606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with below function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WB_TREE_GET_INCLUDE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rajesh&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 10:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799345#M1779606</guid>
      <dc:creator>former_member188282</dc:creator>
      <dc:date>2013-10-22T10:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving variables of program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799346#M1779607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This FM only returns the includes not the variables in the data declaration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Oct 2013 10:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799346#M1779607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-22T10:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving variables of program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799347#M1779608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using the debugger, all global variables are collectively visible in tab globals. When entering a subroutine all variables are collectively visible in tab locals. &lt;/P&gt;&lt;P&gt;Are these variables retrieved with some kind of call stack principle or is there another way?&lt;/P&gt;&lt;P&gt;And is it possible to retrieve those locally declared variables without executing the subroutine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Wim van Erp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 08:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799347#M1779608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-24T08:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving variables of program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799348#M1779609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 08:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799348#M1779609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-24T08:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving variables of program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799349#M1779610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you can use READ REPORT and SCAN ABAP-SOURCE statements to get tokens and statements internal tables, and then look for data statements that fall between form-endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 12:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799349#M1779610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-24T12:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving variables of program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799350#M1779611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try program 'RS_ABAP_SOURCE_SCAN' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deependra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 12:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-variables-of-program/m-p/9799350#M1779611</guid>
      <dc:creator>deependra_shekhawat3</dc:creator>
      <dc:date>2013-10-24T12:44:40Z</dc:date>
    </item>
  </channel>
</rss>

