<?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: when declaring class fo you refresh or clear it. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-declaring-class-fo-you-refresh-or-clear-it/m-p/6709265#M1453557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, you don't need to do it as it is local&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if global, you would not need it as catching exception would overwrite it anyway&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you needed, you should use CLEAR or FREE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Mar 2010 11:05:27 GMT</pubDate>
    <dc:creator>franois_henrotte</dc:creator>
    <dc:date>2010-03-18T11:05:27Z</dc:date>
    <item>
      <title>when declaring class fo you refresh or clear it.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-declaring-class-fo-you-refresh-or-clear-it/m-p/6709264#M1453556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a code as below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
      lc_oref         TYPE REF TO cx_root.

LOOP AT ITAB.
  
  
     TRY .
       
       DELETE FROM DATABASE " Try catch if delete from database fail
       
       CATCH cx_sy_open_sql_db INTO lc_oref.
         lv_text_change = lc_oref-&amp;gt;get_text( ).
     ENDTRY.  
  
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is do we need to clear or refresh lc_oref? since this is a local class.  how do we do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 10:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-declaring-class-fo-you-refresh-or-clear-it/m-p/6709264#M1453556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-18T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: when declaring class fo you refresh or clear it.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/when-declaring-class-fo-you-refresh-or-clear-it/m-p/6709265#M1453557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, you don't need to do it as it is local&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if global, you would not need it as catching exception would overwrite it anyway&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you needed, you should use CLEAR or FREE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 11:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/when-declaring-class-fo-you-refresh-or-clear-it/m-p/6709265#M1453557</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2010-03-18T11:05:27Z</dc:date>
    </item>
  </channel>
</rss>

