<?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: converting time into seconds in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-time-into-seconds/m-p/4749433#M1113963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi look at this example ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ztests .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: DATE_1     type  sy-datum ,&lt;/P&gt;&lt;P&gt;      DATE_2     type  sy-datum ,&lt;/P&gt;&lt;P&gt;      TIME_1     LIKE  LTAK-BZEIT,&lt;/P&gt;&lt;P&gt;      TIME_2     LIKE  LTAK-BZEIT ,&lt;/P&gt;&lt;P&gt;      SECONDS    TYPE  INT4  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_1 = sy-datum .&lt;/P&gt;&lt;P&gt;DATE_2  = sy-datum .&lt;/P&gt;&lt;P&gt;TIME_1 = '08'.&lt;/P&gt;&lt;P&gt;TIME_2  = '10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SALP_SM_CALC_TIME_DIFFERENCE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    DATE_1        = DATE_1&lt;/P&gt;&lt;P&gt;    TIME_1        = TIME_1&lt;/P&gt;&lt;P&gt;    DATE_2        = DATE_2&lt;/P&gt;&lt;P&gt;    TIME_2        = TIME_2&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   SECONDS       = SECONDS&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/  SECONDS , 'seconds'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Nov 2008 14:50:30 GMT</pubDate>
    <dc:creator>former_member203501</dc:creator>
    <dc:date>2008-11-17T14:50:30Z</dc:date>
    <item>
      <title>converting time into seconds</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-time-into-seconds/m-p/4749430#M1113960</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;I have a time keyfigure which has the format hh:mm:ss, i need to convert this time into hrs, i mean, convert the minutes and seconds into hrs and add them to the "hh" . (For example, if the time is 1:30:20, i have to convert it into 2777 sec). Please let me know if there is any function module which can do this or please provide me the code. I know the logic for converting but i don't know the ABAP statements. Please provide me the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 14:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-time-into-seconds/m-p/4749430#M1113960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T14:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: converting time into seconds</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-time-into-seconds/m-p/4749431#M1113961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: v_time type c length 8 value '10:11:23',
      v_secs type i.

v_secs = ( ( v_time(2) * 60 ) + v_time+4(2) ) * 60 + v_time+7(2).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 14:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-time-into-seconds/m-p/4749431#M1113961</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-11-17T14:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: converting time into seconds</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-time-into-seconds/m-p/4749432#M1113962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RSSM_CONVERT_TIMESTAMP2DAYSEC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case put the timestamp in the TIME (01:30:20) input parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will return the secs in the SEC output parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 14:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-time-into-seconds/m-p/4749432#M1113962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T14:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: converting time into seconds</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-time-into-seconds/m-p/4749433#M1113963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi look at this example ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ztests .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: DATE_1     type  sy-datum ,&lt;/P&gt;&lt;P&gt;      DATE_2     type  sy-datum ,&lt;/P&gt;&lt;P&gt;      TIME_1     LIKE  LTAK-BZEIT,&lt;/P&gt;&lt;P&gt;      TIME_2     LIKE  LTAK-BZEIT ,&lt;/P&gt;&lt;P&gt;      SECONDS    TYPE  INT4  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE_1 = sy-datum .&lt;/P&gt;&lt;P&gt;DATE_2  = sy-datum .&lt;/P&gt;&lt;P&gt;TIME_1 = '08'.&lt;/P&gt;&lt;P&gt;TIME_2  = '10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SALP_SM_CALC_TIME_DIFFERENCE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    DATE_1        = DATE_1&lt;/P&gt;&lt;P&gt;    TIME_1        = TIME_1&lt;/P&gt;&lt;P&gt;    DATE_2        = DATE_2&lt;/P&gt;&lt;P&gt;    TIME_2        = TIME_2&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   SECONDS       = SECONDS&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/  SECONDS , 'seconds'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 14:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-time-into-seconds/m-p/4749433#M1113963</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2008-11-17T14:50:30Z</dc:date>
    </item>
  </channel>
</rss>

