ABAP – Getting the Entry date or hiring date of an employee

In ABAP for getting the hired date or entry date of an employee we can use the below function module HR_ENTRY_DATE.

 

CALL FUNCTION ‘HR_ENTRY_DATE
EXPORTING
PERSNR               = pernr-pernr
IMPORTING
ENTRYDATE            = l_hire_date
EXCEPTIONS
ENTRY_DATE_NOT_FOUND = 1
PERNR_NOT_ASSIGNED   = 2
OTHERS               = 3.

 

IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

After passing the PERNR and executing the function module,we will get the hire_date in the variable l_hire_date.

 

0 Comments

Leave A Reply