<?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: diff between  delete and refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508029#M843780</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 Sets the contents of the internal table to the right initial value for the column type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH works like CLEAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE Deletes the internal table and releases the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this helps, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2008 05:50:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-10T05:50:58Z</dc:date>
    <item>
      <title>diff between  delete and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508026#M843777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 05:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508026#M843777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T05:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  delete and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508027#M843778</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;You haven't specified where you want to know the difference between them.&lt;/P&gt;&lt;P&gt;Anyways generally we apply Delete and Refresh keywords for internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Delete&lt;/STRONG&gt; statement deletes the internal table where as &lt;STRONG&gt;Refresh&lt;/STRONG&gt; statement clears the data but not memory alloted to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its Useful..&lt;/P&gt;&lt;P&gt;Kota&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 05:48:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508027#M843778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T05:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  delete and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508028#M843779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;refresh : It will delete the records but memory will be there.&lt;/P&gt;&lt;P&gt;delete : delete the required records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;REFRESH itab. &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;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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions &lt;/P&gt;&lt;P&gt;Non-Catchable Exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: No more memory space available to create the table &lt;/P&gt;&lt;P&gt;Runtime Error: REFRESH_NO_SHORT_MEMORY &lt;/P&gt;&lt;P&gt;DELETE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete &amp;lt;itab&amp;gt; where &amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;DELETE for Files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes files on the application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE DATASET &amp;lt;dsn&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes the file &amp;lt;dsn&amp;gt; from the file system of the application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE for Database Table Entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes entries from database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM &amp;lt;dbtab&amp;gt; WHERE &amp;lt;cond&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the lines in the database table that satisfy the conditions in the WHERE clause are deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This deletes the line that has the same primary key as the work area &amp;lt;wa&amp;gt;, or deletes all the lines in the database that have the same primary key as a line in the internal table &amp;lt;itab&amp;gt;. The work area &amp;lt;wa&amp;gt; or the lines of the internal table &amp;lt;itab&amp;gt; must have at least the same length as the work area of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE for Cluster Databases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes data clusters from cluster database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM DATABASE &amp;lt;dbtab&amp;gt;(&amp;lt;ar&amp;gt;) ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes the entire cluster in area &amp;lt;ar&amp;gt; with the name &amp;lt;key&amp;gt; from the cluster database table &amp;lt;dbtab&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE for the Cross-Transaction Application Buffer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes data clusters from the cross-transaction application buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM SHARED BUFFER &amp;lt;dbtab&amp;gt;(&amp;lt;ar&amp;gt;) ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes the data cluster for the area &amp;lt;ar&amp;gt; with the name &amp;lt;key&amp;gt; stored in the cross-transaction application buffer for the table &amp;lt;dbtab&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE for Lines from an Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes lines from internal tables of any type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE TABLE &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE TABLE &amp;lt;itab&amp;gt; WITH TABLE KEY &amp;lt;k1&amp;gt; = &amp;lt;f 1&amp;gt;... &amp;lt;k n&amp;gt; = &amp;lt;f n&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes using the table key. All lines with the same key are deleted. The key values are taken either from a compatible work area &amp;lt;wa&amp;gt; or specified explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;itab&amp;gt; WHERE &amp;lt;cond&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes using conditions. Deletes all table entries that satisfy the logical expression &amp;lt;cond&amp;gt;. The logical condition can consist of more than one comparison. In each comparison, the first operand must be a component of the line structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM &amp;lt;itab&amp;gt; &lt;A href="http://COMPARING" target="test_blank"&gt;http://COMPARING&lt;/A&gt;. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes adjacent duplicate entries, either by comparing the key fields or the comparison fields specified explicitly in the COMPARING addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE for Lines from Index Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes entries from index tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;itab&amp;gt; INDEX &amp;lt;idx&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the INDEX addition, the line with index &amp;lt;idx&amp;gt; is deleted from the table &amp;lt;itab&amp;gt;. Without the INDEX addition, you can only use the above statement within a LOOP. In this case, you delete the current line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;itab&amp;gt; FROM &amp;lt;n1&amp;gt; TO &amp;lt;n 2&amp;gt; WHERE &amp;lt;cond&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system deletes all of the lines of &amp;lt;itab&amp;gt; whose index lies between &amp;lt;n 1 &amp;gt; and &amp;lt;n 2 &amp;gt; and who meet the conditions specified in the WHERE clause. If you do not specify a FROM addition, the system deletes lines from the first line onwards. If you do not specify a TO addition, the system deletes lines up to the last line. The logical condition can consist of more than one comparison. In each comparison, the first operand must be a component of the line structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initializes an internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&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;Resets the internal table &amp;lt;itab&amp;gt; to its initial value, that is, deletes all of its lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initializes a control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH CONTROL &amp;lt;ctrl&amp;gt; FROM SCREEN &amp;lt;scr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The control &amp;lt;ctrl&amp;gt; defined in the CONTROLS statement is reset with the initial values specified for screen &amp;lt;scr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will be useful.&lt;/P&gt;&lt;P&gt;Reward points Please..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 05:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508028#M843779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T05:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  delete and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508029#M843780</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 Sets the contents of the internal table to the right initial value for the column type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH works like CLEAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FREE Deletes the internal table and releases the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this helps, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 05:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508029#M843780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T05:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: diff between  delete and refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508030#M843781</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;DELETE for Files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes files on the application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE DATASET &amp;lt;dsn&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes the file &amp;lt;dsn&amp;gt; from the file system of the application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE for Database Table Entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes entries from database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM &amp;lt;dbtab&amp;gt; WHERE &amp;lt;cond&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the lines in the database table that satisfy the conditions in the WHERE clause are deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;dbtab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;dbtab&amp;gt; FROM TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This deletes the line that has the same primary key as the work area &amp;lt;wa&amp;gt;, or deletes all the lines in the database that have the same primary key as a line in the internal table &amp;lt;itab&amp;gt;. The work area &amp;lt;wa&amp;gt; or the lines of the internal table &amp;lt;itab&amp;gt; must have at least the same length as the work area of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE for Cluster Databases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes data clusters from cluster database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM DATABASE &amp;lt;dbtab&amp;gt;(&amp;lt;ar&amp;gt;) ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes the entire cluster in area &amp;lt;ar&amp;gt; with the name &amp;lt;key&amp;gt; from the cluster database table &amp;lt;dbtab&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE for the Cross-Transaction Application Buffer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes data clusters from the cross-transaction application buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM SHARED BUFFER &amp;lt;dbtab&amp;gt;(&amp;lt;ar&amp;gt;) ID &amp;lt;key&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes the data cluster for the area &amp;lt;ar&amp;gt; with the name &amp;lt;key&amp;gt; stored in the cross-transaction application buffer for the table &amp;lt;dbtab&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE for Lines from an Internal Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes lines from internal tables of any type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE TABLE &amp;lt;itab&amp;gt; FROM &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE TABLE &amp;lt;itab&amp;gt; WITH TABLE KEY &amp;lt;k1&amp;gt; = &amp;lt;f 1&amp;gt;... &amp;lt;k n&amp;gt; = &amp;lt;f n&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes using the table key. All lines with the same key are deleted. The key values are taken either from a compatible work area &amp;lt;wa&amp;gt; or specified explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;itab&amp;gt; WHERE &amp;lt;cond&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes using conditions. Deletes all table entries that satisfy the logical expression &amp;lt;cond&amp;gt;. The logical condition can consist of more than one comparison. In each comparison, the first operand must be a component of the line structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATE ENTRIES FROM &amp;lt;itab&amp;gt; &lt;A href="http://COMPARING" target="test_blank"&gt;http://COMPARING&lt;/A&gt;. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes adjacent duplicate entries, either by comparing the key fields or the comparison fields specified explicitly in the COMPARING addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE for Lines from Index Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes entries from index tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;itab&amp;gt; INDEX &amp;lt;idx&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the INDEX addition, the line with index &amp;lt;idx&amp;gt; is deleted from the table &amp;lt;itab&amp;gt;. Without the INDEX addition, you can only use the above statement within a LOOP. In this case, you delete the current line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE &amp;lt;itab&amp;gt; FROM &amp;lt;n1&amp;gt; TO &amp;lt;n 2&amp;gt; WHERE &amp;lt;cond&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system deletes all of the lines of &amp;lt;itab&amp;gt; whose index lies between &amp;lt;n 1 &amp;gt; and &amp;lt;n 2 &amp;gt; and who meet the conditions specified in the WHERE clause. If you do not specify a FROM addition, the system deletes lines from the first line onwards. If you do not specify a TO addition, the system deletes lines up to the last line. The logical condition can consist of more than one comparison. In each comparison, the first operand must be a component of the line structure.&lt;/P&gt;&lt;P&gt;REFRESH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initializes an internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&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;Resets the internal table &amp;lt;itab&amp;gt; to its initial value, that is, deletes all of its lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initializes a control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH CONTROL &amp;lt;ctrl&amp;gt; FROM SCREEN &amp;lt;scr&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The control &amp;lt;ctrl&amp;gt; defined in the CONTROLS statement is reset with the initial values specified for screen &amp;lt;scr&amp;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;hope it will be useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 05:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-delete-and-refresh/m-p/3508030#M843781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T05:56:58Z</dc:date>
    </item>
  </channel>
</rss>

