<?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 Function module to find the months between two different dates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286239#M786095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement in which the client wants to change the product from existing one to new product(report)....and i have to check whether the client is changing the product before 12 months of the issue date of existing product.&lt;/P&gt;&lt;P&gt;How do i do this..is ther any function module to find the month between two different dates??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2008 07:04:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-21T07:04:41Z</dc:date>
    <item>
      <title>Function module to find the months between two different dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286239#M786095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement in which the client wants to change the product from existing one to new product(report)....and i have to check whether the client is changing the product before 12 months of the issue date of existing product.&lt;/P&gt;&lt;P&gt;How do i do this..is ther any function module to find the month between two different dates??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 07:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286239#M786095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T07:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to find the months between two different dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286240#M786096</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 the following code:&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;INITIALIZATION.&lt;/P&gt;&lt;P&gt;FROMDATE = SY-DATUM - 60.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 07:07:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286240#M786096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T07:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to find the months between two different dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286241#M786097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this FM MONTHS_BETWEEN_TWO_DATES&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 07:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286241#M786097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T07:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to find the months between two different dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286242#M786098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FM: HR_AUPBS_MONTH_DAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM will return you number of Years, Months and Days between Begin date and endDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 07:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286242#M786098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T07:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to find the months between two different dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286243#M786099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudheer,&lt;/P&gt;&lt;P&gt;   Have a look at the following link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://abapcode.blogspot.com/2008/01/sap-function-module-for-date-and-time.html" target="test_blank"&gt;http://abapcode.blogspot.com/2008/01/sap-function-module-for-date-and-time.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 07:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286243#M786099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T07:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to find the months between two different dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286244#M786100</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;&lt;/P&gt;&lt;P&gt;   Use the FM, 'HR_HK_DIFF_BT_2_DATES' to find the number of months exists between the given 2 dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following example...&lt;/P&gt;&lt;P&gt;  Data: d1 type sy-datum,&lt;/P&gt;&lt;P&gt;           d2 type sy-datum,&lt;/P&gt;&lt;P&gt;           wf_month_diff type P0347-SCRMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;call function 'HR_HK_DIFF_BT_2_DATES'&lt;/STRONG&gt;     &lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        date1 = d1&lt;/P&gt;&lt;P&gt;        date2 = d2&lt;/P&gt;&lt;P&gt;        output_format = '04'&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;         months = wf_month_diff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;In the 'wf_month_diff' variable, you will get the month difference between these two dates.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shanthi.P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;Reward points if useful *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 07:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-find-the-months-between-two-different-dates/m-p/3286244#M786100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T07:14:59Z</dc:date>
    </item>
  </channel>
</rss>

