<?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: Regarding Collect Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245976#M1382825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt; why do you need to use collect statement inside the loop. Move statement is already appending the records in the table .&lt;/P&gt;&lt;P&gt;use collect statement after the loop. This will serve the same purpose.&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;Geeta Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2009 08:36:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-07T08:36:37Z</dc:date>
    <item>
      <title>Regarding Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245970#M1382819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am Fresher to ABAP.I have a Requirement . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a Invoice No , i want to COLLECT its Material no , Material Description , Invoice value , Invoice Quantity . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Used COLLECT Statement FOR this . The Code is Given Below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT IT_DESP.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING IT_DESP TO IT_DESP1.&lt;/P&gt;&lt;P&gt;      COLLECT IT_DESP1.&lt;/P&gt;&lt;P&gt;      CLEAR: IT_DESP1.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here i am Populating Invoice No,Material no , Material Description , Invoice value , Invoice Quantity in Internal Table IT_DESP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The COLLECT statement is not Working Here. Is the above code is Correct are not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 05:01:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245970#M1382819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T05:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245971#M1382820</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;I dont see anything worng with your code. Just ensure that all the fields other than those which you want to sum are of char type while using COLLECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 05:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245971#M1382820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T05:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245972#M1382821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort it_desp by invoice no before looping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 05:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245972#M1382821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T05:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245973#M1382822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i dont think this code is wrong.. &lt;/P&gt;&lt;P&gt;how have you declared the fields of itab1 and itab2?&lt;/P&gt;&lt;P&gt;can you show the definition of these internal tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 05:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245973#M1382822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T05:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245974#M1382823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sankara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To provide you an answer why COLLECT is not working we need to have insight on how you have defined the table IT_DESP1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for the record, please make it a point of doing an F1 &amp;amp; reading the SAP documentation whenever you are faced with this kind of situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 06:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245974#M1382823</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-10-07T06:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245975#M1382824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Sankara , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Collect statement is used to add all the numeric components to the corresponding values of all the existing rows in an internal table , with the same key . The data type can be I , P , F . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Please ensure that there is a comman value  in all the rows . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   check this out and let me know if any issues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kavitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 07:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245975#M1382824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T07:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Collect Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245976#M1382825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt; why do you need to use collect statement inside the loop. Move statement is already appending the records in the table .&lt;/P&gt;&lt;P&gt;use collect statement after the loop. This will serve the same purpose.&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;Geeta Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 08:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-collect-statement/m-p/6245976#M1382825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-07T08:36:37Z</dc:date>
    </item>
  </channel>
</rss>

