<?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: Code for Count value....Bit urgent. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-count-value-bit-urgent/m-p/3186254#M758763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select TKNUM&lt;/P&gt;&lt;P&gt;FROM VFKP AS A INNER JOIN VTTS AS B&lt;/P&gt;&lt;P&gt;ON A&lt;SUB&gt;REBEL = B&lt;/SUB&gt;TKNUM.&lt;/P&gt;&lt;P&gt;INTO IT_VFKP_VTTS&lt;/P&gt;&lt;P&gt;WHERE   """IF ANY CONDITIONS ARE THERE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_VFKP_VTTS BY TKNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_VFKP_VTTS.&lt;/P&gt;&lt;P&gt;CNT = CNT + 1.&lt;/P&gt;&lt;P&gt;AT END OF TKNUM.&lt;/P&gt;&lt;P&gt;FLAG = 'X'.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;IF FLAG = 'X'.&lt;/P&gt;&lt;P&gt;MOVE IT_VFKP_VTTS-TKNUM TO WA_COUNT-TKNUM.&lt;/P&gt;&lt;P&gt;MOVE CNT TO WA_COUNT-CNT.&lt;/P&gt;&lt;P&gt;APPEND WA_COUNT TO IT_COUNT(WHICH holds data of tknum and its count.)&lt;/P&gt;&lt;P&gt;clear: wa_count, cnt.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;......tknum = ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KONV-KWART) = wa_count-cnt-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these for tknum field value wise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2007 15:57:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-19T15:57:16Z</dc:date>
    <item>
      <title>Code for Count value....Bit urgent.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-count-value-bit-urgent/m-p/3186253#M758762</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;My Requirement is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) with the shipment document number in field VFKP-REBEL (reference object in the shipment cost document header) access to VTTS (Shipment&amp;#146;s Stages) table with the corresponding VTTS-TKNUM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Count the records number corresponding to the same related Shipment Number (TKNUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Condition base value (KONV-KWART) = counted value - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please povide me code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 09:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-count-value-bit-urgent/m-p/3186253#M758762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T09:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Code for Count value....Bit urgent.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-count-value-bit-urgent/m-p/3186254#M758763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select TKNUM&lt;/P&gt;&lt;P&gt;FROM VFKP AS A INNER JOIN VTTS AS B&lt;/P&gt;&lt;P&gt;ON A&lt;SUB&gt;REBEL = B&lt;/SUB&gt;TKNUM.&lt;/P&gt;&lt;P&gt;INTO IT_VFKP_VTTS&lt;/P&gt;&lt;P&gt;WHERE   """IF ANY CONDITIONS ARE THERE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_VFKP_VTTS BY TKNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_VFKP_VTTS.&lt;/P&gt;&lt;P&gt;CNT = CNT + 1.&lt;/P&gt;&lt;P&gt;AT END OF TKNUM.&lt;/P&gt;&lt;P&gt;FLAG = 'X'.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;IF FLAG = 'X'.&lt;/P&gt;&lt;P&gt;MOVE IT_VFKP_VTTS-TKNUM TO WA_COUNT-TKNUM.&lt;/P&gt;&lt;P&gt;MOVE CNT TO WA_COUNT-CNT.&lt;/P&gt;&lt;P&gt;APPEND WA_COUNT TO IT_COUNT(WHICH holds data of tknum and its count.)&lt;/P&gt;&lt;P&gt;clear: wa_count, cnt.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;......tknum = ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KONV-KWART) = wa_count-cnt-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these for tknum field value wise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 15:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-for-count-value-bit-urgent/m-p/3186254#M758763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T15:57:16Z</dc:date>
    </item>
  </channel>
</rss>

