‎2008 Jul 10 3:32 PM
Hi Experts,
Please give me a infotype field for "Length of Service".
I need to calculate the Length of Service for an Employee.
Regards,
Srik
‎2008 Jul 10 5:50 PM
hi Sri,
you read hire date from Infotype IT0041 - and you calcualte lenght using sytem date - hire date.
however you need to take care of actions on IT0000 - coz there is a chance that employee has been rehired in between...I mean hired initially for 2 years then leaves the company - after 2 years he is rehired...so IT000 will have that info or look for standard FM...
search in HCM fourm. There will be plenty of suggestions...
thanks
Edited by: mkr on Jul 10, 2008 6:51 PM
‎2008 Jul 10 5:50 PM
hi Sri,
you read hire date from Infotype IT0041 - and you calcualte lenght using sytem date - hire date.
however you need to take care of actions on IT0000 - coz there is a chance that employee has been rehired in between...I mean hired initially for 2 years then leaves the company - after 2 years he is rehired...so IT000 will have that info or look for standard FM...
search in HCM fourm. There will be plenty of suggestions...
thanks
Edited by: mkr on Jul 10, 2008 6:51 PM
‎2008 Jul 10 5:54 PM
Hi Srik,
You can use the function module RP_GET_HIRE_DATE to get the employee hiring date.
Also try this:
You have to use IT0000 for getting this information as employee status is stored on it.
You can use a method COMPUTE_ACTIVE_PERIODS in the class CL_HRPA_INFTY_NNNN to do this.
Hope this helps you
Regards,
Chandra Sekhar
‎2008 Aug 05 3:27 PM