Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Infotype Field

Former Member
0 Likes
558

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
524

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

3 REPLIES 3
Read only

Former Member
0 Likes
525

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

Read only

Former Member
0 Likes
524

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

Read only

Former Member
0 Likes
524

thank u