<?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: Collect Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-statement/m-p/5051186#M1174082</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 need do the Sum on the integer and Num Fields and insert the data to Hash table.&lt;/P&gt;&lt;P&gt;As Collect Statement add the NUM and INT fields where all Other Char fields has the same value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jan 2009 16:03:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-12T16:03:30Z</dc:date>
    <item>
      <title>Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-statement/m-p/5051184#M1174080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to replace a Collect statement by using a Hash Table and Insert&lt;/P&gt;&lt;P&gt;statements?  If so, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 15:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-statement/m-p/5051184#M1174080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T15:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-statement/m-p/5051185#M1174081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes it is possible (and by big internal tables it is advised to do so):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read the internal table for the line:&lt;/P&gt;&lt;P&gt;-if found: summarize numeric values and modify the line in the internal table&lt;/P&gt;&lt;P&gt;-if not found: insert the new line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 16:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-statement/m-p/5051185#M1174081</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2009-01-12T16:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-statement/m-p/5051186#M1174082</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 need do the Sum on the integer and Num Fields and insert the data to Hash table.&lt;/P&gt;&lt;P&gt;As Collect Statement add the NUM and INT fields where all Other Char fields has the same value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 16:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-statement/m-p/5051186#M1174082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T16:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collect-statement/m-p/5051187#M1174083</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;Yes u can try to do it, but u need to use READ and MODIFY statament in order to update a record just loaded in the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE ITAB WITH KEY FIELD = .....
IF SY-SUBRC = 0.
  ITAB-FIELD2 = ITAB-FIELD2 + .......
  MODIFY ITAB INDEX SY-TABIX.
ELSE.
  INSERT ITAB INTO TABLE ITAB.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2009 16:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collect-statement/m-p/5051187#M1174083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-12T16:04:26Z</dc:date>
    </item>
  </channel>
</rss>

