<?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 between  COLLECT and  APPEND in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949872#M391367</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;in append record will just inserted to internal table.&lt;/P&gt;&lt;P&gt;but when you use collect , all  numeric fields will be added together if value of non numeric is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg suppose u have following data &lt;/P&gt;&lt;P&gt;a    10       5  &lt;/P&gt;&lt;P&gt;b     4       6&lt;/P&gt;&lt;P&gt;a    3        1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;P&gt;using collect the internal table will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a    13     6&lt;/P&gt;&lt;P&gt;b     4      6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2007 06:53:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-28T06:53:24Z</dc:date>
    <item>
      <title>difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949865#M391360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i want the basic difference between COLLECT and APPEND  statements&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;@jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949865#M391360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949866#M391361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. APPEND simply &lt;/P&gt;&lt;P&gt;    inserts one record at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. While Collect is Intelligent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   (it will not simply add one record.&lt;/P&gt;&lt;P&gt;   Instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. It will check all the alpha-numeric field combinations&lt;/P&gt;&lt;P&gt;    in the internal table&lt;/P&gt;&lt;P&gt;    and if found, then it will simply SUM up the numeric values in that record,&lt;/P&gt;&lt;P&gt;   else it will insert one record)&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>Wed, 28 Feb 2007 06:49:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949866#M391361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949867#M391362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just to put simply on one line&lt;/P&gt;&lt;P&gt;collect will sum up all the numeric field values of the internal table&lt;/P&gt;&lt;P&gt;insert adds a new record to 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>Wed, 28 Feb 2007 06:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949867#M391362</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-02-28T06:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949868#M391363</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;b&amp;gt;APPEND :&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT IS USED TO GET THE RECORD FROM THE INTERNAL TABLE HEADER TO THE BODY AREA.&lt;/P&gt;&lt;P&gt;IT ALLOWS DUPLICATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;COLLECT:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT IS USED TO A GET A RECORD FROM HEADER TO THE BODY AREA BUT IT WILL NOT ALLOW ANY DUPLICATION EXCEPT IF THERE IS ANY NUMERIC FIELS IT ADDS THAT FIELDS DATA BUT NOT AS A NEW RECORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949868#M391363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949869#M391364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Collect will all add the numeric values in the fields based on key fields allows you to create summerized data sets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append will append the records at the end of the last record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~~Guduri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949869#M391364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949870#M391365</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;&amp;lt;b&amp;gt;APPEND&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply adds record at the end of the 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;&amp;lt;b&amp;gt;COLLECT:&amp;lt;/b&amp;gt;COLLECT is used to create unique or compressed datsets. The key fields are the default key fields of the internal table itab . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use only COLLECT to fill an internal table, COLLECT makes sure that the internal table does not contain two entries with the same default key fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, besides its default key fields, the internal table contains number fields,the contents of these number fields are added together if the internal table already contains an entry with the same key fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the default key of an internal table processed with COLLECT is blank, all the values are added up in the first table line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you specify wa INTO , the entry to be processed is taken from the explicitly specified work area wa . If not, it comes from the header line of the internal table itab . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After COLLECT , the system field SY-TABIX contains the index of the - existing or new - table entry with default key fields which match those of the entry to be processed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COLLECT can create unique or compressed datasets and should be used precisely for this purpose. If uniqueness or compression are unimportant, or two values with identical default key field values could not possibly occur in your particular task, you should use APPEND instead. However, for a unique or compressed dataset which is also efficient, COLLECT is the statement to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you process a table with COLLECT , you should also use COLLECT to fill it. Only by doing this can you guarantee that the internal table will actually be unique or compressed, as described above and COLLECT will run very efficiently. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use COLLECT with an explicitly specified work area, it must be compatible with the line type of the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949870#M391365</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2007-02-28T06:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949871#M391366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append Statement simply adds one record at the end of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Collect statement sums up the quantity fields in the internal table.&lt;/P&gt;&lt;P&gt;e.g. If an nternal table has the following data :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A B 1&lt;/P&gt;&lt;P&gt;C B 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next data is say A B 2.&lt;/P&gt;&lt;P&gt;Then Result of Append will be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A B 1&lt;/P&gt;&lt;P&gt;C B 2&lt;/P&gt;&lt;P&gt;A B 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result of collect will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A B 3&lt;/P&gt;&lt;P&gt;C B 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it clarifies ur doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please award points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Himanshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949871#M391366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949872#M391367</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;in append record will just inserted to internal table.&lt;/P&gt;&lt;P&gt;but when you use collect , all  numeric fields will be added together if value of non numeric is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg suppose u have following data &lt;/P&gt;&lt;P&gt;a    10       5  &lt;/P&gt;&lt;P&gt;b     4       6&lt;/P&gt;&lt;P&gt;a    3        1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;P&gt;using collect the internal table will be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a    13     6&lt;/P&gt;&lt;P&gt;b     4      6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949872#M391367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949873#M391368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by default C N D T X are the datatypes for key field of a int table &amp;lt;if you are not defining any explicit key field&amp;gt; so collect will add all other data types fields like integer  if those key fields are repeating&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1(char) f2(int)&lt;/P&gt;&lt;P&gt;a 1&lt;/P&gt;&lt;P&gt;a 3&lt;/P&gt;&lt;P&gt;b2&lt;/P&gt;&lt;P&gt;b5&lt;/P&gt;&lt;P&gt;collect here will give you two rows a 4 and b7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append is appending the rows at the end .&lt;/P&gt;&lt;P&gt;itab-f1 = b.&lt;/P&gt;&lt;P&gt;itab-f1 = 7.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;now your itab.&lt;/P&gt;&lt;P&gt;f1(char) f2(int)&lt;/P&gt;&lt;P&gt;a 1&lt;/P&gt;&lt;P&gt;a 3&lt;/P&gt;&lt;P&gt;b 2&lt;/P&gt;&lt;P&gt;b 5&lt;/P&gt;&lt;P&gt;b 7.&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>Wed, 28 Feb 2007 06:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949873#M391368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949874#M391369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I did't clear with answer for  COLLECT  statement..   what i know is ..that append statement  will append all the records at the end of the table.. is it correct  or not.. clarify..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; and give me the some datiled abt COLLECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;@jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949874#M391369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949875#M391370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;append lines Statement&lt;/P&gt;&lt;P&gt;Use the append lines statement when you want to append rows to the end of the target table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Table Using collect&lt;/P&gt;&lt;P&gt;Using the collect statement, you can create totals within an internal table as you fill it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949875#M391370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949876#M391371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After MY SIMPLE DEFINITION ABOVE... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here goes an example of Collect Statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_final contains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;forcuram     forcurkey&lt;/P&gt;&lt;P&gt;599.40        EUR&lt;/P&gt;&lt;P&gt;599.40        EUR&lt;/P&gt;&lt;P&gt;549.91        USD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  LOOP AT i_final INTO wa_final.

    wa_temp-forcuram  = wa_final-forcuram.
    wa_temp-forcurkey = wa_final-forcurkey.

    COLLECT wa_temp INTO i_collect.

    CLEAR: wa_temp.

  ENDLOOP.

