HCM BAPI RFC Used the same way in S/4HANA

BAPI_EMPLOYEE_GETDATA Find Employees by Search Criteria

Finds personnel numbers by search strings such as name, organizational unit, position, cost center or user ID and returns organizational, personal and communication data for them. It is used in portals, phone directories and interfaces. Set AUTHORITY_CHECK so the standard HR authorization check applies.

Function group
RH65
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
EMPLOYEE_IDBAPIEMPLB-PERNOPersonnel number—
LASTNAME_MBAPIEMPLB-LASTNAME_MSearch string for last name—
FSTNAME_MBAPIEMPLB-FSTNAME_MSearch string for first name—
ORGTXTBAPIEMPLB-ORGTXTSearch string for organizational unit—
JOBTXTBAPIEMPLB-JOBTXTSearch string for job—
POSTXTBAPIEMPLB-POSTXTSearch string for position—
COSTCENTERBAPIEMPLB-COSTCENTERSearch string for cost center—
USERIDBAPIEMPLB-USERIDSearch string for communication ID—
DATEBAPIEMPLB-DATESearch date—
READDBBAPIEMPLB-READDBRe-read the database—
AUTHORITY_CHECKCHAR1Authorization check—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURNReturn message

Tables parameters

ParameterTypeDescriptionRequired
ORG_ASSIGNMENTBAPIP0001BResult list: organizational assignment—
PERSONAL_DATABAPIP0002BResult list: personal data—
INTERNAL_CONTROLBAPIP0032BResult list: internal control—
COMMUNICATIONBAPIP0105BResult list: communication—
ARCHIVELINKBAPITOAV0Result list: optical archive—

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BAPI_EMPLOYEE_GETDATA'
  IMPORTING
    return = lv_return
  TABLES
    org_assignment = lt_org_assignment
    personal_data = lt_personal_data
    internal_control = lt_internal_control
    communication = lt_communication
    archivelink = lt_archivelink.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report