ABAP – Termination date or Leave date of an employee

For getting the the termination date or leaving  date of an employee we can use the following Function Module  HR_LEAVING_DATE

 

CALL FUNCTION ‘HR_LEAVING_DATE’
EXPORTING
persnr      = p_pernr
begda       = ‘19980101’
endda       = ‘99991231’
IMPORTING
leavingdate = l_date
exceptions
leaving_date_not_found       = 1
pernr_not_assigned           = 2
others                       = 3.

 

Pass the pernr for which you want the leaving date in to the variable p_pernr and after executing the function module, you will get the leaving date in the variable l_date.

0 Comments

Leave A Reply