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.
Similar Messages
-
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 AMHi 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 -
Pro-Rata Allowance Calculation based on WSR
Hi,
We need to perform an enhancement for a allowance to be calculated based on their WSR. Could any one please advise what would be the best approach to perform this customisation.
Following are the details:
A calculation needs to be made based on an employees 0007 & 2003 records for a given month to determine what percentage of the planned hours for the month that a person has worked and then apply that percentage to the Monthly Staff Supplementary Allowance applicable for the Work Schedule Grouping.
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 pays 60% of the allocated payment of $166.67 per month which results in a payment of $100.00 for the employee.
Example C Employee on Work Schedule for part of the Month Employee has a 2003 infotype record that has them on Work Schedule SC112 for the 14th April 2008. Planned Hours for April for SC112 are 180 hours and this person has worked 12 hours on SC112 which is 6.67% (=12/180). System pays 6.67% of the allocated payment of $166.67 per month which results in a payment of $11.11 for the employee.
Example D Employee on 2 eligible Work Schedules for the Month Employee has a 0007 record for Work Schedule SC112 from 01.04.2008 to 14.04.2008 and then for SC412 from 15.04.2008 to 31.12.9999. This person has spent 100% of the month in an eligible Work Schedule grouping System pays 100% of the allocated payment of $166.67 per month which results in a payment of $166.67 for the employee.
Example E Employee on 2 eligible Work Schedules for the Month, Employee has a 0007 record for Work Schedule SC112 from 01.04.2008 to 14.04.2008 and then for SC512 from 15.04.2008 to 31.12.9999. This person has spent 100% of the month in eligible Work Schedule groupings The period on SC112 represents 40% of the hours for SC112 for April 2008, 72 of 180 hours. The System calculates 100% of the allocated payment of $166.67 per month which results in a payment of $66.67 for the employee. The period on SC512 represents 50% of the hours for SC5112 for April 2008, 96 of 192 hours. The System calculates 50% of the allocated payment of $0.00 per month which results in a payment of $0.00 for the employee. Overall this employee receives a Staff Supplementary Allowance of $66.67 for April 2008.
Your help would be really appreciated.
Regards
Ranjith YamaHi Guys,
Could you please advise on this,
I'm trying to build a rule to get the Actual worked hours so that I can use the SSOLL and constant from T511k table to calculate the alowance.
I'm pretty new in writing rules, your help would be really appreciated.
Regards
Ranjith -
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 ?
ThanksHello,
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 -
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
GajeshHI 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 -
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' rolewhat 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 -
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,
BNo. 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 -
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 helpYou need to check the configuration.
Counting rules for overtime.
Just is overtime booked on working day? etc.
Warm Regards -
Time Passage Calculation excluding Weekends and Non-work hours
Good Afternoon Everyone!
I am currently using the expression below to determine the amount of time that has passed since a Task has been created.
TIMESTAMPDIFF(SQL_TSI_MINUTE, Activity."Created Date", NOW())
We have a completion goal for a specific task type of 2 hours (120 minutes), but it should only be calculated minutes between 7 AM and 4 PM and only on week days.
So, a task created at 3:50 PM on a Friday that is completed at 7:30 AM on the following Monday should only calculate to 40 minutes of time.
I am at a loss for where to start tackling this problem. If any of you can help I would be very appreciative!Hey Paul, thanks for the prompt. I see now that the formula is incomplete.
As I have just taken the difference in days between the Activity Start Time and End Time, it will consider any weekend. But its incomplete as it considers only 15 hours of a day and not the remaining 9 hours for weekends. For holidays - we do need a field or something to identify it like Activity Type = 'holiday'.
So the ELSE* part of revised formula would be something like this:
... ELSE TIMESTAMPDIFF(SQL_TSI_MIN,activity start time,activity end time) - (60*15*(DAY(Activity End Time) - DAY(Activity Start Time))) - (60*9*(COUNT(DISTINCT CASE WHEN DAYOFWEEEK(Date.Date) IN (6,7) OR ~some field to identify holiday~ = 'something' THEN 1 END)) END
now imagine there's one activity that started on Friday 7:00 AM and ends on coming Monday at 4:00 PM.
Actual duration is 18 hours.
Now,the first term after ELSE will give 81*60 minutes. next term should give 45*60 minutes. third term would be 18*60 min.
so the entire expression would return 18 hours.
Even if there's a holiday, then i guess the 'OR' part should capture it.
I hope this makes sense. Please let me know if it should need any further corrections. -
Daily working Hours Calculation
Dear All
Time Management - >Work Schedules->Set Work Schedule rules and work schedule
How to calculate the Daily working hours if my shift time is as given below
Night 00:25 to Morning 07:30
My break time is between 3:30 to 4:00
So my actual working hours is 6:35 hours (6 hrs and 35 min).
What i need to enter in the Daily working hours, whether 6.35 or 6.58 (0.25/15*35)?
regards
Suresh SHi,
First create a break shedule from 3:30 to 4:00 AM and specify if paid or unpaid.
Use this break schedule while creating daily work schedule. Specify the timings of 0:25 as start in planned working time, the end time will be calculated automatically.
Use this DWS in your PWS which you in turn use while setting WSR as you stated above. The Daily Working time will be automatically taken from DWS. And I think it should be 6:35 hrs.
cheers
Ajay -
Need to Enter Real Subtask "Actual Work" and "Actual Finish"
I am creating a Project file by importing a CSV file. I need to be able to import both the real Actual Work hours and the real Actual Finish dates contained in the CSV file. Somehow Project ties these two together for finished Subtasks:
entering the Actual Work sets the Actual Finish. And entering the Actual Finish clears the Actual Work.
Is there a sequence to enter those for a Subtask, and display what is in the CSV file, rather than what Project wants to compute?andyrice,
If you set the % Work Complete field to 100%, then the Actual Finish field should not be empty. Do you have automatic calculation turned off? Are you using manual scheduling mode?
For the test sequence I ran, my task type is Fixed Work. I set % Work Complete to 100%. At that point Project assumes the task finished as planned so it sets the Actual Finish date to be the Finish date and the Actual Work to equal the Work. Now you need
to adjust the work and finish date. If you simply change the value in the Actual Work field, Project will reset the % work complete if the actual work value does not equal the Work field (remember, task is fixed work). So to "replan" the task to what actually
happened, you must update the Work field with the actual work value. Finally, if the Actual Finish is not the Finish, then the Actual Finish date must be updated. Try that.
Project's scheduling equation is:
Duration = Work/Units.
John -
Hello,
Appreciate if you could help me to understand how ATP based on planning output works in following scenario.
ATP-enabled plan is an ECC plan with supplier capacity constraints. The ATP plan has both forecast and sales order demand. When ATP plan runs, supply planned orders will be generated based on supplier capacity constraints.
If a new sales order is scheduled, will ATP suggest a promise date by
1) considering the supply planned orders generated for the unconsumed forecast
OR
2) generating a new supply planned order for the new sales order
If (2) is used, will the sales order be scheduled out to a later date if the supplier capacity has already been taken up by the planned orders generated for the forecast demand?
Cheers!ATP will suggest a Schedule Ship Date / Schedule Arrival Date (based on scheduling setup in Order Management) considering the supply planned orders generated for the unconsumed forecast.
If all the planned ordres are already allocated to other newly scheduled sales orders (i.e. entered in the system after last plan run), then for the newest sales order which you are trying to schedule, ATP calculation will be done to check the earliest availability using the ATP Rule defined for your item in the Org where you want to schedule the sales order. If no ATP rule is assigned to the item, then default ATP rule from Org Parameters is used. When you accept the new suggested date for scheduling the sales order, the sales order starts appearing in the ATP plan (in pink color text) but no new planned order is created. New planned order creation will happen only when you run the data collection and plan again. Similarly, consumption of unconsumed forecast will also happen during this new plan run.
In the above scenario, if you have a multi level BOM for the sales order item with
- the child items ASCP planned and ATP enabled and
- resources in the routings of BOM items at different BOM levels CTP enabled
then ATP will explode thru' the supply chain bill, check availability of each child item and resources required for those and accordingly return an availability date.
Newest sales order will be scheduled out to a later date if
- the supplier capacity has already been taken up by the planned orders generated for the forecast demand and
- such planned orders are fully allocated for new sales orders scheduled after the last plan run but before your newest order -
Assigned Working Hours Display
Hi,
For evaluating Workforce Management, I am running transaction CM50 for specific Work Center and have followig data for this WORK CENTER -
Entries - Rem.cap.reqs - Avail.capacity - Rem.a - Rem. avail. capaci
Total --- --- 222,012 HR --- --- 824,0 HR --- --- --- --- --- --- --- --- 601,988 HR
25.03.2011 --- 7,048 HR --- --- 8,0 HR --- --- --- --- --- 88,1 --- --- 0,952 HR
26.03.2011 --- 3,524 HR --- --- 8,0 HR --- --- --- --- --- 44,1 --- --- 4,476 HR
27.03.2011 --- 3,524 HR --- --- 8,0 HR --- --- --- --- --- 44,1 --- --- 4,476 HR
28.03.2011 --- 3,524 HR --- --- 8,0 HR --- --- --- --- --- 44,1 --- --- 4,476 HR
29.03.2011 --- 3,524 HR --- --- 8,0 HR --- --- --- --- --- 44,1 --- --- 4,476 HR
Here 222,012 HR is the Rem.Cap.Requested hours.
From CMP3 Transaction, for a employee, I am booking 3 hours daily from 26.03.11 to 29.03.2011(total 12 hours). When I am again running CM50 Transaction, these 12 hours should also add in 222.012 Hours because it's already allocated and I must see - 234 Hours updated. But I am not able to see that. Am I running wrong transaction to review the updated data or am missing something else so that I will get updated Working Hours evaluation data, everytime I allocate hours to someone. Please let me know. Shall I see some other transaction?
Thanks and Regards,
Roshan Gupta
Edited by: Roshan Gupta on Mar 25, 2011 3:22 PMSolved by myself.
In this case, planned working hours was not changing the reports data that I illustrated above. Actual Working hour was affecting the data.
Thanks,
Roshan -
Hi All,
I've been using this formula to monitor the amount of hours between two dates that have elapsed excluding weekends:
DateDiff ("s", {campaign.date_approved}, {campaign.date_closed}) -
(DateDiff ("ww", {campaign.date_approved}, {campaign.date_closed}, crSaturday)2460*60) -
(DateDiff ("ww", {campaign.date_approved}, {campaign.date_closed}, crSunday)2460*60)
) /60/60;
But i've now been told that the hour calculations should only apply to working hours 9 to 5.
Does any one know how i would do this? I was thinking of something like subtracting 80 from the total (16 none workable hrs per day * 5 days) but not sure if this is correct?
Any ideas any1?
Many Thanks,
Dave.Good work by Jyoti, use the formula, set StDate and EndDate as your start and end dates, I would have given 50 points to Jyoti if I could.
DATETIMEVAR StDate:= currentdate;
DATETIMEVAR EndDate:= dateadd('D',8,currentdate);
NUMBERVAR Weeks;
NUMBERVAR Days;
NUMBERVAR Hours;
TIMEVAR SLA_Open := TIME(9,0,0);
TIMEVAR SLA_Close := TIME(17,0,0);
NumberVar WeekendTime ;
NUMBERVAR NonWorkTime ;
IF WeekDayName(DAYOFWEEK(StDate)) = "Saturday" THEN
StDate:= DATETIMEVALUE(DATE(DATEADD('D',2,StDate)) , SLA_Open);
IF WeekDayName(DAYOFWEEK(StDate)) = "Sunday" THEN
StDate:= DATETIMEVALUE(DATE(DATEADD('D',1,StDate)) , SLA_Open);
IF TIME(StDate) > SLA_Close THEN
StDate := DATETIMEVALUE(DATE(StDate) , SLA_Close);
IF TIME(StDate) < SLA_Open THEN
StDate := DATETIMEVALUE(DATE(StDate) , SLA_Open);
IF WeekDayName(DAYOFWEEK(endDate)) = "Saturday" THEN
endDate = DATETIMEVALUE(DATE(DATEADD('D',2,endDate)) , SLA_Open);
IF WeekDayName(DAYOFWEEK(endDate)) = "Sunday" THEN
endDate = DATETIMEVALUE(DATE(DATEADD('D',1,endDate)) , SLA_Open);
IF TIME(endDate) > SLA_Close THEN
endDate := DATETIMEVALUE(DATE(endDate) , SLA_Close);
IF TIME(endDate) < SLA_Open THEN
endDate := DATETIMEVALUE(DATE(endDate) , SLA_Open);
Weeks:= (Truncate (EndDate - dayofWeek(EndDate) + 1 - (StDate - dayofWeek(StDate) + 1)) /7 ) * 5;
Days := DayOfWeek(EndDate) - DayOfWeek(StDate) + (if DayOfWeek(StDate) = 1 then -1 else 0) +
(if DayOfWeek(EndDate) = 7 then -1 else 0);
// Non Worktime on Business days
NonWorkTime := DATEDIFF("N",DATETIMEVALUE(DATE('01-01-2001'), SLA_Close),DATETIMEVALUE(DATE('01-02-2001'),SLA_Open)) * (Weeks + Days);
//a weekend in minutes is Count of saturdays and sundays * 24 hours * 60 minutes
WeekendTime := (DateDiff("ww",stDate,Enddate, crSaturday ) +DateDiff("ww",stDate,Enddate, crSunday)) * 24 * 60;
Hours:=(DATEDIFF('N', stDATE, endDate)- NonWorkTime - WeekendTime)/60 ;
Hours
Thanks
-Azhar -
Dear All,
I want to calculate daily working hours but Half an hour flexi before start of planned time & shortfall hours calculation if a person didn't completed 9 hours job.
We have different types of DWS, PWS & WSR for different PS/PSA & EG/ESG groupings.
We have a requirement for Executives/Officers (E0-E8/ S1-S2) for only one PSA (1100) for only one DWS(GFLX). In this requirement I want to calculate daily working hours but Half an hour flexi before start of planned time & shortfall hours calculation if a person didn't completed 9 hours job.
Please see the requirement and my configured DWS and PCR's in detail with example and suggest me the solution:-
Overview
I want to calculate (Please take the reference from DWS screenshot)
daily working hours, but starting from first Begin Tolerance Time
Shortfall of hours if 9 hours not completed, but again starting from first Begin Tolerance Time, although employee has come before Begin Tolerance Time
I've configured one DWS as below,
Requirement:-
The planned shift timings is 9:30 - 18:30. Employees should work and complete 9 hrs in a day, but this 9 hours should be counted only from 9:00 (i.e. Begin tolerance time). It means. In time should not consider before 9:00.
1. Suppose 1st day employee punch In time is 9:00 then he has to work up to 18:00, then only 9 hours of working will be completed & no shortfall will be calculated.
In above case, if Out time is 17:00 then shortfall will be calculated 1.0 hours, because his working hours will be counted 8 hrs only.
2. Suppose 2nd day employee punch In time is 9:45 then he has to work up to 18:45, then only 9 hours of working will be completed & no shortfall will be calculated.
In above case, if Out time is 18:00 then shortfall will be calculated 0.75 hours, because his working hours will be counted 8.25 hrs only.
3. Suppose 3rd day employee punch In time is 8:30 then he has to work up to 18:00, then only 9 hours of working will be completed & no shortfall will be calculated. (In between 9:00 - 18:00 ). Here In time is 8:30 but system should consider and count from 9:00.
In above case, if Out time is 17:30 then shortfall will be calculated 0.5 hours, although he has worked 9 hrs.
4. Suppose 4th day employee punch In time is 10:11 then he will be marked as Late Come(as per DWS) and then he has to work up to 19:11, then only no shortfall will be calculated, because he completed 9 hours.
Now the below PCR is calculating Daily Working Hours,
Now the below PCR is calculating Late Coming Hours,
Overview
I know that use of begin tolerance time is different in from my requirement. Please guide me if this DWS configuration will not work.
As of now system is able to calculate Daily Working Hours (but not from the begin tolerance time), Late coming days and Late coming hours, but shortfall is not getting calculate properly.
Please give me the idea how to write PCR for these requirement, I know that my ZDHR PCR (Daily Working Hours) needs to change or replace to fulfill this requirements.
If you want any other details please let me know.
Best Regards,
DeepakHi Sankarsan,
After changing the function PTIP and I used GEN in PAR2, because in PAR3 error was coming.
After the changes PCR is processing as below for three different IN time :
1. when IN time is 8:45
and in this case, ZES table No Time type is showing which is wrong because he worked from 8:45 to 18:30 it means 9:30 hours (calculation should start from 9:00 am).
2. when IN time is 9:15
and in this case, ZES table Time type 9002 is showing 9.25 hours which is correct because he worked 9.25 hours.
3. when IN time is 10:30
and in this case, ZES table Time type 9003 is showing 9.00 hours which is wrong because he worked only 8 hours.
Pls suggest.
Best Regards,
Deepak
Maybe you are looking for
-
Internet signal booster? Is there one available?
Hi, I had to relocate my router to a different location to ensure a strong wireless Internet signal for the desktop computers. However, when I go outside, my signal is too weak for my macbook to connect. Can anyone recommend a signal booster I can ge
-
Mount fat32 on x86: already mounted or busy
hi. i suppose mounting fat32 on x86 is well-documented, but i'm having trouble, so i'd appreciate some help. im dual booting with solaris 10 and xp. my partitions are as follows: 1st physical drive [boot sector] 55 MB [c:] label XP (NTFS) solaris par
-
Didn't get the nokia music code at the time of pur...
please send me the code
-
IWeb content missing...
I spent a good hour chatting on the Apple chat support on this issue and it isn't resolved. The problem is simple. When I publish a website, no errors. Nothing shows an error message or problem in any way. However, when I check to see the is as it sh
-
?