cancel
Showing results for 
Search instead for 
Did you mean: 

function module for hiring date

Former Member
0 Kudos
3,596

Hi All,

What is the function module to find out the hiring date of an employee?

Please help.

Thanx in advance,

Amruta.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check this FM

HR_ECM_GET_HIRE_DATE

Former Member
0 Kudos

Hi Santosh,

I have tried this function module but when i execute it, it gives me dump...

Error in the ABAP Application Program

The current ABAP program "SAPLHRECM00MESSAGE" had to be terminated because it

has

come across a statement that unfortunately cannot be executed.

Please help me its urgent.

Thanx in advance,

Amruta.

Former Member
0 Kudos

Amruta,

In this FM u have to maintian the employee personnel number, if u execute without the emplyee pers. no. it'll show the dump only.

Or do u want to see the bulk data? if yes will chack and let u know

Edited by: Santhosh Kumar R on Dec 27, 2007 5:55 PM

Former Member
0 Kudos

hi santosh ,

My requirement is in Transaction PA30 when i create new records and save, some exit gets called EXIT_SAPFP50M_002.

now here i have to write a code which finds out the birth date of the employee and his hiring date.

i wil g8 the birth date from PA0002 , but for hiring date here i have to find it via some Function module.

As when i ll g8 hiring date then i wil find out the difference between both n if the diff is above 20 or 20 then is will be eligible to serve the company elseno.

So kindly help me with the same ....

Its very urgent.

Thanx in advance,

Amruta.

Former Member
0 Kudos

check this

RP_GET_HIRE_DATE

give the pernr and infotype as '0000'

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi. You can also pull the information from infotype 41 yourself. Our hire date is date type Z1. We use this code in reports:

  • Get Hire Date

rp-provide-from-last p0041 space p_rdate p_rdate.

SEARCH p0041 FOR 'Z1'.

IF sy-subrc = 0.

ADD 2 TO sy-fdpos.

w_hire_date= p0041+sy-fdpos(8).

ENDIF.

If you are not using the PNP logical database in your program, you could replace the rp-provide statement with a function module call to read the infotype. I hope this helps.

- April King

Former Member
0 Kudos

Dear Amruta

you can find begda from IT-0000 for that employee.

you can check massn (action) for hiring. i.e find begda from IT-0000 where pernr = <employee no> and massn = <hiring action code>.

reward points if helpful