Any function to calculate actual work hours (deduct the break hours)

Hi expert,
I have defined the daily work schedule & break schedule. Work center is assigned with the daily work schedule. Now I want to calculate each work center actual work hours. I have a table where the start & finish time of working is keep.
for eg.
first break hr 10:00am to 10:15am
second break hr 13:00pm to 14:00pm
The work center might start work from 10:05 and finished at 14:30 or any other case.
I need to deduct the break hrs & get the actual hr worked
Is there any function to calculate the actual work hours base on the daily work schedule & break schedule ?
Thanks

Hello,
Try the below FM's
HR_PERSONAL_WORK_SCHEDULE
WORKING_HOURS = 'X'  " you will get the actual work hours
HR_BE_WORKING_SCHEDULE
Try the below class
CL_PT_TIME_EV_WORK_SCHED_UTIL
Regards,
Krishna
Message was edited by:
        Krishnakumar

Similar Messages

  • Actual Working Hours

    Dear All
    In BW there is a info object DUR_ACTUAL - which represents Actual working hours. Please let me know
    1) Is this working hours including the leaves ( emergency sick leaves, absences)
    2) how can i get this data in ECC in hours of actual working
    Please give let me know if you any details on this
    Regards
    Gajesh

    HI GAJESH,
    Actual working hours info is fed from many HR sources including attendances/absences/personnel work schedules/holiday calendars,etc. In BW system, actual working hours data is fetch using the function module HR_BIW_GET_DATA. Please examine this FM more closely.
    Regards,
    Dilek

  • Allowance calculation based on Planned & Actual working hours

    Hi,
    Please advise how to calculate an allowance based on employees Planned working hours & Actual working hours for a particular work schedule rules.
    Example A – Employee on Work Schedule for the Whole Month Employee has a 0007 infotype record that has them on Work Schedule SC112 for the whole of April 2008. System pays 100% of the allocated payment of $166.67 per month
    Example B – Employee on Work Schedule for part of the Month, Employee has a 0007 infotype record that has them on Work Schedule SC112 for the part of April 2008 as they only started on 14th April 2008. Planned Hours for April for SC112 are 180 hours and this person has worked 108 hours which is 60% (=108/180). System should pay 60% of the allocated payment of $166.67 per month which results in a payment of $100.00 for the employee.
    Your help would be really appreciated.
    Regards
    Ranjith Yama

    Hi Manoj,
    Suppose ABCD is the wagetype for xyz allowance. I hope you are getting this 1000 amount from T510.
    This is the logic of PCR for your requirement.
    ABCD
      NUM=TKAU**        --> Getting Unpaid Absences (Suppose 2)
      RTE=KCONS2        --> Maintain CONS2 constant in T511K Table with 200
      MULTI NRA            --> Multiplying No.of Absences with 200.. that is 400
      ADDWT &BUFF     --> Saving that in one Variable
      FILFF NRA            --> Restoring Actual values
      AMT- &BUFF        --> Subtracting from 1000 and you will get the 600
      AMT?0
         ADDWT *
       <              
         AMT=0             --> if amount is less than 0 then amount will bocome 0
    Hope this helps.
    Pradeep.

  • Planning working hours and actual working hours

    Hi All,
    From which cube or data source i will get the job Order Planning Working hours & Actual Working hours.
           Thanks in Advance
    Edited by: ranamk on Jan 24, 2011 7:10 AM

    Hi Anil,
    I have already go through the links and couldn't able to find the solution.
    I need Actual Working and Planned working Hours by Job Order.
    Thanks

  • PWA 2013 - tasks.aspx - cannot enter actual work hours

    In Project Server 2013, after assigning tasks to a project member, the member can log on to the PWA and see all tasks which has been assigned to him. But the member is not able to enter actual work hours, the corresponding fields are disabled.
    Additional information: it's a project which has been migrated from PS2010 and the member I am talking about has the 'Administrator' role and the 'Team member' role

    what type of project tracking was defined for project as?  If the project was done as "Percent of Work COmplete" and it was migrated.  It will maintain that Tracking Method.
    Cheers!
    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Website http://www.WhartonComputer.com
    Blog http://MyProjectExpert.com contains my field notes and SQL queries

  • I recently saw an ad on Facebook promoting magnetic lenses for the purpose of enhancing photos.  Two questions:  Do those actually work AND will the magnets harm the phone at all?

    I recently saw an ad on Facebook promoting magnetic lenses for the purpose of enhancing photos.  Two questions:  Do those actually work AND will the magnets harm the phone at all?

    Read some reviews of these lenses here:
    http://www.cultofmac.com/158988/hands-on-with-zoom-fisheye-wide-and-macro-lenses -for-iphone-and-ipad-reviews/
    http://www.iphoneincanada.ca/accessories/photojojos-ultimate-iphone-lens-kit-rev iew/
    http://connect.dpreview.com/post/2188563587/accessory-review-photojojo-phone-len s-series
    They won't hurt your iPhone.

  • Inaccurate Actual Work hours in the Portfolio Analyzer Cube Report

    I am trying to create a report that will show all resources and the status of their timesheets. For the sake of this picture I removed the project list and resource list from my pivot table. I am using the Portfolio Analyzer cube for creating this report.
    My question is why when using Actual Work is it showing the same hours for timesheet status? I would think the columns would each have different hours based off which stage of the time approval process the resource was in. 
    Thanks,
    B

    No.  It is only showing hours from project status and not timesheets.  Timesheet is a completely separate bucket of time.
    Cheers!
    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Website http://www.WhartonComputer.com
    Blog http://MyProjectExpert.com contains my field notes and SQL queries

  • How to Calculate Total Worked Hours in a date range

    <p><span>WorkedHours column type is varchar(8) (for HH:MM:SS), <br />how to sum working hours of an employee for every month.</span> <br /></p><p><span>ex. of data : WorkedHours<br /><br />attencode   attendate   WorkedHours<br />1573         20-01-2007    07:34:22<br />1573         21-01-2007    12:31:10<br /><br />how can i sum the WorkedHours and print it in Hours format.<br />(like 20.17 for this 2 values)<br /><br />Can u able to follow me.<br />If not pls. feel free to get more information in this regard.</span></p>

    Create a formula like this :
    ((hour({tmpDate.attendate }) * 60 * 60) +
    (minute({tmpDate.attendate }) * 60) +
    Second({tmpDate.attendate }))/3600
    and then take the Sum of it. You can get the result.
    logic behind this is all the hours and minutes are converted into seconds and then added and divided by 3600 to get the actual hours.
    thanks
    kanak

  • Pcr to calculate annual working hours.

    Dear Friends,
        Can we calculate annual payed working hours in negative time managment.if it is possible can you plz tell how v can configure that in pcr.

    Go to table V_T555A and create time type
    write a PCR  initilize the MONTHLY time time in PCR pass value to YEARLY TIME TYPE.
    please insert the PCR in TM04 Schema  before ZL table accumulation
    Best Regards

  • Actual work hours shown as Overtime after time evaluation

    User has entered 8 work hours but out of it 6.5 hrs a are shown as Overtime after time evaluation.
    Please help

    You need to check the configuration.
    Counting rules for overtime.
    Just is overtime booked on working day? etc.
    Warm Regards

  • Is there any function to check whether table exist in the dictionary

    In the program, i want to dynamicly check whether the table exists in the dictionary, and return the result to me.

    hi
    good
    i dont think there is any such function to check the presence of the table.
    bcz you can check it directly in se11 rather than using any function.
    thanks
    mrutyun^

  • I just bought an airport express and I am in the process of configuring but my mac does not detect any airport devise. internet is working wirelessly and the airport is plugged next to the mac. any clue how can I fix this?

    I just bought an airport express but when trying to configure it my mac is not capable of detecting the devise. The airport is plugged right next to the modem and the wireless internet is running perfectly. does any one experience this before?

    You don't mention what function you want the AirPort Express to accomplish.
    If you are trying to configure it to "join" your existing wireless network, you need to know the exact type of security that your wireless network is using fo you can use that same information to provide the correct settings to the AirPort Express.
    You may be getting a message that the settings have been stored successfully, but unfortunately the settings that you have provided to the Express are likely the wrong settings.
    The only way that you really know if the settings that you entered were correct is if you get a green light 20-30 seconds after you click Update.  If you don't get a green light on the Express, the settings that you provided were not the correct settings.
    When you click Update, the Express will "disappear". This is normal. Up until the time that you click update, AirPort Utility is communicating to the Express on a wireless network with a name like Apple Network xxxxxxx. As soon as you click Update, the Express switches (or tries to switch) to another network, so of course it will disappear from the AirPort Utility window.
    As soon as you click Update, close AirPort Utility. There is no reason to keep watching a window when the Express will never appear.

  • TS3999 hi my iphone will not show icloud calendar i have tried everything any ideas? it did work but since the ios7 update nada

    hi all my Iphone calendar will not show my Icloud calander? any ideas?

    Manually syncing does not fix your problem and is not that comfortable. If it still does not work, I would suggest to check your iCloud settings on your Mac as well, because there is no reason that it does not work if you set up your account on all your devices.

  • Do games etc actually work properly on the MBP with boot camp?

    I have heard alot about Boot camp being excellent for windows but does it actually run games smoothly, for example I play Flight sim 2004 on my Pc at home, how would this rate on th MBP, or even a game like Battlefield 2 etc?

    Well....being my first Mac (& me being a switcher, also), I can say that I like what I've encountered. I literally stay in OSX for everything except gaming. I like the Mail interface -- it is so much simpler than Outlook. I like the integration of the iLife suite of products. I like the look & feel of the machine; the back-lit keyboard is most impressive.
    As far as advice -- be open to changes. Mac folks tend not to concern themselves w/ the minutia of computing the way we Win-geeks have for years (sorry about the generalization, but this is what I've noticed in my measely Mac experience). I think this is simply b/c the Mac "just tends to work." If one does not want to concern oneself over minutia (re: the Mac), that is completely possible. For a Win-geek, it really isn't. Make sure you partition (choose the right size) correctly, since doing it over again is a bit of a pain. Finally, ask lots of questions. I am by no means competent w/ OSX yet....but I am comfortable. There are some good reads out there on optimizing the OSX environment (& plenty of websites).
    And, of course, in the greats words of Douglas Adams, don't panic. Pour yourself a pint (of 1759, of course!) & enjoy.

  • ITunes cannont backup the iPhones because a session could not be started with the iPhone" I've never connected my phone to any other computer and it worked fine a the other day.  Help Please?

    I'm trying to sync my iPhone 3G S to my computer.  Midway through I get a message "iTunes cannot backup the iPhone because a session could not be started with the iPhone."  I have not connected my phone to any other computer and this just began happening within the last day or so. 
    PLEASE HELP!!

    One of your backup files might be corrupt. Try following the steps in this article to correct the issue: http://support.apple.com/kb/ts2529

Maybe you are looking for