<?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 diffrence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence/m-p/2595800#M594543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is a diffrence between refresh,clear and free? plz give practial example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 09:08:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T09:08:52Z</dc:date>
    <item>
      <title>diffrence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence/m-p/2595800#M594543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is a diffrence between refresh,clear and free? plz give practial example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 09:08:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence/m-p/2595800#M594543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T09:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: diffrence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence/m-p/2595801#M594544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR resets to its initial values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;For structure it will clear all the fields in the structure..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: S_MARA LIKE MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: S_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For internal tables if it is declared with header line then it clear the header line otherwise it will clear the whole internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB TYPE STANDARD TABLE OF MARA WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: ITAB.. " THis will clear the header line..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB TYPE STANDARD TABLE OF MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: ITAB.. " THis will clear the whole internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Refresh clear the internal tables irrespective of with or without header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Clear can be used for variables, work areas and internal tables..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ypra_sample61.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_itab,&lt;/P&gt;&lt;P&gt;data1 TYPE char10,&lt;/P&gt;&lt;P&gt;data2 TYPE char10,&lt;/P&gt;&lt;P&gt;END OF ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE STANDARD TABLE OF ty_itab,&lt;/P&gt;&lt;P&gt;wa_itab TYPE ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab1 TYPE ty_itab OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;wa_itab1 TYPE ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab-data1 = '12'.&lt;/P&gt;&lt;P&gt;wa_itab-data2 = '112'.&lt;/P&gt;&lt;P&gt;APPEND wa_itab TO itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: wa_itab, itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Here the clear will clear both the header and as well as Body - Because&lt;/P&gt;&lt;P&gt;*it is declared as type standard table of ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab1-data1 = '12'.&lt;/P&gt;&lt;P&gt;wa_itab1-data2 = '112'.&lt;/P&gt;&lt;P&gt;APPEND wa_itab1 TO itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: wa_itab1, itab1.&lt;/P&gt;&lt;P&gt;REFRESH: itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Here both the clear &amp;amp; refresh should be given to clear the workarea &amp;amp; *the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 09:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence/m-p/2595801#M594544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T09:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: diffrence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence/m-p/2595802#M594545</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 for initialization.When u clear any variable, work area they will come to their initial position.&lt;/P&gt;&lt;P&gt;REFRESH: will delete all the rows from internal table and will also clear the header of the internal table.&lt;/P&gt;&lt;P&gt;FREE: it free the memory alloted to internal table.and ur internal table will not exist in the memory area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward the point if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 09:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diffrence/m-p/2595802#M594545</guid>
      <dc:creator>rajesh_akarte2</dc:creator>
      <dc:date>2007-07-25T09:33:11Z</dc:date>
    </item>
  </channel>
</rss>

