<?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: Ranges between the time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749614#M1114009</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 tried , here taking to calculate as 24 HRS ..&lt;/P&gt;&lt;P&gt;but , i want the 12 Hrs calculation only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards!!&lt;/P&gt;&lt;P&gt;Micheal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2008 11:42:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-31T11:42:19Z</dc:date>
    <item>
      <title>Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749608#M1114003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          I want to calculate the ranges between the time(12 Hrs) on the same date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Date : 30.10.2008 &lt;/P&gt;&lt;P&gt;  Time : 09:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Date : 30.10.2008 &lt;/P&gt;&lt;P&gt;  Time : 06:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans: 9 Hrs (Diff Bt Time)&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;Ex:2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  No need to given as Date...just time enough for my required...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start Time : 09:00:00&lt;/P&gt;&lt;P&gt;end Time  : 06:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ans : Same as above for EX:1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply immediately....&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;Micheal ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything Is Possible...&lt;/P&gt;&lt;P&gt;If We are Working as Unity....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749608#M1114003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749609#M1114004</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;Try like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : tim TYPE tims,
             y TYPE tims.
DATA : t TYPE string,
       t1 TYPE string,
       t2 TYPE string,
       t3 TYPE string.
 
START-OF-SELECTION.
 
  t = tim(2).
  t  = t  . " hours 
  t1 = tim+2(2).
  t1 = t1 / 60 .  " minutes to hours
  t2 = tim+4(2).
t2 = t2 / 3600. " second to hours
  t3 = t + t1 + t2. " total time in hours
" similarly try to convert y to hours..... 
 t3 = t3 - &amp;lt;y converted to hours&amp;gt;.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Debarshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749609#M1114004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749610#M1114005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA :
   w_d1 TYPE sy-uzeit,
   w_d2 TYPE sy-uzeit,
   w_result TYPE sy-uzeit.


w_d1 = sy-timlo.
w_d2 = 141005.
w_result = w_d1 - w_d2.

WRITE /:
    w_d1,
    w_d2,
    w_result.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749610#M1114005</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-10-31T11:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749611#M1114006</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 FM : SD_DATETIME_DIFFERENCE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749611#M1114006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749612#M1114007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try with&lt;/P&gt;&lt;P&gt;SD_DATETIME_DIFFERENCE&lt;/P&gt;&lt;P&gt;TIMECALC_DIFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749612#M1114007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749613#M1114008</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;For Y Conversion is indicate as TOTAL HOURS or from input Hours...&lt;/P&gt;&lt;P&gt;Plz tell,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; REGARDS!!!&lt;/P&gt;&lt;P&gt;Micheal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749613#M1114008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749614#M1114009</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 tried , here taking to calculate as 24 HRS ..&lt;/P&gt;&lt;P&gt;but , i want the 12 Hrs calculation only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards!!&lt;/P&gt;&lt;P&gt;Micheal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749614#M1114009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749615#M1114010</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 said to calculate smilarly for y....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS : tim TYPE tims,
             y TYPE tims.
DATA : t TYPE string,
       t1 TYPE string,
       t2 TYPE string,
       t3 TYPE string,
       t4 type string,
      t5 type string,
      t6 type string,
      t7 type string,
      t8 type string.
 
START-OF-SELECTION.
 
  t = tim(2). " hours 
  t1 = tim+2(2).
  t1 = t1 / 60 .  " minutes to hours
  t2 = tim+4(2).
t2 = t2 / 3600. " second to hours
  t3 = t + t1 + t2. " total time in hours


  t4 = y(2).
  t4 = t  . " hours 
  t5 =y+2(2).
  t5 = t5 / 60 .  " minutes to hours
  t6 =y+4(2).
t6 = t6 / 3600. " second to hours
  t7 = t4 + t5 + t6. " total time in hours

 t8 = t3 - t7.-----------------&amp;gt; your desired result

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Debarshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749615#M1114010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749616#M1114011</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;  From   ' TIMECALC_DIFF'  , this FM have different input format...&lt;/P&gt;&lt;P&gt;.Bcze , its having TIMESTAMP(YYYYMMDDHHMMSS)...i given this format,but it wil not taken as correctly.... &lt;/P&gt;&lt;P&gt;  Plz tell as the input format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards!!&lt;/P&gt;&lt;P&gt;Micheal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749616#M1114011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749617#M1114012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With a 12 hour notation i don;t know how the time looks in your variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But normally you could do a subtraction of both fields. And even if its in a 12 hour notation, the subtraction works, but you need to adjust the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9:00 in the morning&lt;/P&gt;&lt;P&gt;7:00 in the evening (19:00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just do 7 - 9 = -2. If the result is negative, add 12 to it. Thus the result will be 10.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749617#M1114012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749618#M1114013</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;        Its coming, But i want to calculate as 12Hrs only ,not as 24 Hrs..Plz reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards!!!&lt;/P&gt;&lt;P&gt;Micheal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 11:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749618#M1114013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T11:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges between the time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749619#M1114014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;9:00 in the morning&lt;/P&gt;&lt;P&gt;&amp;gt;7:00 in the evening (19:00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;Just do 7 - 9 = -2. If the result is negative, add 12 to it. Thus the result will be 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you even try this one out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 12:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges-between-the-time/m-p/4749619#M1114014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T12:02:20Z</dc:date>
    </item>
  </channel>
</rss>

