<?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: difference between refresh and clear[] . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948180#M390708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just  Consider all below  cases for internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR :  It will clear only Header of the internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh  : It will clear the Data in that internal table,but allocated memory will &lt;/P&gt;&lt;P&gt;               remain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Free  :  It will clear the data as well as allocated memory for that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. Mark if clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2007 06:38:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-07T06:38:16Z</dc:date>
    <item>
      <title>difference between refresh and clear[] .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948178#M390706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the main difference between refresh and clear [ ] and free.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948178#M390706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: difference between refresh and clear[] .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948179#M390707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refresh will clear the header line and the body of an internal table.&lt;/P&gt;&lt;P&gt;Clear will clear only the header if used on an internal table with a header line. On other variables, it will clear the contents.&lt;/P&gt;&lt;P&gt;Free will refresh the internal table and release the memory associated with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:35:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948179#M390707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: difference between refresh and clear[] .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948180#M390708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just  Consider all below  cases for internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR :  It will clear only Header of the internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh  : It will clear the Data in that internal table,but allocated memory will &lt;/P&gt;&lt;P&gt;               remain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Free  :  It will clear the data as well as allocated memory for that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. Mark if clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948180#M390708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: difference between refresh and clear[] .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948181#M390709</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;Initializing Internal Tables &lt;/P&gt;&lt;P&gt;Like all data objects, you can initialize internal tables with the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The memory space required for the table is released, except for the initial memory requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using internal tables with header lines, remember that the header line and the body of the table have the same name. If you want to address the body of the table itself, not the header line, during initialization using CLEAR, you must place two square brackets ([]) after the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that the table itself has been initialized, you can use the 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;This always applies to the body of the table. With REFRESH, too, the initial memory requirement fort he table remains reserved. To release this memory space, use the statement&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;You can use FREE to directly initialize an internal table and to release its entire memory space, including the initial memory requirement, without first using the REFRESH or CLEAR statements. Like REFRESH, FREEaccesses the table body, not the table work area. After a FREEstatement, the internal table still exists. 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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948181#M390709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: difference between refresh and clear[] .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948182#M390710</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 - Clears the contents of the internal table (i.e., the records in the internal table will be deleted).&lt;/P&gt;&lt;P&gt;CLEAR - Clear the contents of the internal table with respect to internal table without header line. Incase of internal table with header line it clears only header line. If you want to clear the contents of the internal table with header line then you can use CLEAR[], which clears the body of the internal table with header line and not the header.(CLEAR[] is same like REFRESH)&lt;/P&gt;&lt;P&gt;FREE - Clears the memory occupied by the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948182#M390710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: difference between refresh and clear[] .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948183#M390711</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;CLEAR &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;statement. This statement restores an internal table to the state it was in immediately after you&lt;/P&gt;&lt;P&gt;declared it. This means that the table contains no lines. However, the memory already occupied&lt;/P&gt;&lt;P&gt;by the memory up until you cleared it remains allocated to the table.&lt;/P&gt;&lt;P&gt;If you are using internal tables with header lines, remember that the header line and the body of&lt;/P&gt;&lt;P&gt;the table have the same name. If you want to address the body of the table in a comparison, you&lt;/P&gt;&lt;P&gt;must place two brackets ([ ]) after the table name.&lt;/P&gt;&lt;P&gt;CLEAR &amp;lt;itab&amp;gt;[].&lt;/P&gt;&lt;P&gt;To ensure that the table itself has been initialized, you can use the&lt;/P&gt;&lt;P&gt;REFRESH &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;statement. This always applies to the body of the table. As with the CLEAR statement, the&lt;/P&gt;&lt;P&gt;memory used by the table before you initialized it remains allocated. To release the memory&lt;/P&gt;&lt;P&gt;space, use the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948183#M390711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: difference between refresh and clear[] .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948184#M390712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1. Clear ITAB  : This Statement will clear the Internal Table Header content.&lt;/P&gt;&lt;P&gt;To clear the Intertal Table Header as well Body we can use Clear ITAB [ ] statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Refresh will deletes the Internal Table content but still memory is not freed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.  Free statement is used to deallocate the memory of internal table&lt;/P&gt;&lt;P&gt;    Free itab :This statement is used to deallocate the memory of internal table itab&lt;/P&gt;&lt;P&gt;    &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 06:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948184#M390712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T06:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: difference between refresh and clear[] .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948185#M390713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To ensure that the table itself has been initialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u give an example that what a table itself initialized.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 07:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948185#M390713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T07:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: difference between refresh and clear[] .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948186#M390714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;To ensure that the table itself has been initialized, you can use the statement&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;REFRESH itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_int_tables_clear.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF line,&lt;/P&gt;&lt;P&gt;         col1(1) TYPE c,&lt;/P&gt;&lt;P&gt;         col2(1) TYPE c,&lt;/P&gt;&lt;P&gt;      END OF line.&lt;/P&gt;&lt;P&gt;DATA itab LIKE TABLE OF line.&lt;/P&gt;&lt;P&gt;line-col1 = 'A'. line-col2 = 'B'.&lt;/P&gt;&lt;P&gt;APPEND line TO itab.&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;IF itab IS INITIAL.&lt;/P&gt;&lt;P&gt;  WRITE 'itab is empty'.&lt;/P&gt;&lt;P&gt;  FREE itab.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list output is:&lt;/P&gt;&lt;P&gt;itab is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;An internal table itab is filled and then initialized with REFRESH. The IF statement uses the expression itab IS INITIAL to find out whether itab is empty. If so, the memory is released.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 07:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-refresh-and-clear/m-p/1948186#M390714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T07:30:35Z</dc:date>
    </item>
  </channel>
</rss>

