<?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: Problem in Collect in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131530#M1189479</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;Collect can add only interger type fileds. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SOrt irab by artnr.
Loop At itab.

itab1-artnr = itab-artnr.
itab1-VVVOL3 = itab1-VVVOL3 + itab-VVVOL3 .
itab1-VVVOL2 = itab1-VVVOL2 + itab-VVVOL2.
itab1-VVVOL1 = itab1-VVVOL1 + itab-VVVOL1.

AT END OF ARTNR.
Append itab1.
clear itab1.
ENDAT.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2009 06:33:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-23T06:33:30Z</dc:date>
    <item>
      <title>Problem in Collect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131528#M1189477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have one internal table it_data  with following data. And I want to Integrate this table by keeping &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one entry for the same ARTNR  by Collecting VVVOL3  VVVOL2 and VVVOL1  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now it_data is :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ARTNR	VVVOL3	VVVOL2	VVVOL1
1010371	60	0	0
1010371	0	800	0
1010371	0	0	100
1012376	16	0	0
1012377	80	0	0
3200853	0	40	0
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ARTNR	VVVOL3	VVVOL2	VVVOL1
1010371	60	800          100
1012376	16	0	0
1012377	80	0	0
3200853	0	40	0
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COLLECT is not serving my purpose..because I want to modify the same internal table......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anybody suggest a  solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanksssssssssss.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 06:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131528#M1189477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T06:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Collect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131529#M1189478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before the loop use SORT it_data by ARTNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure the fields VVVOL3 VVVOL2 and VVVOL1 are of type numeric.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 06:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131529#M1189478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T06:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Collect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131530#M1189479</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;Collect can add only interger type fileds. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SOrt irab by artnr.
Loop At itab.

itab1-artnr = itab-artnr.
itab1-VVVOL3 = itab1-VVVOL3 + itab-VVVOL3 .
itab1-VVVOL2 = itab1-VVVOL2 + itab-VVVOL2.
itab1-VVVOL1 = itab1-VVVOL1 + itab-VVVOL1.

AT END OF ARTNR.
Append itab1.
clear itab1.
ENDAT.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 06:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131530#M1189479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T06:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Collect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131531#M1189480</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;First sort the internaltable by ATRNR and  all fields should be numeric and this numeric condition is exception for Material .. if internal table contains  material you can use collect by material number this is only exception for material number ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 06:44:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131531#M1189480</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2009-01-23T06:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Collect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131532#M1189481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi for use collect statement you must have a CHAR field in your internal table.&lt;/P&gt;&lt;P&gt;because it adds the numeric value for that char field which have same value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 06:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131532#M1189481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T06:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Collect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131533#M1189482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 06:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131533#M1189482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T06:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Collect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131534#M1189483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can start with the original internal table, collect in another internal table. Delete the contents of the original internal table and copy the contents of the collected internal table to the original internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

loop at itab into wa.

 collect wa into itab_new.

endloop.

delete itab.

itab = itab_new[].

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 10:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131534#M1189483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T10:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Collect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131535#M1189484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ubhaka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort it_data by artnr.
    loop at it_data into wa_data.
       at end of artnr.
         sum.
         wa_data1-VVVOL1 =  wa_data-VVVOL1.
         wa_data1-VVVOL2 =  wa_data-VVVOL2.
         wa_data1-VVVOL3 =  wa_data-VVVOL3.
         append wa_data1 to it_data1.         " final table
       endat.
    endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 10:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131535#M1189484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T10:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Collect</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131536#M1189485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;issue resolved ..thanks for ur reply........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 06:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect/m-p/5131536#M1189485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T06:54:19Z</dc:date>
    </item>
  </channel>
</rss>

