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

abap-hr

Former Member
0 Likes
529

hi

where we can get intial position and current position of an employer in the company and years of experiencein the company

and what are the infotypes we should use to find out this above fields

hi

where we can get intial position and current position of an employer in the company and years of experiencein the company

and what are the infotypes we should use to find out this above fields

3 REPLIES 3
Read only

Former Member
0 Likes
513

Sachin,

Position information can be found in infotype 0001 field plans. The earliest record based on begda and endda would be the first position, the most current again would be the lastest record based on endda and begda.

Infotype 0041 often contains dates that can be used for calculations. I would recommend checking with what dates are being used in your system and if any of those could be used to calculate the years of experience. Sometimes you might need to take into account the fact that an employee left and returned to the same company. You might need to use infotype 0000 as well and sum up the length of time an employee has an active record. P0000-STAT2 should indicate the whether an employee is active or not.

Best Regards,

Chris H.

Read only

0 Likes
513

hi chirs

thanks for the reply

and the data give is so helpful to get an idea i am trying in the same way but for the reference any sample code regarding this will you provide me

Read only

0 Likes
513

Hi Sachin,

assuming we are using logical database pernr.

infotypes: 0000, 0001.

initialization.

start-of-selection.

get pernr.

  • get current position

rp_provide_from_last p0001 space sy-datum sy-datum.

if pnp-sw-found eq 1.

  • p0001-plans will hold thier current position

endif.

  • get first ever position

rp_provide_from_last p0001 space '18000101' '99991231'.

if pnp-sw-found eq 1.

  • p0001-plans will hold thier first ever position

endif.

end-of-selection.

thanks.

Jamie