<?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 collected value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-collected-value/m-p/2109084#M440494</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;What I thin u can do is that in the loop where u r collecting the internal table, prior to that clear the both fields which are not required to be collected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. CLEAR : ITAB-B, ITAB-C.&lt;/P&gt;&lt;P&gt;COLLECT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the ITAB-B and C fields will always contain initial value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2007 04:59:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-02T04:59:17Z</dc:date>
    <item>
      <title>clear collected value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-collected-value/m-p/2109083#M440493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;after the collect statement, may i know what is the best practice to initialise(clear) the field that not intended for the collect. i have 6 fields which are type DEC. the internal table is like a structure where the numeric fields are type DEC.&lt;/P&gt;&lt;P&gt;I only want 4 out of 6 fields to accumulate the value whereas another 2 i do not want as these 2 fields not large enough to store the accumulated value and also these 2 are not meant to accumulate value.&lt;/P&gt;&lt;P&gt;I cannot make the 2 fields to character field as i use itab like table occurs 0.&lt;/P&gt;&lt;P&gt;i just want comment what method i can use after the collect statement to initialise (clear) the other 2 fields.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 03:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-collected-value/m-p/2109083#M440493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T03:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: clear collected value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-collected-value/m-p/2109084#M440494</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;What I thin u can do is that in the loop where u r collecting the internal table, prior to that clear the both fields which are not required to be collected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. CLEAR : ITAB-B, ITAB-C.&lt;/P&gt;&lt;P&gt;COLLECT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case the ITAB-B and C fields will always contain initial value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 04:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-collected-value/m-p/2109084#M440494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T04:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: clear collected value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-collected-value/m-p/2109085#M440495</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;suppose A,B,C,D,E,F are the fields and u dont want E and F to get accumulated ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just before the collect statement clear those two fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;clear :  wa_itab-E, wa_itab-F.&lt;/P&gt;&lt;P&gt;collect wa_itab to itab.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpful answers..&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 05:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-collected-value/m-p/2109085#M440495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T05:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: clear collected value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-collected-value/m-p/2109086#M440496</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;loop at itab.&lt;/P&gt;&lt;P&gt;  collect itab into itab.&lt;/P&gt;&lt;P&gt;  clear: itab-5, itab-6.&lt;/P&gt;&lt;P&gt;  modify itab index sy-tabix from itab transporting itab-5 itab-6.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rammohan Nagam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 05:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-collected-value/m-p/2109086#M440496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T05:13:34Z</dc:date>
    </item>
  </channel>
</rss>

