<?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: Adjust data declaration in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660286#M292695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are referring to declared variables that are not used in the program, you can obtain a list using the extended program check.  From SE38, go to Program-&amp;gt;Check-&amp;gt;Extended program check. Deselect all options except "Field attributes" and execute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 19:26:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T19:26:00Z</dc:date>
    <item>
      <title>Adjust data declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660285#M292694</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;If I created some data elements that I do not use anylonger is there a way to find out which are no longer used in my program (not manually)? I might have 50 of them and it is not efficient to go through each manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just like JavaWD has ADJUST IMPORTS feature that deletes imports that are not used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 19:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660285#M292694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T19:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust data declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660286#M292695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are referring to declared variables that are not used in the program, you can obtain a list using the extended program check.  From SE38, go to Program-&amp;gt;Check-&amp;gt;Extended program check. Deselect all options except "Field attributes" and execute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 19:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660286#M292695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T19:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust data declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660287#M292696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is exactly what I am referring to. However, it is not a program but  a method of a class. Also, I do not want to simply display them but to delete them. Is there a feature that will delete them automatically by my request?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 19:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660287#M292696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T19:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust data declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660288#M292697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Georgy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can perform the &amp;lt;b&amp;gt;Extended Program check&amp;lt;/b&amp;gt; which reveals the details of the Data elements which are declared but not being used anywhere in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SE38 editor Menu , Program -- &amp;gt; Check ---&amp;gt; Extended Program check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There in the  &amp;lt;b&amp;gt; Field Attributes&amp;lt;/b&amp;gt;  --&amp;gt; &amp;lt;b&amp;gt;Warnings&amp;lt;/b&amp;gt; section you can find all such fields with the following messge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;Field "fieldname' is not referenced statically in the program&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 19:34:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660288#M292697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T19:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust data declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660289#M292698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, thank you. As Michael pointed out I can do that. Unfortunately, this is not what I need. I do not want to look at them but rather delete them by request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at my post above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 19:38:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660289#M292698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T19:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust data declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660290#M292699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not quite what you are looking for, but you could write your own program for this.  The following call will pass the class and method, returning the program name of the source code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call method convert_type_and_name
     exporting mtdkey = mtdkey
               section_limu = seok_limu_method
     importing incname = program_name
     exceptions not_converted = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mtdkey is defined as type SEOCPDKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could call this and then use "READ REPORT program_name INTO itab" to import the source code into an internal table.  Form "checkDataFields" in include LSLINF09 has the code used for the standard extended program check and you could use some of this logic as a template.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 19:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adjust-data-declaration/m-p/1660290#M292699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T19:59:40Z</dc:date>
    </item>
  </channel>
</rss>

