<?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 About Collect statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-collect-statement/m-p/2631839#M605204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is Collect statement? why this is used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ABHIJEET PADWAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2007 09:59:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-31T09:59:57Z</dc:date>
    <item>
      <title>About Collect statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-collect-statement/m-p/2631839#M605204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is Collect statement? why this is used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        ABHIJEET PADWAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 09:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-collect-statement/m-p/2631839#M605204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T09:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: About Collect statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-collect-statement/m-p/2631840#M605205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a step-by-step guide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Log in to a SAP system&lt;/P&gt;&lt;P&gt;2. Go to transaction SE38&lt;/P&gt;&lt;P&gt;3. Type ZZTEST_ABHIJEET&lt;/P&gt;&lt;P&gt;4. Press the button labelled Create (English login, probably other label if you log on in a different language)&lt;/P&gt;&lt;P&gt;5. Type COLLECT&lt;/P&gt;&lt;P&gt;6. Select text COLLECT&lt;/P&gt;&lt;P&gt;7. Press F1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't hesitate to ask again, we are all here to explain how you can read SAP help information...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 10:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-collect-statement/m-p/2631840#M605205</guid>
      <dc:creator>KjetilKilhavn</dc:creator>
      <dc:date>2007-07-31T10:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: About Collect statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-collect-statement/m-p/2631841#M605206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not know in which system the report ZZ_TEST .... is available, definitely not in every system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is answered with the ABAP online help, use 'i' type in collect, please read all details there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basicly the collect statement is used to built up a new internal table with a unique  key from another table or moire tables. For lines with identical keys the numerical values are summed up in the new table, assume you have a table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A with key1  key2  valuefield1 with lines&lt;/P&gt;&lt;P&gt;           a       a          1&lt;/P&gt;&lt;P&gt;           a       b          3&lt;/P&gt;&lt;P&gt;           b       a          2&lt;/P&gt;&lt;P&gt;           b       b          5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then you are sums of the valuefield1 with identical key1 values, the collect give&lt;/P&gt;&lt;P&gt;         a     4&lt;/P&gt;&lt;P&gt;         b     7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The collect works faster than doing it by yourself. But never change the new table in the same loop where the collect is executed. The table change will destroy the implicit hashed key, which makes the collect then very slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 10:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-collect-statement/m-p/2631841#M605206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T10:49:59Z</dc:date>
    </item>
  </channel>
</rss>

