<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365727#M180946</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 ITAB&lt;/P&gt;&lt;P&gt;When CLEAR itab references an internal table itab with a header line, it only resets the subfields in the header entry to their initial values (as mentioned above). The individual table entries remain unchanged. &lt;/P&gt;&lt;P&gt;To delete the entire internal table together with all its entries, you can use CLEAR itab[] or REFRESH itab. &lt;/P&gt;&lt;P&gt;REFRESH itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The internal table itab is reset to its initial state, i.e. all table entries are deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Der Return Code SY-SUBRC is undefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;The header entry of a table with a header line remains unchanged. It can be reset to its initial value using CLEAR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE ITAB&lt;/P&gt;&lt;P&gt;FREE itab can be used to free up the memory allocated to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Performance: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The runtime required to reset an internal table depends on 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 microseconds). Resetting a 200 KB table takes around 400 msn, 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 was edited using INSERT, DELETE, SORT or COLLECT), the runtime increases slightly, since the index or hash table has to be released as well as the table itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2 &lt;/P&gt;&lt;P&gt;REFRESH itab FROM TABLE dbtab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;This variant is no longer maintained and should no longer be used (see also obsolete key words). Please use the SELECT ... INTO TABLE statement instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The internal table itab is deleted and it is then filled with 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 particular part of the database table when filling (LOOP AT 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;&lt;/P&gt;&lt;P&gt;Der Return Code SY-SUBRC is undefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Delete an internal table MESSAGES, then fill the table with all messages from the table T100 with language key 'D' and ID 'RF'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3 &lt;/P&gt;&lt;P&gt;REFRESH itab FROM SELECT-OPTIONS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;This variant is no longer supported (see also obsolete key words). The equivalent functionality is now available in the function module RS_REFRESH_FROM_SELECTOPTIONS. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Deletes the internal table itab and then transfers the database selections and the selection parameters together with the values entered by the user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOPE THIS HELPS,&lt;/P&gt;&lt;P&gt;PRIYA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2006 11:08:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-19T11:08:45Z</dc:date>
    <item>
      <title>Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365725#M180944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the exact difference among clear , refresh and free.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365725#M180944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T11:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365726#M180945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear itab - clears only header line&lt;/P&gt;&lt;P&gt;refresh itab- clears body of the internal table&lt;/P&gt;&lt;P&gt;Free itab - clears a internal table from memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it  deletes the internal table from the memory itself&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CLEAR ITAB[] does the same thing as REFRESH ITAB.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&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. &lt;/P&gt;&lt;P&gt;Like REFRESH, FREE works on the table body, not on the table work area.&lt;/P&gt;&lt;P&gt; 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;&lt;/P&gt;&lt;P&gt; it is better practice to use the FREE ITAB command whenever possible as it will maximise system resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you free the memory allocated to this internal table, the memory could be allocated to another program or another data object in the same program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb384e358411d1829f0000e829fbfe/content.htm&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365726#M180945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T11:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365727#M180946</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 ITAB&lt;/P&gt;&lt;P&gt;When CLEAR itab references an internal table itab with a header line, it only resets the subfields in the header entry to their initial values (as mentioned above). The individual table entries remain unchanged. &lt;/P&gt;&lt;P&gt;To delete the entire internal table together with all its entries, you can use CLEAR itab[] or REFRESH itab. &lt;/P&gt;&lt;P&gt;REFRESH itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The internal table itab is reset to its initial state, i.e. all table entries are deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Der Return Code SY-SUBRC is undefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;The header entry of a table with a header line remains unchanged. It can be reset to its initial value using CLEAR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE ITAB&lt;/P&gt;&lt;P&gt;FREE itab can be used to free up the memory allocated to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Performance: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The runtime required to reset an internal table depends on 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 microseconds). Resetting a 200 KB table takes around 400 msn, 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 was edited using INSERT, DELETE, SORT or COLLECT), the runtime increases slightly, since the index or hash table has to be released as well as the table itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2 &lt;/P&gt;&lt;P&gt;REFRESH itab FROM TABLE dbtab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;This variant is no longer maintained and should no longer be used (see also obsolete key words). Please use the SELECT ... INTO TABLE statement instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The internal table itab is deleted and it is then filled with 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 particular part of the database table when filling (LOOP AT 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;&lt;/P&gt;&lt;P&gt;Der Return Code SY-SUBRC is undefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Delete an internal table MESSAGES, then fill the table with all messages from the table T100 with language key 'D' and ID 'RF'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3 &lt;/P&gt;&lt;P&gt;REFRESH itab FROM SELECT-OPTIONS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;This variant is no longer supported (see also obsolete key words). The equivalent functionality is now available in the function module RS_REFRESH_FROM_SELECTOPTIONS. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Deletes the internal table itab and then transfers the database selections and the selection parameters together with the values entered by the user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOPE THIS HELPS,&lt;/P&gt;&lt;P&gt;PRIYA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365727#M180946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T11:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365728#M180947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CLEAR --&amp;gt; Clears only header of internaltable&lt;/P&gt;&lt;P&gt;REFRESH --&amp;gt; Clears the body of internal ltable&lt;/P&gt;&lt;P&gt;FREE --&amp;gt; clears internal table from memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Chandrasekhar Jagarlamudi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:08:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365728#M180947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T11:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365729#M180948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CLEAR -- CLEARS THE CONTENTS OF HEADER OF ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH -- IN CASE OF REAL TIME WHEN THE DATA GETS UPLOADED INTO DATABASE FREQUENTLY REFRESH AGAIN FILLS THE ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE -- FREES THE MEMORY ALLOCATED FOR THE ITAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:09:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365729#M180948</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2006-05-19T11:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365730#M180949</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 will delete the contents of an line/structure/variable.&lt;/P&gt;&lt;P&gt;Refresh will delete the contents/records in the internal table.&lt;/P&gt;&lt;P&gt;Free will delete the contents of an internal table, as well as deleting the memory usage of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is useful, award ponts pls..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharadwaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365730#M180949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T11:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365731#M180950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Clear:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;If f is a field string, each component field is reset to its initial value. If it is an internal table without a header line, the entire table is deleted together with all its entries. If, however, f is an internal table with a header line, only the sub-fields in the table header entry are reset to their initial values. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Free:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;If f is an internal table with header line (where the name f in a sense has two meanings) the statement FREE f refers to the body of the table, and the statement CLEAR f refers to the header line. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Refresh:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The internal table itab is reset to its initial state, i.e. all table entries are deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Hope This Info Helps YOU.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365731#M180950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T11:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365732#M180951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clear : Used to clear the variables, Work Areas and structure contents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh : Used to clear the contents of internal tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Free : Deallocates the memory held by internal tables, global variables etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365732#M180951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T11:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365733#M180952</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 is used to clear the variable, header and also you can use it to refresh the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear var.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;clear itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh is used to refrsh the contents of internal table&lt;/P&gt;&lt;P&gt;refresh itab.&lt;/P&gt;&lt;P&gt;free&lt;/P&gt;&lt;P&gt;it is used to free the object or variable, or itabs.&lt;/P&gt;&lt;P&gt;free var.&lt;/P&gt;&lt;P&gt;free itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365733#M180952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T11:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365734#M180953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi balakrishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To get a taste of it,&lt;/P&gt;&lt;P&gt;   just copy paste in new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Just see the table ITAB in debugging mode,&lt;/P&gt;&lt;P&gt;   at various break-points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------" /&gt;&lt;P&gt;data : itab like table of t001 with header line.&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;select * from t001 into table itab.&lt;/P&gt;&lt;P&gt;read table itab index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;clear itab. "===== header line gets cleared&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;clear itab[]. "====== same as refresh itab&lt;/P&gt;&lt;P&gt;refresh itab.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;free itab. "====== memory is freed&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:13:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365734#M180953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T11:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365735#M180954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balakrishn,&lt;/P&gt;&lt;P&gt;&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 &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement. This statement restores an internal table to the state it was in immediately after you declared it. This means that the table contains no lines. However, the memory already occupied by the memory up until you cleared it remains allocated to the table. &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 in a comparison, you must place two brackets ([ ]) after the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR &amp;lt;itab&amp;gt;[].&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 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement. 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;&lt;/P&gt;&lt;P&gt;FREE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF LINE,&lt;/P&gt;&lt;P&gt;COL1,&lt;/P&gt;&lt;P&gt;COL2,&lt;/P&gt;&lt;P&gt;END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE TABLE OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE-COL1 = 'A'. LINE-COL2 = 'B'.&lt;/P&gt;&lt;P&gt;&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 output is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this program, 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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2006 11:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/1365735#M180954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-19T11:42:00Z</dc:date>
    </item>
  </channel>
</rss>

