<?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 All the months between given dates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131365#M448061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Feriends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module that returns all the months between the given dates.&lt;/P&gt;&lt;P&gt;i.e. if i give 03/2007 in low and 06/2007 in high it should give the 3rd 4th and 5th months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any ofu have faced the same requirement.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2007 08:59:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-10T08:59:40Z</dc:date>
    <item>
      <title>All the months between given dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131365#M448061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Feriends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module that returns all the months between the given dates.&lt;/P&gt;&lt;P&gt;i.e. if i give 03/2007 in low and 06/2007 in high it should give the 3rd 4th and 5th months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any ofu have faced the same requirement.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 08:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131365#M448061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T08:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: All the months between given dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131366#M448062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZDATEDIFF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: EDAYS   LIKE VTBBEWE-ATAGE,&lt;/P&gt;&lt;P&gt;      EMONTHS LIKE VTBBEWE-ATAGE,&lt;/P&gt;&lt;P&gt;      EYEARS  LIKE VTBBEWE-ATAGE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,&lt;/P&gt;&lt;P&gt;            TODATE   LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    i_date_from          = FROMDATE&lt;/P&gt;&lt;P&gt;    i_date_to            = TODATE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_FLG_SEPARATE       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    E_DAYS               = EDAYS&lt;/P&gt;&lt;P&gt;    E_MONTHS             = EMONTHS&lt;/P&gt;&lt;P&gt;    E_YEARS              = EYEARS.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;WRITE:/ 'Difference in Days   ', EDAYS.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Difference in Months ', EMONTHS.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Difference in Years  ', EYEARS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131366#M448062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T09:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: All the months between given dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131367#M448063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT-OPTIONS : S_SPMON FOR PGPL-SPMON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : TOMON(2) TYPE N,&lt;/P&gt;&lt;P&gt;FROMMON(2) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ITAB LIKE T247 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROMMON = S_SPMON-LOW+4(2).&lt;/P&gt;&lt;P&gt;TOMON = S_SPMON-HIGH+4(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM T247 INTO TABLE ITAB WHERE MN BETWEEN FROMMON AND TOMON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;WRITE : / ITAB-KTX,ITAB-LTX.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR YOU CAN USE FM MONTH_NAMES_GET INSTEAD OF SELECTING DATA FROM T247.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131367#M448063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-10T09:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: All the months between given dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131368#M448064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at FM CSCP_PARA1_GET_PERIODS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a couple of dates, give you a table of beginning of period,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131368#M448064</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-04-10T09:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: All the months between given dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131369#M448065</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;Check these fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTHS_BETWEEN_TWO_DATES&lt;/P&gt;&lt;P&gt;MONTHS_BETWEEN_TWO_DATES_NEW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR_99S_MONTHS_BETWEEN_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR_MONTHS_BETWEEN_TWO_DATES &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2007 09:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/all-the-months-between-given-dates/m-p/2131369#M448065</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-04-10T09:12:36Z</dc:date>
    </item>
  </channel>
</rss>

