<?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: hi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161585#M457268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i am calculating the amount between two dates.&lt;/P&gt;&lt;P&gt;for example 01.01.2003 to 03.05.2008 .here I need like&lt;/P&gt;&lt;P&gt;amount for 2003 &lt;/P&gt;&lt;P&gt;and amount for 2004............till 2008.Individually i want.&lt;/P&gt;&lt;P&gt;have u understand.......?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2007 07:12:56 GMT</pubDate>
    <dc:creator>former_member155436</dc:creator>
    <dc:date>2007-04-30T07:12:56Z</dc:date>
    <item>
      <title>hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161579#M457262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;                  I am getting one amount field between two dates.But i need for a particular year i need to calculate amount.It will use in the next steps.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;         Loop at itab where w_date bt two dates.&lt;/P&gt;&lt;P&gt;    a = a + b.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the amount 'a' to particular year.&lt;/P&gt;&lt;P&gt;Urgent!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 03:52:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161579#M457262</guid>
      <dc:creator>former_member155436</dc:creator>
      <dc:date>2007-04-30T03:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161580#M457263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Extract the year according your date format and put it in the condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the date format is 'DD.MM.YYYY'.&lt;/P&gt;&lt;P&gt;Loop at itab where w_date+6(4) bt two year.&lt;/P&gt;&lt;P&gt;a = a + b.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 04:16:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161580#M457263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T04:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161581#M457264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Get the first 4 characters of the date field which gives the year.&lt;/P&gt;&lt;P&gt;segregate the date into two years.or you can use Fiscal year field in most of the FI tables for this.&lt;/P&gt;&lt;P&gt;or take the posting date and from it take the year and seggregate the amounts.&lt;/P&gt;&lt;P&gt;in the loop.&lt;/P&gt;&lt;P&gt;if date+0(4) = year1.&lt;/P&gt;&lt;P&gt;  amount = a.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;amount = b.&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;rewar points if useful&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 04:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161581#M457264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T04:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161582#M457265</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;Say..ur date is '4th April,2007' and your years are 2007 and 2008.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; w_low like sy-datum,&lt;/P&gt;&lt;P&gt; w_high like sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_low = '01.01.2007'. * ur systems date format..&lt;/P&gt;&lt;P&gt;w_high = '01.01.2008'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab whee &amp;lt;b&amp;gt;p_date between w_low and w_high.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; a = a+ b.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: a.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 04:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161582#M457265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T04:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161583#M457266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;     check the snippet once&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code]parameters : val(30)  type c.&lt;/P&gt;&lt;P&gt;data : final(30) type c,&lt;/P&gt;&lt;P&gt;       cnt type i,&lt;/P&gt;&lt;P&gt;       v type c,&lt;/P&gt;&lt;P&gt;       n type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cnt = strlen( val ).&lt;/P&gt;&lt;P&gt;do cnt times.&lt;/P&gt;&lt;P&gt;move val+n(1) to v.&lt;/P&gt;&lt;P&gt;if v ca '.0123456789'.              "Bring in the values &lt;/P&gt;&lt;P&gt;move v to final+n(1).&lt;/P&gt;&lt;P&gt;*elseif v = ',' or v = '$'.             "&amp;lt;---no need of this&lt;/P&gt;&lt;P&gt;*continue.                              "&amp;lt;----no need &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;n = n + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense final no-gaps.&lt;/P&gt;&lt;P&gt;write:/ final .[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 06:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161583#M457266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T06:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161584#M457267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rammohan ,&lt;/P&gt;&lt;P&gt;                          Actually i am calculating the amount between two dates.&lt;/P&gt;&lt;P&gt;for example 01.01.2003 to 03.05.2008 .here I need like&lt;/P&gt;&lt;P&gt;amount for 2003 &lt;/P&gt;&lt;P&gt;and amount for 2004............till 2008.Individually i want.&lt;/P&gt;&lt;P&gt;have u understand.......?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 06:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161584#M457267</guid>
      <dc:creator>former_member155436</dc:creator>
      <dc:date>2007-04-30T06:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161585#M457268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i am calculating the amount between two dates.&lt;/P&gt;&lt;P&gt;for example 01.01.2003 to 03.05.2008 .here I need like&lt;/P&gt;&lt;P&gt;amount for 2003 &lt;/P&gt;&lt;P&gt;and amount for 2004............till 2008.Individually i want.&lt;/P&gt;&lt;P&gt;have u understand.......?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 07:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161585#M457268</guid>
      <dc:creator>former_member155436</dc:creator>
      <dc:date>2007-04-30T07:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161586#M457269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lava , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First u have to find out how many years are there for a given date range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inpot  =  01.01.2007 -31.12.2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here u have to get 3 years data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2007 = 10&lt;/P&gt;&lt;P&gt;2008 = 20&lt;/P&gt;&lt;P&gt;2009 = 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this , u have to bulit year tables:make use this fm  CSCP_PARA1_GET_PERIODS.&lt;/P&gt;&lt;P&gt; or any FM which gives no of years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.then u have to loop to get the sum.&lt;/P&gt;&lt;P&gt;loop at year.&lt;/P&gt;&lt;P&gt; loop at itab where date+0(4) = year-year.&lt;/P&gt;&lt;P&gt; a = a + itab-amount.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;modify year.&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;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 07:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi/m-p/2161586#M457269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T07:23:49Z</dc:date>
    </item>
  </channel>
</rss>

