<?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: Error Count in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220532#M1379003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;say you have internal table itab1 and is1.&lt;/P&gt;&lt;P&gt;declare a work area of same type IS_TEMP.&lt;/P&gt;&lt;P&gt;declare another workarea of same type say IS2 with an extra field count.&lt;/P&gt;&lt;P&gt;data : gv_count type i value '1'.&lt;/P&gt;&lt;P&gt;now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort itab by field1 field 2. "all fields
loop at itab1 into is1.
if is1 = is_temp.
  count = count + 1.
else.
  count = 1.
endif.
is_temp = is.
move corresponding is1 to is2.
append is2 to itab2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now itab2 holds what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2009 12:42:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-23T12:42:20Z</dc:date>
    <item>
      <title>Error Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220528#M1378999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;These are the inputs given through an internal tabe in a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ii001  2380  wt00  global data missing&lt;/P&gt;&lt;P&gt;ii001  2380  wt00  global data missing&lt;/P&gt;&lt;P&gt;ii001  2380  wt00  material not found&lt;/P&gt;&lt;P&gt;ii002  2380  wt10  missing partner detail&lt;/P&gt;&lt;P&gt;ii002 2380   wt10  missing partner detail &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output should display as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ii001  2380  wt00 global data missing       2&lt;/P&gt;&lt;P&gt;ii001  2380  wt00 material not found        1&lt;/P&gt;&lt;P&gt;ii002  2380  wt10 missing partner detail   2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie it shoud count the error messages which are same and display the count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to apply the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 12:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220528#M1378999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T12:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220529#M1379000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Mani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use collect .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;collect itab into itabsum.&lt;/P&gt;&lt;P&gt;endlloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 12:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220529#M1379000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T12:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220530#M1379001</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;try this way...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"itab2 contains the same field of itab and addtional field count

Loop at itab.

read table itab2 with key &amp;lt;compare all fields&amp;gt;.
if sy-subrc = 0.
 itab2 -count =  itab2 -count + 1.
 modify itab2 from itab1 transporting count.
else.
 itab2 -count =  itab2 -count + 1.
append Itab2.
endif.


endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 12:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220530#M1379001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T12:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220531#M1379002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare another table itab2 with extra field COUNTER type i.&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab1.
  move-corresponding itab1 to itab2.
  itab2-counter = 1. collect itab2.
endloop.
loop at itab2.
  write: itab2-field1, 
         itab2-field2,
        ...
        itab2-counter.

endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 12:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220531#M1379002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T12:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error Count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220532#M1379003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;say you have internal table itab1 and is1.&lt;/P&gt;&lt;P&gt;declare a work area of same type IS_TEMP.&lt;/P&gt;&lt;P&gt;declare another workarea of same type say IS2 with an extra field count.&lt;/P&gt;&lt;P&gt;data : gv_count type i value '1'.&lt;/P&gt;&lt;P&gt;now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort itab by field1 field 2. "all fields
loop at itab1 into is1.
if is1 = is_temp.
  count = count + 1.
else.
  count = 1.
endif.
is_temp = is.
move corresponding is1 to is2.
append is2 to itab2.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now itab2 holds what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 12:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-count/m-p/6220532#M1379003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T12:42:20Z</dc:date>
    </item>
  </channel>
</rss>

