Application Development 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: 

How to get hire day of an employee using FM RP_GET_HIRE_DATE

Former Member
0 Kudos
1,922

hi all,

am not able to get the hire date of the employee using the below mentioned FM. can any one ensure that what am doing is correct. am passing pernr and action infotype.

CALL FUNCTION 'RP_GET_HIRE_DATE'

EXPORTING

PERSNR = i_out-pernr

CHECK_INFOTYPES = '0000'

  • DATUMSART = '01'

  • STATUS2 = '3'

  • P0016_OPTIONEN = ' '

  • IMPORTING

HIREDATE = i_out-hidat

.

Thanks

Senthil bala

4 REPLIES 4

jayanthi_jayaraman
Active Contributor
0 Kudos
332

Hi ,

This is the example taken from this forum.

*Get the joining date of the employees

CALL FUNCTION 'RP_GET_HIRE_DATE'

EXPORTING

persnr = it_overseas-empno

check_infotypes = '0000'

IMPORTING

hiredate = it_overseas-doj.

If you search the forum by giving the name of the function module in Forum search , you will get one more HR related qn. other than yours.

In that, they are using this fn. module .

Regards,

J.Jayanthi

0 Kudos
332

The problem you have is that the hire date is not stored in infotype 0000, but in infotype 0041 (Date specifications) If you call the function module they same way you are doing it and instead of passing check_infotypes = 0000 use check_infotypes = 0041, it should work.

Let me know if this helps.

E.G.

sergey_korolev
Active Contributor
0 Kudos
332

Why cannot be used the function module HRENTRYDATE? (Sorry, for generic name, don't remember the exact name).

0 Kudos
332

it will be 'HR_ENTRY_DATE'