<?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: Function Module to get the difference between two times. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150277#M749099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this one: HRVE_GET_TIME_BETWEEN_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns the days, months and years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2007 10:25:56 GMT</pubDate>
    <dc:creator>franciscojavier_carrillom</dc:creator>
    <dc:date>2007-12-11T10:25:56Z</dc:date>
    <item>
      <title>Function Module to get the difference between two times.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150276#M749098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know if there is any function module that gives me the difference between two specified times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Ex: Time 1: 12/01/2007 00:01 A.M &lt;/P&gt;&lt;P&gt;            Time 2: Time 1 - 180 Seconds. This changes the time, also may even change the Date. (As in above situation, the Time 2 will be 11/30/2007 11:58 P.M)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could some one please suggest if there is any function module for this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 10:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150276#M749098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T10:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the difference between two times.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150277#M749099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use this one: HRVE_GET_TIME_BETWEEN_DATES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns the days, months and years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 10:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150277#M749099</guid>
      <dc:creator>franciscojavier_carrillom</dc:creator>
      <dc:date>2007-12-11T10:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the difference between two times.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150278#M749100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use Function Module..&lt;/P&gt;&lt;P&gt;SD_DATETIME_DIFFERENCE&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;SD_CALC_DURATION_FROM_DATETIME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 10:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150278#M749100</guid>
      <dc:creator>former_member188829</dc:creator>
      <dc:date>2007-12-11T10:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the difference between two times.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150279#M749101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using FM&lt;/P&gt;&lt;P&gt;SCOV_TIME_DIFF_46B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 10:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150279#M749101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T10:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the difference between two times.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150280#M749102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, i did not read your post very well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the seconds, you can use this fm one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'CX_SCHED_VIA_OPERATING_TIME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_date_start         = w_fecha1&lt;/P&gt;&lt;P&gt;      i_time_start         = w_hora1&lt;/P&gt;&lt;P&gt;      i_date_end           = w_fecha2&lt;/P&gt;&lt;P&gt;      i_time_end           = w_hora2&lt;/P&gt;&lt;P&gt;      i_unit               = w_medida&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      E_DURATION      = w_horas&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      parameters_not_valid = 1&lt;/P&gt;&lt;P&gt;      OTHERS               = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specified de date and hour and in unit, you can put H and it will return the time in hours. Then you only have to translate the hours to seconds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 10:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150280#M749102</guid>
      <dc:creator>franciscojavier_carrillom</dc:creator>
      <dc:date>2007-12-11T10:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to get the difference between two times.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150281#M749103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, You can use the following function module to calculate the diffrence between to dates in the unit that you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COPF_DETERMINE_DURATION calculates the difference between two dates and time in minutes and hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;	I_START_DATE "The start date of the time interval&lt;/P&gt;&lt;P&gt;	I_START_TIME "The start time of the time interval&lt;/P&gt;&lt;P&gt;	I_END_DATE   "The end date of the time interval&lt;/P&gt;&lt;P&gt;	I_END_TIME   "The end time of the time interval&lt;/P&gt;&lt;P&gt;	I_UNIT_OF_DURATION "Time unit of the duration if not to be calculated in days.&lt;/P&gt;&lt;P&gt;	Value	=====	Meaning&lt;/P&gt;&lt;P&gt;	' '	=====	Day (default)&lt;/P&gt;&lt;P&gt;	D	=====	Days&lt;/P&gt;&lt;P&gt;	H	=====	Hours&lt;/P&gt;&lt;P&gt;	MIN	=====	Minutes&lt;/P&gt;&lt;P&gt;	MON	=====	Months&lt;/P&gt;&lt;P&gt;	S	=====	Seconds&lt;/P&gt;&lt;P&gt;	WK	=====	Weeks&lt;/P&gt;&lt;P&gt;	YR	=====	Years&lt;/P&gt;&lt;P&gt;	I_FACTORY_CALENDER	"A factory calender if not using the Gregorian calender&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;	E_DURATION 	"Time difference in unit specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rajesh Soman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2007 12:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-the-difference-between-two-times/m-p/3150281#M749103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-11T12:27:07Z</dc:date>
    </item>
  </channel>
</rss>

