<?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: count values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/count-values/m-p/6980915#M1492577</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;u can use DESCRIBE statement if u want to count the records of internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if u want to count no of zzmatkl on the basis of zpspnr then use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;at new zpspnr.&lt;/P&gt;&lt;P&gt;if zmatkl is not initial.&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope ur query will get resolved by this, &lt;/P&gt;&lt;P&gt;if yes then please give rewards and if not then let us know where u r getting problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: neha1.gpta on Jun 18, 2010 2:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jun 2010 10:01:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-18T10:01:13Z</dc:date>
    <item>
      <title>count values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/count-values/m-p/6980912#M1492574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have three tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.ZDOCP contains fields zzmatnr,zzmatkl&lt;/P&gt;&lt;P&gt;2.PRST  matnr,pspnr&lt;/P&gt;&lt;P&gt;3.KNA1  name1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have populted fields &lt;/P&gt;&lt;P&gt;in internal table i_final&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to count zzmatkl with respective to PSPNR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else i want to count values in internal table,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help experts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 11:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/count-values/m-p/6980912#M1492574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-17T11:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: count values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/count-values/m-p/6980913#M1492575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;   do you mean , you want to count the number of records in the final internal table with respect to distinct pspnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;        syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 12:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/count-values/m-p/6980913#M1492575</guid>
      <dc:creator>syed_ibrahim5</dc:creator>
      <dc:date>2010-06-17T12:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: count values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/count-values/m-p/6980914#M1492576</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;you can loop at your internal table and put a counter somethink like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: aux type i.
aux = 0.

loop at itab.
aux = aux +1.
endloop.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 09:23:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/count-values/m-p/6980914#M1492576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T09:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: count values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/count-values/m-p/6980915#M1492577</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;u can use DESCRIBE statement if u want to count the records of internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if u want to count no of zzmatkl on the basis of zpspnr then use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;at new zpspnr.&lt;/P&gt;&lt;P&gt;if zmatkl is not initial.&lt;/P&gt;&lt;P&gt;count = count + 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope ur query will get resolved by this, &lt;/P&gt;&lt;P&gt;if yes then please give rewards and if not then let us know where u r getting problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: neha1.gpta on Jun 18, 2010 2:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 10:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/count-values/m-p/6980915#M1492577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T10:01:13Z</dc:date>
    </item>
  </channel>
</rss>

