SAP Function RP_CHECK_PERNR - Check Personnel Number against HR Master Record

Parameter Reference Type Length Default Optional Text
BEG BAS_CHECK_PERNR-BEGDA D 8 Date
PNR BAS_CHECK_PERNR-PERNR N 8 Personnel number

Parameter Reference Type Length Text
BUKRS BAS_CHECK_PERNR-BUKRS C 4 Company code
KOSTL BAS_CHECK_PERNR-KOSTL C 10 Cost center
MOLGA BAS_CHECK_PERNR-MOLGA C 2 Country grouping
NAME BAS_CHECK_PERNR-NAME C 40 Employee name
PERSA BAS_CHECK_PERNR-PERSA C 4 Personnel area
PERSONNEL_SUBAREA ESS_EMP-PERSSUBAREA C 4 Personnel subarea

Exception Text
DATA_FAULT Data inconsistency
DATE_MISSING Date missing
EXIT_FAULT Invalid return code for user exit
PERNR_MISSING Personnel no. missing
PERSON_NOT_ACTIVE Employee is inactive
PERSON_UNKNOWN Personnel number is unknown


Function module RP_CHECK_PERNR checks personnel numbers to determine ifthey exist in Personnel Administration (HR) and are active.
Import parameters:
  • Personnel number

  • Date

  • Export parameters:
    • Employee name

    • Personnel area

    • Personnel subarea

    • Company code

    • Cost center

    • Country grouping

    • Exceptions:
      • DATA_FAULT

      • PERSON_NOT

      • _ACTIVE
        • PERSON_UNKNOWN

        • EXIT_FAULT

        • PERNR_MISSING

        • DATE_MISSING

        • This function module does not indicate which authorizations are validfor entering personnel data in HR.
          The personnel number can only be checked if the following employee datais available in HR:
          • Actions (infotype 0000)

          • Organizational Assignment (infotype 0001)

          • If the employee is not active at the specified time, the exceptionPERSON_NOT_ACTIVE is triggered. In this case, the export parameters arefilled. For the other exceptions, they are not filled.
            You can perform a different personnel number check using the functionexit EXIT_SAPLRPIN_001 in enhancementHRPBAS01. You can deactivate the default check byincluding the enhancement in a project and activating the project. Ifyou want to create your own check, refer to the sample program in thefunction exit documentation.
            You can deactivate the personnel number checkagainst HR master data in each client.

            Description
            The company code to which the employee is assigned.
            The name is transferred to a 40-character field.
            The name format corresponds to that generally defined for the personnelarea/subarea. National features are taken into account.
            The personnel area to which the employee is assigned.
            Date for which the personnel number is checked.
            The personnel number is checked against the database PREL. It cannot bechecked against other tables.