<?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 ABAB CODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abab-code/m-p/2663236#M614518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I have an internal table with 12 months in a particular row and have amount in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month01 month02 month03 month0 4&amp;#133;&amp;#133;&amp;#133;&amp;#133;month11 month12&lt;/P&gt;&lt;P&gt;10             20           10            30                      20           40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the starting and the end month and I have to add all the values in the period range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose my starting month is 01 and end month 13, my total should be 40,&lt;/P&gt;&lt;P&gt;Similarly if my starting month is month 02 and the end month is 02 then the total should be 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2007 18:27:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-15T18:27:06Z</dc:date>
    <item>
      <title>ABAB CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abab-code/m-p/2663236#M614518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I have an internal table with 12 months in a particular row and have amount in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month01 month02 month03 month0 4&amp;#133;&amp;#133;&amp;#133;&amp;#133;month11 month12&lt;/P&gt;&lt;P&gt;10             20           10            30                      20           40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the starting and the end month and I have to add all the values in the period range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose my starting month is 01 and end month 13, my total should be 40,&lt;/P&gt;&lt;P&gt;Similarly if my starting month is month 02 and the end month is 02 then the total should be 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 18:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abab-code/m-p/2663236#M614518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T18:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: ABAB CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abab-code/m-p/2663237#M614519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for looking. Got it myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 18:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abab-code/m-p/2663237#M614519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T18:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: ABAB CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abab-code/m-p/2663238#M614520</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; Do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : lv_diff type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_diff  = endmonth - startmonth.&lt;/P&gt;&lt;P&gt;lv_month  = startmonth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;clear lv_total.&lt;/P&gt;&lt;P&gt;do lv_diff times.&lt;/P&gt;&lt;P&gt;case lv_month.&lt;/P&gt;&lt;P&gt;when '01'.&lt;/P&gt;&lt;P&gt;  lv_total = lv_total + itab-month1.&lt;/P&gt;&lt;P&gt;when '02'.&lt;/P&gt;&lt;P&gt; lv_total = lv_total + itab-month2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;when '12'&lt;/P&gt;&lt;P&gt;  lv_total = lv_total + itab-month12.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;lv_month = lv_month + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;here you will have lv_total with the required months total&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 18:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abab-code/m-p/2663238#M614520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T18:39:38Z</dc:date>
    </item>
  </channel>
</rss>

