<?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 Time Sum  Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067572#M726990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Guru's,&lt;/P&gt;&lt;P&gt;I need to find the sum of time units in my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the data i get from the database is in the format 22 :50:00 and 10:00:00 like wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to add all the enteries for the same to show the talal number of hr and mint. as 32:50:00 in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me out in the problem......Points fully ensured..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;P&gt;Lakhan..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2007 10:59:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-27T10:59:52Z</dc:date>
    <item>
      <title>Time Sum  Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067572#M726990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Guru's,&lt;/P&gt;&lt;P&gt;I need to find the sum of time units in my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the data i get from the database is in the format 22 :50:00 and 10:00:00 like wise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to add all the enteries for the same to show the talal number of hr and mint. as 32:50:00 in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me out in the problem......Points fully ensured..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards...&lt;/P&gt;&lt;P&gt;Lakhan..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 10:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067572#M726990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T10:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Time Sum  Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067573#M726991</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;u can try using Offset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split the time field into 3 parts.&lt;/P&gt;&lt;P&gt;sum them individually.&lt;/P&gt;&lt;P&gt;and then again concatenate in the required format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Preeti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 11:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067573#M726991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T11:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Time Sum  Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067574#M726992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thankx  Preeti.&lt;/P&gt;&lt;P&gt;  Can u give me code for the same....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i need it urgently. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Lakhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 11:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067574#M726992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T11:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time Sum  Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067575#M726993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can store in variables of type T and then add the times (normal addition). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you 325000 (after adding 22:50:00 and 10:00:00 - first store these in a type )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can add the colons (&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : tm1 type t.&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tm1 = tm1 + wa-time. "name of the field is "time"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now tm1 holds the value of time field summed up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you can store it again in a variable for proper format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data tm2 type sy-uzeit.&lt;/P&gt;&lt;P&gt;tm2 = tm1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tm2 now holds the time in proper format. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Priyank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Priyank Jain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Priyank Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 11:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067575#M726993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-27T11:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Time Sum  Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067576#M726994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Please check the code given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of ty_time_ext,&lt;/P&gt;&lt;P&gt;      time(8)  type c,&lt;/P&gt;&lt;P&gt; end of ty_time_ext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:tb_time_ext type standard table of ty_time_ext,&lt;/P&gt;&lt;P&gt;     wa_time_ext like line of tb_time_ext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:wf_time(6)  type n,&lt;/P&gt;&lt;P&gt;     wf_time_total(8) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_time_ext-time = '22:50:00'.&lt;/P&gt;&lt;P&gt;append wa_time_ext to tb_time_ext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_time_ext-time = '10:00:00'.&lt;/P&gt;&lt;P&gt;append wa_time_ext to tb_time_ext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tb_time_ext into wa_time_ext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; concatenate wa_time_ext-time+0(2)&lt;/P&gt;&lt;P&gt;             wa_time_ext-time+3(2)&lt;/P&gt;&lt;P&gt;             wa_time_ext-time+6(2)&lt;/P&gt;&lt;P&gt; into wf_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; wf_time_total = wf_time_total + wf_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1) You cannot use TIME VARIABLE for storing the TOTAL and SUMMING up.. .SAP will automatically convert the Total time into days.&lt;/P&gt;&lt;P&gt;eg. if time is 20:00:00 and 10:00:00 and you add it ... SAP will store the sum as &lt;/P&gt;&lt;P&gt;06:00:00 and not 30:00:00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)  You cannot use TIME variables as your internal table can have A lot of entries so the SUM Can exceed 6 characters.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 11:40:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-sum-problem/m-p/3067576#M726994</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-11-27T11:40:01Z</dc:date>
    </item>
  </channel>
</rss>

