Summing time in ABAP

Hi Everyone,
My requirement is something like this...
Consider an employee is entering his time schedule on an hourly basis, I am fetching these into an internal table but when iam fetching i need to sum all the time and display total time he has worked....
How to sum it...
I tried to sum in select query but its summing only the first part (hours) and not summing the minutes....
Can anyone help me on this......
Regards
Naveen

Hi Naveen,
Use FM 'C14B_ADD_TIME'.
Best regards,
Prashant

Similar Messages

  • Problem at the time of ABAP Import

    Hi Gurus,
    I am installing SAP ERP 6.0 EHP4 IDES version on AIX 5.3 and Oracle 10.0.2.0.4 version.Here I am getting an error at the time of ABAP Import it shows testing database connection failed due to the following R3load procedure.I am sending the massege with this mail.
    /usr/sap/JTB/SYS/exe/run/R3load -testconnect
    exec(): 0509-036 Cannot load program /usr/sap/JTB/SYS/exe/run/R3load because of the following errors:
            0509-150   Dependent module libclntsh.so could not be loaded.
            0509-022 Cannot load module libclntsh.so.
            0509-026 System error: A file or directory in the path name does not exist.
    Please guide me to overcome this problem and provide me some solution.
    Regards
    Nirmal

    Hi Nirmal,
    Just compare the output of the below command in your system...(Permission and ownership)
    # ls -l /oracle/client/10x_64/
    total 4
    -rwxrwxr-x   1 <sid>adm     sapsys         100 Mar 27  2006 dbclient.lst
    lrwxr-x---   1 <sid>adm     sapsys          41 Oct 28  2009 instantclient -> /oracle/client/10x_64/instantclient_10201
    drwxrwx---   2 <sid>adm     sapsys        1024 Mar 27  2006 instantclient_10201
    Regards.
    Rajesh Narkhede

  • How to sum time values sorted by month/year?

    I would like to sum time values that are sorted by month/year. (Concept is based on a pilot's logbook)
    In Table 1, Column A is a date; Column B is the associated time value (duration).
    In Table 2, I would like to Sum the time value of Table 1 Column B by month an year.
    TABLE 1
    Date
    Time
    Header 3
    Jan 1, 2013
    2:30
    Jan 3, 2013
    4:15
    Jan 9, 2013
    3:55
    Feb 2, 2013
    5:01
    Feb 10, 2013
    1:33
    March 3, 2013
    5:55
    TABLE 2
    Month/YR
    Total Time
    Header 3
    Jan-13
    10:40
    Feb-13
    6:34
    Mar-13
    5:55
    Apr-13

    smash,
    Here's an example of what can be done:
    The formula in the Total column of Summary is:
    =SUMIFS(Log :: B, Log :: A, ">="&A, Log :: A, "<"&EOMONTH(A, 0)+1)
    The Month column of Summary is filled with a series of dates that can be formatted as Jan-13, etc, if you wish.
    I used the 0h 0m format for the Durations to distinguish it from times.
    Jerry

  • Can i sum time fields?? (i expect that yes....)

    Hi everybody.
    I'm a visual basic programmer, actually, visual studio 2005, now i beginning with crystal report for visual studio 2005, nice and easy to use with the wizard, but,,, if i want to do something i little bit complex i can't find a manual for beginners.
    Now Iu2019m trying to do a report that list fields from a typed dataset, that dataset contains same datetime fields i.e. 1:30 , I put that fields in the details region, all it's ok, but the problem became when i try to sum all the times and totalize then.  The reason (i supposed) it's that the4 crystal can't sum time fields.
    Thinking about this, i suppose that i can do something with code but i can't find nothing about this, Can anybody tell me where is a manual to code in crystal report?
    Well, if somebody have any idea please tell me.

    The Crystal syntax doesn't change much from version to version so you can look at our SDK Guide on Diamond.
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crconformulareference.htm
    If you really want to formula reference for Crystal Reports for Visual Studio .NET 2005 you can look here [http://msdn.microsoft.com/en-us/library/ms225334(VS.80).aspx|http://msdn.microsoft.com/en-us/library/ms225334(VS.80).aspx].
    Edited by: David Hilton on Sep 29, 2008 4:47 PM
    Edited by: David Hilton on Sep 29, 2008 4:48 PM

  • I am using iPhone black , sum time no have network

    Really very bad feeling from apple
    Sum time No have network
    Tel what can I do ????

    Dear ,
    I am in Dubai UAE , I am using "du" carrier
    Really I faded up bout this
    Sum time no call and incoming
    After I jest ten off and ten on then work well 12 to 18 hrs then gain come same same 

  • Apple 4 Sum time durring call head fone Speaker stop working so what to do?

    Apple 4 Sum time durring call head fone Speaker stop working so what to do?

    No idea what you mean.  Are you asking about a problem with your headphones or the phone speaker?

  • Hierarchy Time Dependent ABAP code

    Dear Experts,
    I want to ask a custom BADI ABAP code to get the hierarchy of a dimension member where Time Dependent Hieararchy is implemented in that dimension.
    Currently we are using Interface method IF_UJA_DIM_DATA->get_hier_of_mbr to get the hierarchy reference.
    Sample Code:
    DATA: o_test     TYPE REF TO if_uja_dim_data.
    CALL METHOD o_test->get_hier_of_mbr
         EXPORTING
           i_member = lv_member
    *      i_dateto = lv_datum
         RECEIVING
           ro_hier  = lo_hierarchy.
    However after we implement the time dependent on the dimension, this method returns nothing unless we specified the i_dateto parameter to the method (which is optional).
    While my requirement is to get the hierarchy of the member with the date when this logic is executed, putting SY-DATUM to this parameter does not give me the result that I need. I need to put the i_dateto as '99991231' so the hierarchy returned by this method is the latest hierarchy, but not the current date where this logic is executed.
    Is there any way to make that the time hierarchy obtained is the one when the logic is executed? Or is there any other method that is feasible to meet with my requirements?
    Thanks
    Regards,
    Siswono

    Hi Siswono,
    Ok, I see what you mean.
    Then I would suggest that you determine the hierarchy end date first.
    read the hierarchy table by determine its technical name, then find the hierarchy with your date that's between the start date and end date, then you can use the end date for the next step.
    use get_hier_of_mbr with the determined end date.
    Andy

  • How to sum time values?

    I have a table with a column for duration of activities; boxes contain hours:minutes times such as 0:30, 1:45, 2:20 etc.
    I'd like to be able to sum the column, giving the total time spent on each activity - the three numbers listed should sum to 4:35.
    Advice would be welcome,
    Thanks,
    Mike

    Question asked and responded several times.
    Why not search in the existing threads ?
    In cells of column C the formula is:
    =TIMEVALUE(B)
    In D7 it is:
    =TIME(0, 0, SUM(C3:C6)24*6060)
    CAUTION, a time value can't be greater than 23:59:59 !
    Yvan KOENIG (VALLAURIS, France) mercredi 30 septembre 2009 12:11:08

  • How to reduce the run time of ABAP code (BADI) when it is reading huge data from BPC Cube and thus writing  back huge data to the cube.

    Hi All ,
    In Case of reading huge amount of record from BPC Cube  from BADI code , performing calculations and writing back huge amount of data into the cube , It takes lot of time . If there is any suggestion to read the data  from Cube  or writing data into the cube using some Parallel Processing  methods , Then Please suggest .
    Regards,
    SHUBHAM

    Hi Gersh ,
    If we have a specific server say 10.10.10.10 (abc.co.in) on which we are working, Then under RZ12 we make the following entry  as :
    LOGON GROUP          INSTANCE
    parallel_generators        abc.co.in_10         ( Lets assume : The instance number is 10 )
    Now in SM59 under ABAP Connections , I am giving the following technical settings:
    TARGET HOST          abc.co.in
    IP address                  10.10.10.10
    Instance number          10
    Now if we have a scenario of load balancing servers with following server details (with all servers on different instance numbers ) :
    10.10.10.11   
    10.10.10.13
    10.1010.10
    10.10.10.15
    In this case how can we make the RZ12 settings and SM59 settings such that we don't have to hardcode any IP Address.
    If the request is redirected to 10.10.10.11 and not to 10.10.10.10 , in that case how will the settings be.
    I have raised this question on the below thread :
    How to configure RZ12  and SM59 ABAP connection settings when we have work with Load Balancing servers rather than a specific server .
    Regards,
    SHUBHAM

  • Differnec in front end and back end of ESS record time from ABAP point

    HI Expert,
    Here I need information regarding employee working time.
    Quary is we are trying to restricts the records entered in time sheet through user exit CATS0006.
    Here in CATS0006 one table is there CHECK_TABLE.
    when I am executing time sheet from back end(t code  CAT2) the table Check_table is having forward and backword 6 weeks data from the key date and date_from and date_to fields have correct value for week start and end.So that I am able to validate records.
    But when I am executing from ESS>Working time>Record working time and set an external debugger on CATS0006 I got that at this time CHECK_TABLE has only edited entry and date_from and date_to field value are also not correct one.
    Please suggest what may the cause of problem ,is it the case with your system as well?
    Is it a problem with SAP standard code?
    << Moderator message - Please do not promise points >>
    << Moderator message - The answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
    Thanks,
    Subhashree.
    Edited by: Rob Burbank on Dec 2, 2011 9:26 AM

    Hi,
    What password are you talking about, the one created with the workgroup manager? That will be difficult since 2010 doesn't have the workgroup manager anymore. You can still use the database in the 2010 environment but you can't make any changes to the original
    database without the password.
    Maurice

  • Timer in ABAP report

    Hi Experts,
    I got a requirement to include a timer in the report that will show the time elapsed during the running of the report.
    It was told there is some function module for that. If anybody can help on this .
    Thanks,
    Shibaji.

    hi,
    use this syntax
    GET TIME [FIELD tim].
    read its documentation(F1 hlp)
    it works like dis,
    GET TIME <FIELD>.  field = 0
    GET TIME <FIELD>.  field = time elapsed from previous get time statement

  • Time sheet - abap hr

    when i go to txn code:cat2(program: saplcats) for entering time sheet, if any employee works for 6 hours from 23.00 hours it gives the 'to' time as 24.00 hours in the new version and considers as that person only worked for 1 hour on that day and the remaining 5 hours next day.Where as in the old version it gives 'to' time as 5.00 hours and considers that he worked 6 hours that day. Can any one pl explain how the new version has got this additional feature.

    Hi,
    Regarding Time Sheet Issue....
    To fill in time sheets in SAP . Make use of CATSDB to enter data.
    Goto SE38-->Type CATS* and press f4..you would get the list of the programs..to enter and maintain timesheet data.
    I hope it helps.
    Regards,
    Suruchi

  • Time sheets(ABAP-HR)

    Hi,
    This is regarding the Manager time sheets.
    Manager has rights to change the employee time sheet.
    When the employee time sheet data is changed by Manager ,at that moment generate email to the employee.
    how i will achive this functionality.
    is there any BAPI for this one.Please tell to me.
    Thanks,
    kishore.

    Hi Kishore,
    Check the following BAPIs for time sheets:
    BAPI_CATIMESHEETMGR_CHANGE CATS : Change Data Records
    BAPI_CATIMESHEETMGR_DELETE CATS : Delete Data Records
    BAPI_CATIMESHEETMGR_INSERT CATS: Insert Data Records
    BAPI_CATIMESHEETRECORD_GETLIST Time Sheet: Data Record List
    BAPI_EECATIMESHEET_GETWORKLIST Time Sheet: Read Worklist
    Regards,
    Chandra Sekhar

  • Time Constrains(ABAP-HR) module

    Hi Guy's,
    Please help me where exactly time constrains related information is stored(Table name).
    2. Using HR_READ_INFOTYES FM it is possible to retrieve the OM related information also.
    3. It is possible to add one field in  standard infotypes PSHD1-structure.
    Thanks,
    Sai.

    Hi,
    1. Time constaint's for infotypes is stored in the table T582A (you can check in the transaction pm01 - Infotype characteristics).
    2. HR_READ_INFOTYPE cant be used to read the OM infotype, You need to use FM RH_READ_INFTY for OM infotypes.
    3. You cant add the custom field in PSDH1 structure. You need to add only in structure PSnnnn (in CI_Pnnnn customer include structure).
    Thanks,
    Shrinivas

  • Sum time spent for breaks

    name id timein timeout breakin breakout currentdate
    karthik 1 9.40AM 5.20AM 11.00AM 11.10AM 20-APR-2007
    karthik 1 9.40AM 5.20AM 12.00PM 12.10PM 20-APR-2007
    karthik 1 9.40AM 5.20AM 1.30PM 1.45PM 20-APR-2007
    karthik 1 9.40AM 5.20AM 2.30PM 2.45PM 20-APR-2007
    karthik 1 9.40AM 5.20AM 4.00PM 4.30PM 20-APR-2007
    my need is i want to sumt the total hours spent for breaks from morning to evening.
    so please any one please give me query for this please.

    Like that ?
    SQL> with tbl as
      2  (select 'karthik' c1, 1 c2, '9.40AM' c3, '5.20AM' c4, '11.00AM' c5, '11.10AM' c6, to_date('20-A
    PR-2007','DD-MON-YYYY') c7 from dual union all
      3   select 'karthik' c1, 1 c2, '9.40AM' c3, '5.20AM' c4, '12.00PM' c5, '12.10PM' c6, to_date('20-A
    PR-2007','DD-MON-YYYY') c7 from dual union all
      4   select 'karthik' c1, 1 c2, '9.40AM' c3, '5.20AM' c4, '1.30PM'  c5, '1.45PM'  c6, to_date('20-A
    PR-2007','DD-MON-YYYY') c7 from dual union all
      5   select 'karthik' c1, 1 c2, '9.40AM' c3, '5.20AM' c4, '2.30PM'  c5, '2.45PM'  c6, to_date('20-A
    PR-2007','DD-MON-YYYY') c7 from dual union all
      6   select 'karthik' c1, 1 c2, '9.40AM' c3, '5.20AM' c4, '4.00PM'  c5, '4.30PM'  c6, to_date('20-A
    PR-2007','DD-MON-YYYY') c7 from dual )
      7  select c1, c2, to_char(trunc(sysdate)+sum(to_date(c6,'HH12.MIAM')-to_date(c5,'HH12.MIAM')),'HH24:MI') sum_break_h_mi
      8  from tbl
      9  group by c1,c2;
    C1              C2 SUM_B
    karthik          1 01:20
    SQL> Nicolas.

Maybe you are looking for