<?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: refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614453#M599979</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 ITAB - CLEARS the Body &lt;/P&gt;&lt;P&gt;FREE ITAB - Removes the internal table from the memory itself &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;This always applies to the body of the table. As with the CLEAR statement, the memory used by the table before you initialized it remains allocated. To release the memory space, use the statement&lt;/P&gt;&lt;P&gt;FREE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;You can use FREE to initialize an internal table and release its memory space without first using the REFRESH or CLEAR statement. Like REFRESH, FREE works on the table body, not on the table work area. After a FREE statement, you can address the internal table again. It still occupies the amount of memory required for its header (currently 256 bytes). When you refill the table, the system has to allocate new memory space to the lines.&lt;/P&gt;&lt;P&gt;Free&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/free.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/free.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Refresh&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/refresh.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/refresh.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 12:40:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T12:40:44Z</dc:date>
    <item>
      <title>refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614448#M599974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;whether REFRESH will erase contains of header and content of internal table, if table is declared as int. table with header line?&lt;/P&gt;&lt;P&gt;whether FREE will erase the contents of int. table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614448#M599974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614449#M599975</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;NO it only erases the table, the header is still there with the data. And also the memory alocated to the table is still there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE will free the memory also along with the Internal table content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats why HEADER LINE is obsolete &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test using this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE TABLE OF spfli WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM spfli INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab INDEX 1.&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;WRITE: itab-carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you reward people who gave you good answers you get one point &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614449#M599975</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-25T12:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614450#M599976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refresh will clear the contents of both the header line and the body of the internal table. Free will clear both and release the memory allocated as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark points if the solution was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614450#M599976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614451#M599977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;refresh&amp;lt;/b&amp;gt; will clear the contents of internal table leaving behind the header line data. to clear header line data u need to use &amp;lt;b&amp;gt;clear&amp;lt;/b&amp;gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;free&amp;lt;/b&amp;gt; statement will clear contents of internal table as well as header line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614451#M599977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614452#M599978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi javed,&lt;/P&gt;&lt;P&gt;REFRESH will clear the header part, the baody remains the same...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and FREE will clear the contens of internal table also the BODY gets freezed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward incase usefull...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614452#M599978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614453#M599979</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 ITAB - CLEARS the Body &lt;/P&gt;&lt;P&gt;FREE ITAB - Removes the internal table from the memory itself &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;This always applies to the body of the table. As with the CLEAR statement, the memory used by the table before you initialized it remains allocated. To release the memory space, use the statement&lt;/P&gt;&lt;P&gt;FREE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;You can use FREE to initialize an internal table and release its memory space without first using the REFRESH or CLEAR statement. Like REFRESH, FREE works on the table body, not on the table work area. After a FREE statement, you can address the internal table again. It still occupies the amount of memory required for its header (currently 256 bytes). When you refill the table, the system has to allocate new memory space to the lines.&lt;/P&gt;&lt;P&gt;Free&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/free.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/free.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Refresh&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/refresh.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/refresh.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614453#M599979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614454#M599980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;free will not clear the header line i tried it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614454#M599980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614455#M599981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;FREE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FREE statement has the same effect as the CLEAR &lt;/P&gt;&lt;P&gt;statement for any data objects except internal tables. &lt;/P&gt;&lt;P&gt;For internal tables, FREE has the same effect as the REFRESH statement. It releases the entire memory area occupied by the table rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;If dobj is an internal table with a header line , FREE has the same effect as REFRESH on the table body, and not the header line.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 13:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614455#M599981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T13:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614456#M599982</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;If ew use REFRESH ITAB will delete all the entries from the table but the header line remains the same.&lt;/P&gt;&lt;P&gt;If you want to delete the header line also u have to use CLEAR.&lt;/P&gt;&lt;P&gt;FREE will release the memory allocated for that Table.&lt;/P&gt;&lt;P&gt;don't forget the reward&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;harris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 08:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614456#M599982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T08:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614457#M599983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abpes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do not used header line because coming all version do not supports header line concept.&lt;/P&gt;&lt;P&gt;so upgrated time so many probles do not used header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.7. we have used header line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2007 02:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614457#M599983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-28T02:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614458#M599984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it wont cleares the header line but cleares the body of the internal table but the memory allocated to this internat table not released .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but Free .&lt;/P&gt;&lt;P&gt;                it releases the memory allocated to this internal table .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2007 07:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614458#M599984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-29T07:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614459#M599985</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;With many correct answers,I saw answers, which were partly wrong,so to avoid confusion this is CORRECT answer to your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH - clears only BODY of itab(without memory clearing),HEADER left with its data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR - cleans HEADER,but leaves BODY of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE - clears itab from memory ,but LEAVES the HEADER LINE data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you found my answer helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yossi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2007 09:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh/m-p/2614459#M599985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-29T09:20:10Z</dc:date>
    </item>
  </channel>
</rss>

