<?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: Main diff b/w free and refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805996#M655726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi N Naresh&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;            normally when you declare the variable . variable will occupy the space for the data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE and REFRESH is used for clearing the data in variable , though the entire memory area occupied by the table rows is released. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Wiboon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2007 04:24:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-03T04:24:25Z</dc:date>
    <item>
      <title>Main diff b/w free and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805990#M655720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;main diff b/w these two &lt;/P&gt;&lt;P&gt;what happends after declaring internal table liske this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 04:19:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805990#M655720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T04:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Main diff b/w free and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805991#M655721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Free is to free the grid/alv container/memory ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For internal table, you need to use REFRESH.&lt;/P&gt;&lt;P&gt;FOr workareas/structure/variables use CLEAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 04:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805991#M655721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T04:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Main diff b/w free and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805992#M655722</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;Free : It clears the contents of the internal table and deallocated the memory assoxiated with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh : It just clears the body of the internal table, doesnt deallocate menory space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 04:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805992#M655722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T04:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Main diff b/w free and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805993#M655723</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;free itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will remove the memory allocated and you cannot use it after this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clears off the data in the table and it that table can be used after this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to reuse the itab for differnent records with the same field&lt;/P&gt;&lt;P&gt;then go for refresh &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you dont want the itab after certain operations &lt;/P&gt;&lt;P&gt;go for free&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 04:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805993#M655723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T04:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Main diff b/w free and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805994#M655724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Free is used to clear all the memory values&lt;/P&gt;&lt;P&gt;Reset to appropriate initial value for type, including release of resources &lt;/P&gt;&lt;P&gt;- FREE f.&lt;/P&gt;&lt;P&gt;Release an area in the ABAP/4 memory &lt;/P&gt;&lt;P&gt;- FREE MEMORY.&lt;/P&gt;&lt;P&gt;Release the memory occupied by an external object &lt;/P&gt;&lt;P&gt;- FREE OBJECT obj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh is used to clear all the internal table contents.&lt;/P&gt;&lt;P&gt;refresh it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 04:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805994#M655724</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-09-03T04:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Main diff b/w free and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805995#M655725</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;refresh and free both we will use for clearing the internal table body.&lt;/P&gt;&lt;P&gt;but,refresh will initialize the internal table memory.&lt;/P&gt;&lt;P&gt;if it is occurs 0 it will be initialized to 8kbs,if it is occurs n it will initialize for n records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 04:23:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805995#M655725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T04:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Main diff b/w free and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805996#M655726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi N Naresh&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;            normally when you declare the variable . variable will occupy the space for the data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE and REFRESH is used for clearing the data in variable , though the entire memory area occupied by the table rows is released. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Wiboon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 04:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805996#M655726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T04:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Main diff b/w free and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805997#M655727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE : This statement deallocates the memory of the runtime object.. suppose that you say FREE itab, it will deallocate the memory allocated to this internal table at runtime..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens is, at the time of execution, when the first record is appended to the internal table, the system allocates a memory block for this table depending on the number in the OCCURS statement if any..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when you use the FREE statement, the system deallocates this memory block..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH : This statement clear the contents of the internal table, but does not deallocate the memory space..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE : In your program logic, when you are sure that a particular internal table is not going to be used after a certain point, then use FREE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH : When you want to clear the contents, but are going to populate the table with new data again, then use REFRESH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use FREE for table clearing, it makes bad impact on performance, because the system spends extra time in the allocation and deallocation of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2007 04:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/main-diff-b-w-free-and-refresh/m-p/2805997#M655727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-03T04:31:33Z</dc:date>
    </item>
  </channel>
</rss>

