<?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: what is the main deference in free, refresh,clear? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778080#M647579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani..&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;or &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;Both Above statements will delete the Data from internal table (body) .&lt;/P&gt;&lt;P&gt;But the Memory is still allocated.&lt;/P&gt;&lt;P&gt;&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;This statement will Deallocate the Memory of Internal  Table along with deletion of Records.&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2007 06:38:07 GMT</pubDate>
    <dc:creator>varma_narayana</dc:creator>
    <dc:date>2007-08-30T06:38:07Z</dc:date>
    <item>
      <title>what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778075#M647574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the main deference in free, refresh,clear, &lt;/P&gt;&lt;P&gt;and how to deffer defferent tables like cluster, pooled,Trasparent ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 06:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778075#M647574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T06:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778076#M647575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pooled table                                                                                &lt;/P&gt;&lt;P&gt;Pooled tables can be used to store control data (e.g. screen sequences,  &lt;/P&gt;&lt;P&gt;     program parameters or temporary data). Several pooled tables can be      &lt;/P&gt;&lt;P&gt;     combined to form a table pool. The table pool corresponds to a physical  &lt;/P&gt;&lt;P&gt;     table on the database in which all the records of the allocated pooled   &lt;/P&gt;&lt;P&gt;     tables are stored.                                                                                &lt;/P&gt;&lt;P&gt;Cluster table                                                                                &lt;/P&gt;&lt;P&gt;Cluster tables contain continuous text, for example, documentation.         &lt;/P&gt;&lt;P&gt;     Several cluster tables can be combined to form a table cluster. Several     &lt;/P&gt;&lt;P&gt;     logical lines of different tables are combined to form a physical record    &lt;/P&gt;&lt;P&gt;     in this table type. This permits object-by-object storage or                &lt;/P&gt;&lt;P&gt;     object-by-object access. In order to combine tables in clusters, at least   &lt;/P&gt;&lt;P&gt;     parts of the keys must agree. Several cluster tables are stored in one      &lt;/P&gt;&lt;P&gt;     corresponding table on the database.                        &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transparent table                                                                                &lt;/P&gt;&lt;P&gt;There is a physical table on the database for each transparent table. The &lt;/P&gt;&lt;P&gt;     names of the physical tables and the logical table definition in the      &lt;/P&gt;&lt;P&gt;     ABAP/4 Dictionary correspond.                                                                                &lt;/P&gt;&lt;P&gt;All business data and application data are stored in transparent tables.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE&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;&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, though the entire memory area occupied by the table rows is released, and the initial memory area remains unoccupied. If dobj is a structure with table-like components, the memory of each table-like component is released. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE THE KEYWORD IN EDITOR AND PRESS F1 ON IT.&lt;/P&gt;&lt;P&gt;U'L BE CLEARED U R DOUBTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 06:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778076#M647575</guid>
      <dc:creator>SantoshKallem</dc:creator>
      <dc:date>2007-08-30T06:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778077#M647576</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;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;FREE&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE dobj. &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;&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, though the entire memory area occupied by the table rows is released, and the initial memory area remains unoccupied. If dobj is a structure with table-like components, the memory of each table-like component is released. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;REFRESH&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; itab. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This statement sets an internal table itab to its initial value, meaning that it deletes all rows of the internal table. The memory space required for the table is freed up to the initial memory size INITIAL SIZE. For itab, you must specify an internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To delete all rows and free the entire memory space occupied by rows, you can use the statement FREE. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The statement REFRESH itab acts for all internal tables like CLEAR itab[]. If an internal table itab has a header line, then the table body and not the header line is initialized. If the internal table itab has no header line, REFRESH itab acts like CLEAR itab. Therefore, you should always use CLEAR instead of REFRESH. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;CLEAR dobj&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt; [ {WITH val [IN {BYTE|CHARACTER} MODE] } &lt;/P&gt;&lt;P&gt;           | {WITH NULL} ]. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1. ... WITH val [IN {BYTE|CHARACTER} MODE] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... WITH NULL &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Without the optional additions, the data object dobj is assigned the type-specific initial value. The following applies: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial values are assigned to elementary data types according to the table of built-in ABAP types. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference variables are assigned null references. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structures are set to their initial values component by component. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All rows in an internal table are deleted. All the memory required for the table, except for the initial memory requirement, is released (see Declaring Internal Tables). The FREE statement is used to release the memory space occupied by the rows of internal tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The optional additions allow you to fill the spaces of a data object with other values than the initial value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If dobj is an internal table with a header line, you must specify dobj[] to delete the rows, otherwise only the header line will be deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFULL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 06:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778077#M647576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T06:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778078#M647577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 06:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778078#M647577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T06:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778079#M647578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi phani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR : sets the variable/structure to its initial value. In case of internal tables: w/o hedaer line: deletes the lines of the internal table, internal table with header line: deletes the header line, if you want to delete the lines of internal table, than you have to use: CLEAR itab[]&lt;/P&gt;&lt;P&gt;FREE : works like CLEAR, but not for internal tables (anything else)&lt;/P&gt;&lt;P&gt;REFRESH : only for internal tables , works like CLEAR itab[]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 06:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778079#M647578</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-08-30T06:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778080#M647579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani..&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;or &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;Both Above statements will delete the Data from internal table (body) .&lt;/P&gt;&lt;P&gt;But the Memory is still allocated.&lt;/P&gt;&lt;P&gt;&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;This statement will Deallocate the Memory of Internal  Table along with deletion of Records.&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 06:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778080#M647579</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-30T06:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778081#M647580</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;Both CLEAR naf REFRESH behaviour is same for TABLE WITH OUT HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a TABLE WITH HEADER LINE if you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: ITAB, it clears header line, but table is there you need to use &lt;/P&gt;&lt;P&gt;CLEAR: itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use REFRESH: ITAB it clears only the Table not the header line, you have to use CLEAR: itab to clear the header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE: clears the data and frees the memory allocated too.&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>Thu, 30 Aug 2007 06:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778081#M647580</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-30T06:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778082#M647581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Phani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;free-- Reset to appropriate initial value for type, including release&lt;/P&gt;&lt;P&gt; of resources&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear --- initial value qwill be assigned to the variables. u can clear strcutre and headers of internal table as well &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh---- clears body of intrernal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more details are given bellow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FREE&amp;lt;/b&amp;gt;...&lt;/P&gt;&lt;P&gt; Reset to appropriate initial value for type, including release&lt;/P&gt;&lt;P&gt; of resources&lt;/P&gt;&lt;P&gt; - FREE f.&lt;/P&gt;&lt;P&gt;&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;&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;&amp;lt;b&amp;gt; CLEAR&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt; Basic form    CLEAR f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               Additions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               1. ... WITH g&lt;/P&gt;&lt;P&gt;               2. ... WITH NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Effect        Resets the contents of f to its initial value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REFRESH&amp;lt;/b&amp;gt; - Delete an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              Variants:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              1. REFRESH itab.&lt;/P&gt;&lt;P&gt;              2. REFRESH itab FROM TABLE dbtab.&lt;/P&gt;&lt;P&gt;              3. REFRESH itab FROM SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 1     REFRESH itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect        The internal table itab is reset to its initial state, i.e.&lt;/P&gt;&lt;P&gt;              all table entries are deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              The return code SY-SUBRC is undefined&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes         -  The header entry of a table with a header line remains&lt;/P&gt;&lt;P&gt;                 unchanged. It can be reset to its initial value using&lt;/P&gt;&lt;P&gt;                 CLEAR.&lt;/P&gt;&lt;P&gt;              -  FREE itab can be used to free up the memory allocated to&lt;/P&gt;&lt;P&gt;                 the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2     REFRESH itab FROM TABLE dbtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note          This variant is no longer maintained and should no longer be&lt;/P&gt;&lt;P&gt;              used (see also obsolete key words). Please use the SELECT ...&lt;/P&gt;&lt;P&gt;              INTO TABLE statement instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect        The internal table itab is deleted and it is then filled with&lt;/P&gt;&lt;P&gt;              the contents of the database table dbtab.&lt;/P&gt;&lt;P&gt;              A generic argument can be used to specify a restriction to a&lt;/P&gt;&lt;P&gt;              particular part of the database table when filling (LOOP AT&lt;/P&gt;&lt;P&gt;              dbtab, READ TABLE dbtab).&lt;/P&gt;&lt;P&gt;              The table dbtab must be declared in the program using TABLES.&lt;/P&gt;&lt;P&gt;               The return code SY-SUBRC is undefined&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Example       Delete an internal table MESSAGES, then fill the table with&lt;/P&gt;&lt;P&gt;               all messages from the table T100 with language key 'D' and ID&lt;/P&gt;&lt;P&gt;               'RF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               TABLES T100.&lt;/P&gt;&lt;P&gt;               DATA MESSAGES TYPE TABLE OF T100 WITH HEADER LINE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               MESSAGES-TEXT = 'Delete me'.&lt;/P&gt;&lt;P&gt;               APPEND MESSAGES.&lt;/P&gt;&lt;P&gt;               T100-SPRSL = 'E'.&lt;/P&gt;&lt;P&gt;               T100-ARBGB = 'RF'.&lt;/P&gt;&lt;P&gt;               REFRESH MESSAGES FROM TABLE T100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Variant 3     REFRESH itab FROM SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Note          This variant is no longer supported (see also obsolete key&lt;/P&gt;&lt;P&gt;               words). The equivalent functionality is now available in the&lt;/P&gt;&lt;P&gt;               function module RS_REFRESH_FROM_SELECTOPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Effect        Deletes the internal table itab and then transfers the&lt;/P&gt;&lt;P&gt;               database selections and the selection parameters together with&lt;/P&gt;&lt;P&gt;               the values entered by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Notes         Performance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               The runtime required to delete an internal table depends on&lt;/P&gt;&lt;P&gt;               the amount of memory previously occupied by that table.&lt;/P&gt;&lt;P&gt;               Resetting a small internal table takes around 15 msn (standard&lt;/P&gt;&lt;P&gt;               microseconds). Resetting a 200 KB table takes around 400 msn,&lt;/P&gt;&lt;P&gt;               and a 1 MB table, around 3000 msn.&lt;/P&gt;&lt;P&gt;               If the internal table has an index or a hash table (because it&lt;/P&gt;&lt;P&gt;               was edited using INSERT, DELETE, SORT or COLLECT), the runtime&lt;/P&gt;&lt;P&gt;               increases slightly, since the index or hash table has to be&lt;/P&gt;&lt;P&gt;               released as well as the table itself.&lt;/P&gt;&lt;P&gt; Notes         Runtime errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               REFRESH_NO_SHORT_MEMORY: No more memory available to create&lt;/P&gt;&lt;P&gt;               the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               For predefined types (see DATA), the following initial values&lt;/P&gt;&lt;P&gt;               are used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 Type C:      '  ... ' (blank character)&lt;/P&gt;&lt;P&gt;                 Type N:      '00...0'&lt;/P&gt;&lt;P&gt;                 Type &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;      '00000000'&lt;/P&gt;&lt;P&gt;                 Type T:      '000000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 Type I:      0&lt;/P&gt;&lt;P&gt;                 Type P:      0&lt;/P&gt;&lt;P&gt;                 Type F:      0.0E+00&lt;/P&gt;&lt;P&gt;                 Type X:      0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 Type STRING: '' (empty string)&lt;/P&gt;&lt;P&gt;                 Type XSTRING:   '' (empty byte sequence)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               If f is a field string, each component field is reset to its&lt;/P&gt;&lt;P&gt;               initial value. If it is an internal table without a header&lt;/P&gt;&lt;P&gt;               line, the entire table is deleted together with all its&lt;/P&gt;&lt;P&gt;               entries. If, however, f is an internal table with a header&lt;/P&gt;&lt;P&gt;               line, only the sub-fields in the table header entry are reset&lt;/P&gt;&lt;P&gt;               to their initial values.&lt;/P&gt;&lt;P&gt; Example&lt;/P&gt;&lt;P&gt;               DATA: TEXT(10)       VALUE 'Hello',&lt;/P&gt;&lt;P&gt;                     NUMBER TYPE I  VALUE 12345,&lt;/P&gt;&lt;P&gt;                     ROW(10) TYPE N VALUE '1234567890',&lt;/P&gt;&lt;P&gt;                     BEGIN OF PLAYER,&lt;/P&gt;&lt;P&gt;                       NAME(10)      VALUE 'John',&lt;/P&gt;&lt;P&gt;                       TEL(8) TYPE N VALUE '08154711',&lt;/P&gt;&lt;P&gt;                       MONEY  TYPE P VALUE 30000,&lt;/P&gt;&lt;P&gt;                     END   OF PLAYER.&lt;/P&gt;&lt;P&gt;               ...&lt;/P&gt;&lt;P&gt;               CLEAR: TEXT, NUMBER, PLAYER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               The field contents are now as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               ROW          = '1234567890'&lt;/P&gt;&lt;P&gt;               TEXT         = '          '&lt;/P&gt;&lt;P&gt;               NUMBER       = 0&lt;/P&gt;&lt;P&gt;               PLAYER-NAME  = '          '&lt;/P&gt;&lt;P&gt;               PLAYER-TEL   = '00000000'&lt;/P&gt;&lt;P&gt;               PLAYER-MONEY = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Notes         1. When CLEAR itab references an internal table itab with a&lt;/P&gt;&lt;P&gt;                  header line, it only resets the sub-fields in the header&lt;/P&gt;&lt;P&gt;                  entry to their initial values (as mentioned above). The&lt;/P&gt;&lt;P&gt;                  individual table entries remain unchanged.&lt;/P&gt;&lt;P&gt;                  To delete the entire internal table together with all its&lt;/P&gt;&lt;P&gt;                  entries, you can use CLEAR itab[] or REFRESH itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               2. Within a logical expression, you can use f IS INITIAL to&lt;/P&gt;&lt;P&gt;                  check that the field f contains the initial value&lt;/P&gt;&lt;P&gt;                  appropriate for its type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               3. Variables are normally initialized according to their type,&lt;/P&gt;&lt;P&gt;                  even if the specification of an explicit initial value&lt;/P&gt;&lt;P&gt;                  (addition "... VALUE lit" of the DATA statement) is&lt;/P&gt;&lt;P&gt;                  missing. For this reason, it is not necessary to initialize&lt;/P&gt;&lt;P&gt;                  variables again with CLEAR after defining them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Addition 1    ... WITH g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Effect        The field f is filled with the value of the first byte of the&lt;/P&gt;&lt;P&gt;               field g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Addition 2    ... WITH NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               This addition is not allowed in an ABAP Objects context. See&lt;/P&gt;&lt;P&gt;               CLEAR WITH NULL not allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Effect        Fills the field with hexadecimal zeros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Note          You should use this addition with particular care because the&lt;/P&gt;&lt;P&gt;               fields of most data types thus receive values which are really&lt;/P&gt;&lt;P&gt;               invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Note          Performance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               The runtime required to reset a field, a structure or the&lt;/P&gt;&lt;P&gt;               header line of an internal table increases with the size of&lt;/P&gt;&lt;P&gt;               the object. Resetting a field with type C and length 10 takes&lt;/P&gt;&lt;P&gt;               about 3 msn (standard microseconds); with length 100, this is&lt;/P&gt;&lt;P&gt;               around 8 msn, and with length 10000 around 60 msn.&lt;/P&gt;&lt;P&gt; Additional help Resetting Fields to Initial Values&lt;/P&gt;&lt;P&gt;               Initializing Internal Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 07:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778082#M647581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T07:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778083#M647582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai&lt;/P&gt;&lt;P&gt;clear : clears only work area(header line)&lt;/P&gt;&lt;P&gt;refresh: clears the body of the internal table.&lt;/P&gt;&lt;P&gt;free  : clears both header line and body of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ragards&lt;/P&gt;&lt;P&gt;ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 07:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778083#M647582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T07:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778084#M647583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in short ,&lt;/P&gt;&lt;P&gt;clear clears the header line.&lt;/P&gt;&lt;P&gt;refresh clears body of internal table&lt;/P&gt;&lt;P&gt;free clears the memory from apllication server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh = clear[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD ME IF USEFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 07:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778084#M647583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T07:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778085#M647584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Difference between Clear,Refresh and Free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR &amp;lt;internal table&amp;gt; statement &lt;/P&gt;&lt;P&gt;           Initialises the header line.&lt;/P&gt;&lt;P&gt;           Internal table lines remain unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH&amp;lt;internal table&amp;gt; statement&lt;/P&gt;&lt;P&gt;           Deletes all  able lines.&lt;/P&gt;&lt;P&gt;           Storage space is not released.&lt;/P&gt;&lt;P&gt;           Paging is released.&lt;/P&gt;&lt;P&gt;           Header line remains unchanged.&lt;/P&gt;&lt;P&gt;FREE&amp;lt;internal table&amp;gt;&lt;/P&gt;&lt;P&gt;           Deletes all table lines.&lt;/P&gt;&lt;P&gt;           Storage space is released.&lt;/P&gt;&lt;P&gt;           Header line remains unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CLEAR &amp;lt;internal table&amp;gt; statement initialises all single fields in the header line of an internal table according to type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The REFRESH &amp;lt;internal table&amp;gt; statement deletes all table lines.  The table storage space is not released.  The header line remains unchanged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FREE &amp;lt;internal table&amp;gt; statement releases the storage space required for a table.  The header line remains unchanged.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement is particularly useful for very large internal tables.  You can improve a program&amp;#146;s performance by &amp;#145;freeing&amp;#146; the memory space allocated for the internal table.&lt;/P&gt;&lt;P&gt;Internal tables that are local to a subroutine are automatically &amp;#145;freed&amp;#146; upon leaving the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Difference between cluster,pooled and Transparent Tables&lt;/P&gt;&lt;P&gt;Transparent Table:&lt;/P&gt;&lt;P&gt;In SAP R/3, aside from a few exceptions, the only way to access the database system and the tables within the database is via the ABAP/4 Data Dictionary interface. &lt;/P&gt;&lt;P&gt;For the majority of the tables, the ABAP/4 Data Dictionary provides a fully transparent interface to the database. This means all of the fields of a Dictionary table correspond to a field in the real database table. Since the data structure is visible in the Dictionary corresponds entirely to the structure of the table created by the database system, these tables are called transparent tables. A transparent table is a normalized table. SAP is slowly evolving all R/3 tables into transparent tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooled Tables:&lt;/P&gt;&lt;P&gt;Different tables which are not linked to each other with a common key can be combined into a Table Pool. The tables contained within this pool are called Pooled Tables. A table pool is stored in the database a simple table. The table's data sets contain, in separate fields, the actual key for the data set to be stored, the name of the pooled table and the contents of the data set to be stored. &lt;/P&gt;&lt;P&gt;Using this schema, several logical tables are combined into a single real database table. Although the data structure of each set is lost during the write to the table pool, it is restored during the read by the ABAP/4 Data Dictionary. The ABAP/4 Data Dictionary utilizes its meta-data to accomplish this. &lt;/P&gt;&lt;P&gt;Since information must be prepared (defined) within the ABAP/4 Data Dictionary when it is read or written to (or accessed), this process itself defines these as not transparent tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cluster Tables :&lt;/P&gt;&lt;P&gt;Occasionally, several tables may be linked by a common key. The ABAP/4 Data Dictionary can also combine these tables into a single table. Each data set of the real table within the database contains a key and in a single data field, several data sets of the subsequent table for this key. &lt;/P&gt;&lt;P&gt;As mentioned above, these table types require special data handling, therefore they are not transparent tables. &lt;/P&gt;&lt;P&gt;Note: Both Pooled and Cluster Tables are stored as tables within the database. Only the structures of the two table types which represent a single logical view of the data are defined within the ABAP/4 Data Dictionary. The data is actually stored in bulk storage in a different structure. These tables are commonly loaded into memory (i.e., 'buffered') due to the fact they are typically used for storing internal control information and other types of data with little or no external (business) relevance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manoj Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 08:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778085#M647584</guid>
      <dc:creator>former_member402443</dc:creator>
      <dc:date>2007-08-30T08:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: what is the main deference in free, refresh,clear?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778086#M647585</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;Let us follow with an internal (ITAB) with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR ITAB. clears only the heade line.&lt;/P&gt;&lt;P&gt;REFRESH ITAB. clears body of the internal table but not header line.&lt;/P&gt;&lt;P&gt;FREE  ITAB: it deallocates the memory of the ITAB and header line remains unchanged means values brought up in the header will not be cleared or deleted.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now let us follow with the a internal table with out header line.&lt;/P&gt;&lt;P&gt;CLEAR ITAB. clears all the contents of the intranal table since it does not have header line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and REFRESH and FREE works as above .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the point is when to use clear , refresh and free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear:for each time you loop the internal table  clear the header line before it goes to the next loop so that you wont get previous values into the next record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh: If you are done with an internal table and you want some other data into the same table then refesh the internal table and get othe data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Free: If you are done with the internal table and further you have nothing to do with that interanl table then use free statement so that the memory will be deallocated for that table.&lt;/P&gt;&lt;P&gt; For pooled and cluster table difference you have got lot of solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nageswar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 08:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-main-deference-in-free-refresh-clear/m-p/2778086#M647585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T08:58:09Z</dc:date>
    </item>
  </channel>
</rss>

