<?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: clear &amp; refresh statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466560#M554012</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;&lt;/P&gt;&lt;P&gt;Clear:&lt;/P&gt;&lt;P&gt;Deletes the content of the header area of internal table&lt;/P&gt;&lt;P&gt;Does not delete the content of the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh:&lt;/P&gt;&lt;P&gt;Deletes the content of the internal table&lt;/P&gt;&lt;P&gt;Does not delete the content of the header area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We clear the header while updating or appending data into internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let itab be the intenal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-name = 'XXXX'.&lt;/P&gt;&lt;P&gt;itab-empno = 'XXXX'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.  -&amp;gt; &amp;lt;b&amp;gt;clears the header line.&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;refresh itab can also be used.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh does not refresh the body of internal table . It refreshes only the header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear[]  -  clears the body of the internal table.&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;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2007 06:03:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-02T06:03:22Z</dc:date>
    <item>
      <title>clear &amp; refresh statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466556#M554008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could u pls give me a brief example about when do we exactly clear the header and refresh the body of an internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;spoorthimanohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 05:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466556#M554008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T05:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: clear &amp; refresh statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466557#M554009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clear : clear only the work area or header&lt;/P&gt;&lt;P&gt;Refresh : Clears the whole contents of the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example you have an internal table it_tab[] with 12 rows and 12 columns with header line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_tab.&lt;/P&gt;&lt;P&gt;here it_tab contains one record in the header.&lt;/P&gt;&lt;P&gt;clear it_tab --&amp;gt; Clears only the HEADER.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh : it_tab. --&amp;gt; Clears all the 12 records and empties the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 05:50:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466557#M554009</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-07-02T05:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: clear &amp; refresh statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466558#M554010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If u have one internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear will clear the headerline and Refresh will clear the whole internal table but Refresh will not clear the header line.If u didnt use Clear statement then the hederlinew iwll be there and it will have recent values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 05:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466558#M554010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T05:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: clear &amp; refresh statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466559#M554011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suppose itab is your internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear itab . " clear header.&lt;/P&gt;&lt;P&gt;clear itab[] . " clear only body but header line contains the data.&lt;/P&gt;&lt;P&gt;refresh itab. " clear only body but header line contains the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in clear itab[] or refresh itab the bodyb will be deleted you can not access the data by loop at itab or by read table satatement after using clear itab[] and refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in some cases you have to clear the header line because when you are refering the itab-f1 in loop at itab or in read table statement actually you are refering the header line data. So if you want to clear the header line in these occassion then you have to use clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 05:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466559#M554011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T05:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: clear &amp; refresh statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466560#M554012</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;&lt;/P&gt;&lt;P&gt;Clear:&lt;/P&gt;&lt;P&gt;Deletes the content of the header area of internal table&lt;/P&gt;&lt;P&gt;Does not delete the content of the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh:&lt;/P&gt;&lt;P&gt;Deletes the content of the internal table&lt;/P&gt;&lt;P&gt;Does not delete the content of the header area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We clear the header while updating or appending data into internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let itab be the intenal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-name = 'XXXX'.&lt;/P&gt;&lt;P&gt;itab-empno = 'XXXX'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.  -&amp;gt; &amp;lt;b&amp;gt;clears the header line.&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;refresh itab can also be used.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh does not refresh the body of internal table . It refreshes only the header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear[]  -  clears the body of the internal table.&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;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 06:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466560#M554012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T06:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: clear &amp; refresh statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466561#M554013</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 body of an internal table, to clear the work area or header of an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab like mara occurs 0 with header line,&lt;/P&gt;&lt;P&gt;         data: int type i value 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: clear itab. // clears the header line of internal table itab.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      clear itab [].  // clears the entire content in internal table which includes header and body of an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear int. // clears the value of integer varaible to null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh: used to clear the heder line of an internal table or even an explicit work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:  refresh itab. // erases the contents of an workarea or internal table header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 06:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-refresh-statements/m-p/2466561#M554013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-02T06:12:26Z</dc:date>
    </item>
  </channel>
</rss>

