2014 Apr 15 3:59 PM
Hello Gurus,
I need to know what is the sintax to get a particular person from PNP using
rp-provide-from-last p0002 space pn-begda pn-endda.
Thanks
2014 Apr 15 4:02 PM
Or even better, someone knows a FM that can tell me if an employee is Active?
2014 Apr 15 4:02 PM
Or even better, someone knows a FM that can tell me if an employee is Active?
2014 Apr 15 4:04 PM
2014 Apr 15 6:37 PM
Hi
Maybe You can try use the report S_PH0_48000510 with employment status '3 Active'.
I dont remember how use this report but you could try.
2014 May 08 6:17 PM
Hello Enrique,
Check this code, if the sy-subrc as equal 2, employee is inactive:
*&--------------------------------------------------------------------*
*& Form check_pernr_exists
*&--------------------------------------------------------------------*
* Check if employee exists
*---------------------------------------------------------------------*
* -->P_PERNR Personnel Number
* <--P_SUBRC Return code
*---------------------------------------------------------------------*
FORM check_pernr_exists USING p_pernr TYPE any
CHANGING p_subrc TYPE sysubrc.
CLEAR p_subrc.
CALL FUNCTION 'RP_CHECK_PERNR'
EXPORTING
beg = sy-datum
pnr = p_pernr
* IMPORTING
* NAME =
* PERSA =
* BUKRS =
* KOSTL =
* MOLGA =
* PERSONNEL_SUBAREA =
EXCEPTIONS
data_fault = 1
person_not_active = 2
person_unknown = 3
exit_fault = 4
pernr_missing = 5
date_missing = 6
OTHERS = 7
.
IF sy-subrc <> 0.
p_subrc = sy-subrc.
ENDIF.
ENDFORM. "check_pernr_exists
2014 May 08 7:37 PM