<?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: Reg Function module for getting date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module-for-getting-date/m-p/4531968#M1071063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest .


DATA : lv_date TYPE syst-datum ,
       lv_tmp  TYPE i          .

PARAMETERS : p_date TYPE syst-datum OBLIGATORY .


CALL FUNCTION 'ADD_TIME_TO_DATE'
  EXPORTING
    i_idate = p_date
    i_time  = '3'
    i_iprkz = '2' "Month
  IMPORTING
    o_idate = lv_date.

lv_tmp = lv_date - p_date .
WRITE : 'Diff in days ' , lv_tmp .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2008 13:52:55 GMT</pubDate>
    <dc:creator>Pawan_Kesari</dc:creator>
    <dc:date>2008-10-06T13:52:55Z</dc:date>
    <item>
      <title>Reg Function module for getting date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module-for-getting-date/m-p/4531967#M1071062</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;My requirement is, If I entered some date I need to get past three months number of days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: if I entered 26thDec,2007 &lt;/P&gt;&lt;P&gt; I need to get number of days form October 1st to 26th Dec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sarath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 13:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module-for-getting-date/m-p/4531967#M1071062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T13:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Function module for getting date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module-for-getting-date/m-p/4531968#M1071063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest .


DATA : lv_date TYPE syst-datum ,
       lv_tmp  TYPE i          .

PARAMETERS : p_date TYPE syst-datum OBLIGATORY .


CALL FUNCTION 'ADD_TIME_TO_DATE'
  EXPORTING
    i_idate = p_date
    i_time  = '3'
    i_iprkz = '2' "Month
  IMPORTING
    o_idate = lv_date.

lv_tmp = lv_date - p_date .
WRITE : 'Diff in days ' , lv_tmp .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 13:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module-for-getting-date/m-p/4531968#M1071063</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2008-10-06T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Function module for getting date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module-for-getting-date/m-p/4531969#M1071064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HR_SGPBS_YRS_MTHS_DAYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIMA_DAYS_BETWEEN_TWO_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIMA_DAYS_BETWEEN_TWO_DATES_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIMA_LEAP_DAYS_BETWEEN_2_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use any of the FM above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 13:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module-for-getting-date/m-p/4531969#M1071064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T13:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Function module for getting date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module-for-getting-date/m-p/4531970#M1071065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 06:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-function-module-for-getting-date/m-p/4531970#M1071065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-08T06:39:13Z</dc:date>
    </item>
  </channel>
</rss>