LOOP AT i_collect INTO wa_collect.
    WRITE:  / wa_collect-forcuram,
              wa_collect-forcurkey.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_collect now contains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;forcuram     forcurkey&lt;/P&gt;&lt;P&gt;1198.80        EUR&lt;/P&gt;&lt;P&gt;549.91        USD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Kindly reward points if this is helpful. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 07:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949876#M391371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T07:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949877#M391372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append will append the record at the end of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the collect will add up all the numerical fields based on the character fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: you have an internal table with three columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1       f2        f3&lt;/P&gt;&lt;P&gt;a       1         3&lt;/P&gt;&lt;P&gt;b       1         4&lt;/P&gt;&lt;P&gt;a        3        6&lt;/P&gt;&lt;P&gt;b       2          4&lt;/P&gt;&lt;P&gt;c       5         6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you are collecting this data into a new internal table.... the new internal table will have the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f1         f2           f3&lt;/P&gt;&lt;P&gt;a          4            9&lt;/P&gt;&lt;P&gt;b          3            8&lt;/P&gt;&lt;P&gt;c          5            6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*If reply found useful reward with points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 07:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949877#M391372</guid>
      <dc:creator>learnsap</dc:creator>
      <dc:date>2007-02-28T07:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949878#M391373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very good explanation! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 12:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949878#M391373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T12:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: difference between  COLLECT and  APPEND</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949879#M391374</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Append&lt;/U&gt;&lt;/STRONG&gt; keyword is used to transfer data from work area to the last record of internal table. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax&lt;/STRONG&gt;: Append &amp;lt;work_area&amp;gt; to &amp;lt;internal_table&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ex&lt;/STRONG&gt;: Append wa_ekpo to it_ekpo.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Collect&lt;/U&gt;&lt;/STRONG&gt; keyword checks the internal table for the presence of the record based on the key field. If it is not there, it performs like append by adding record to the last; else it adds the numeric fields from work area to number field in the internal table. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax&lt;/STRONG&gt;: Collect &amp;lt;work_area&amp;gt; into &amp;lt;internal_table&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ex&lt;/STRONG&gt;: - Collect wa_ekpo into it_ekpo.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 08:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-collect-and-append/m-p/1949879#M391374</guid>
      <dc:creator>natalie_gohain</dc:creator>
      <dc:date>2020-04-17T08:19:25Z</dc:date>
    </item>
  </channel>
</rss>

