<?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 Need counting logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-counting-logic/m-p/6182641#M1373500</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 got this internal table from this i need to collect the occurances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Date--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;party---- delivery number---material                                                                                &lt;P&gt;&lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211581          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211581          |BOX&lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211582          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211582          |BOX   &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211584          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211585          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211585          |BOX&lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211586          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211587          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |2000003927          |SSCC  &lt;/P&gt;&lt;P&gt;15 oct     |0031070496  |2000003929          |SSCC  &lt;/P&gt;&lt;P&gt;15 oct     |0031070496  |2000003930          |SSCC  &lt;/P&gt;&lt;P&gt;15 oct     |0031070496  |2000003923          |SSCC  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to give the report as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) occurance of 1 SSCC&lt;/P&gt;&lt;P&gt;                           1 BOX    per date, per party  ==&amp;gt;  occurs 3 times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) occurance of 1 SSCC  per date(13 oct), per party  ==&amp;gt;  occurs 4 times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) occurance of 1 SSCC  per date(15 oct), per party  ==&amp;gt;  occurs 3 times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me with the coding how to bring this logic....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anbu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please do not ask or answer such basic questions - post locked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Oct 13, 2009 11:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2009 14:35:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-13T14:35:06Z</dc:date>
    <item>
      <title>Need counting logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-counting-logic/m-p/6182641#M1373500</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 got this internal table from this i need to collect the occurances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Date--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---" /&gt;party---- delivery number---material                                                                                &lt;P&gt;&lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211581          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211581          |BOX&lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211582          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211582          |BOX   &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211584          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211585          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211585          |BOX&lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211586          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |0084211587          |SSCC  &lt;/P&gt;&lt;P&gt;13 oct     |0031070496  |2000003927          |SSCC  &lt;/P&gt;&lt;P&gt;15 oct     |0031070496  |2000003929          |SSCC  &lt;/P&gt;&lt;P&gt;15 oct     |0031070496  |2000003930          |SSCC  &lt;/P&gt;&lt;P&gt;15 oct     |0031070496  |2000003923          |SSCC  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to give the report as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) occurance of 1 SSCC&lt;/P&gt;&lt;P&gt;                           1 BOX    per date, per party  ==&amp;gt;  occurs 3 times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) occurance of 1 SSCC  per date(13 oct), per party  ==&amp;gt;  occurs 4 times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) occurance of 1 SSCC  per date(15 oct), per party  ==&amp;gt;  occurs 3 times&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you help me with the coding how to bring this logic....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anbu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please do not ask or answer such basic questions - post locked&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Oct 13, 2009 11:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 14:35:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-counting-logic/m-p/6182641#M1373500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T14:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need counting logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-counting-logic/m-p/6182642#M1373501</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; 1. Loop internal table&lt;/P&gt;&lt;P&gt; 2. get sy-tabix and store the values in a work area ( So each loop it stores the previous value, so u can compare the incoming and the previous values)&lt;/P&gt;&lt;P&gt; 3. compare the date or SSCC/BOX vaues and increase the count ( Keep separate variable for each count like C1,C2) and update it in a separate internal table&lt;/P&gt;&lt;P&gt; 4. based on the count display the report&lt;/P&gt;&lt;P&gt; 5. Endloop &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arunsri on Oct 13, 2009 4:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 14:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-counting-logic/m-p/6182642#M1373501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T14:56:36Z</dc:date>
    </item>
  </channel>
</rss>

