<?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: difference between two dates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863953#M928698</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;use this function module,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      beg_da     = s_date-low&lt;/P&gt;&lt;P&gt;      end_da     = s_date-high&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      no_cal_day = d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 09:30:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-16T09:30:33Z</dc:date>
    <item>
      <title>difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863944#M928689</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;how to find the differnce between two dates?(have to get no of days)&lt;/P&gt;&lt;P&gt;date format will be in this format yyyymmdd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863944#M928689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T09:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863945#M928690</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;See the following example code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**CHANGING DATE FORMAT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZJE_DATE&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZJE_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: date(10) type c,&lt;/P&gt;&lt;P&gt;      date1 like date,&lt;/P&gt;&lt;P&gt;      date2 like date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; date = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ date using edit mask '____:__:__'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            DATUM         = date&lt;/P&gt;&lt;P&gt;            DTYPE         = date1&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          ERROR         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           IDATE         = date2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          MESSG         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          MSGLN         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      write:/ date2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863945#M928690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T09:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863946#M928691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FM:HR_HK_DIFF_BT_2_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this Example..&lt;/P&gt;&lt;P&gt;DATA:DATE1 TYPE D VALUE '20071220'.&lt;/P&gt;&lt;P&gt;DATA:DATE2 TYPE D VALUE '20071120'.&lt;/P&gt;&lt;P&gt;DATA:DAYS TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_DATUM_BIS = DATE1&lt;/P&gt;&lt;P&gt;I_DATUM_VON = DATE2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I_KZ_EXCL_VON = '0' &lt;/P&gt;&lt;P&gt;I_KZ_INCL_BIS = '0' &lt;/P&gt;&lt;P&gt;I_KZ_ULT_BIS = ' ' &lt;/P&gt;&lt;P&gt;I_KZ_ULT_VON = ' ' &lt;/P&gt;&lt;P&gt;I_STGMETH = '0' &lt;/P&gt;&lt;P&gt;I_SZBMETH = '1' &lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;E_TAGE = DAYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;DAYS_METHOD_NOT_DEFINED = 1 &lt;/P&gt;&lt;P&gt;OTHERS = 2 &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write:/ DAYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863946#M928691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T09:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863947#M928692</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;here is function module to find the no days ,no of years,no of months  between two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR_SGPBS_YRS_MTHS_DAYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check and give me reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863947#M928692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T09:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863948#M928693</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;You just subtract them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exp : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_date TYPE dats.&lt;/P&gt;&lt;P&gt;DATA: w_diff TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_diff = p_date - sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE w_diff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assign points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863948#M928693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T09:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863949#M928694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi use &lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;HR_HK_DIFF_BT_2_DATES&lt;/STRONG&gt;	- Calculate the days, months and years between 2 &lt;/P&gt;&lt;P&gt;dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take care date 3 must be greater than date4 for this fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : date3 type P0001-BEGDA,&lt;/P&gt;&lt;P&gt;             date4 type P0001-BEGDA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data days type P0347-SCRDD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;caLL FUNCTION 'HR_HK_DIFF_BT_2_DATES'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    date1                         = date3&lt;/P&gt;&lt;P&gt;    date2                         = date4&lt;/P&gt;&lt;P&gt;   OUTPUT_FORMAT                 = '02'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  YEARS                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MONTHS                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   DAYS                          = days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write :  days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIMA_DAYS_AND_MONTHS_AND_YEARS-&lt;/STRONG&gt;Get number of days. Year, Months between two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : date1 type sy-datum,&lt;/P&gt;&lt;P&gt;             date2 type sy-datum.&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data e_days type VTBBEWE-ATAGE.&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          = date1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_KEY_DAY_FROM       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    i_date_to            = date2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_KEY_DAY_TO         =&lt;/P&gt;&lt;/LI&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               = e_days&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  E_MONTHS             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  E_YEARS              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863949#M928694</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-05-16T09:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863950#M928695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'HR_HK_DIFF_BT_2_DATES'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          DATE1                         =  date1&lt;/P&gt;&lt;P&gt;          DATE2                         = date2&lt;/P&gt;&lt;P&gt;         OUTPUT_FORMAT                 = '02'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        YEARS                         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        MONTHS                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         DAYS                          = diff&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         INVALID_DATES_SPECIFIED       = 1&lt;/P&gt;&lt;P&gt;         OTHERS                        = 2&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863950#M928695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T09:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863951#M928696</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;USe FM  /SDF/CMO_DATETIME_DIFFERENCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;PRashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863951#M928696</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2008-05-16T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863952#M928697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have a look on the following code. It is by using function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: num type c.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_datum_bis                   = '20080516'&lt;/P&gt;&lt;P&gt;    i_datum_von                   = '20080510'&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   E_TAGE                        = num&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   DAYS_METHOD_NOT_DEFINED       = 1&lt;/P&gt;&lt;P&gt;   OTHERS                        = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;write:/ num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward,if useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863952#M928697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T09:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863953#M928698</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;use this function module,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      beg_da     = s_date-low&lt;/P&gt;&lt;P&gt;      end_da     = s_date-high&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      no_cal_day = d.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863953#M928698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T09:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863954#M928699</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;1. Please search the forum, this question is asked almost every day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. There are a number of function modules that will do this, but by far the easiest is to subtract one date field from the other.  The result is the number of days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: W_DATE1 TYPE DATS,
           W_DATE2 TYPE DATS.

DATA: RESULT(4) TYPE C.

RESULT = W_DATE1 - W_DATE2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863954#M928699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T09:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: difference between two dates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863955#M928700</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;See below eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      data: d1(8) type n,&lt;/P&gt;&lt;P&gt;              d2(8) type n,&lt;/P&gt;&lt;P&gt;              r type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      d1 = '20080501'.&lt;/P&gt;&lt;P&gt;      d2 = '20080510'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      r = d2 - d1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      write: r.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the result  9.&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;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 09:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-two-dates/m-p/3863955#M928700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T09:38:32Z</dc:date>
    </item>
  </channel>
</rss>

