2007 Dec 08 1:55 PM
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
2007 Dec 08 2:10 PM
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.
2007 Dec 08 2:16 PM
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
2007 Dec 08 5:02 PM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |