SAP P_EMPLOYEE_LIST Function Module for
P_EMPLOYEE_LIST is a standard p employee list SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for p employee list FM, simply by entering the name P_EMPLOYEE_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: VAP2
Program Name: SAPLVAP2
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function P_EMPLOYEE_LIST pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'P_EMPLOYEE_LIST'".
EXPORTING
PERNR = "
FIRST_NAME = "
LAST_NAME = "
MAIDEN_NAME = "
LICENSE_PLATE = "
INHOUSE_TELNO1 = "
INHOUSE_TELNO2 = "
BUILDING = "
ROOM = "
TABLES
EMPLOY = "
EXCEPTIONS
NO_EMPLOYEE_FOUND = 1
IMPORTING Parameters details for P_EMPLOYEE_LIST
PERNR -
Data type: P0002-PERNROptional: No
Call by Reference: No ( called with pass by value option)
FIRST_NAME -
Data type: P0002-VORNAOptional: No
Call by Reference: No ( called with pass by value option)
LAST_NAME -
Data type: P0002-NACHNOptional: No
Call by Reference: No ( called with pass by value option)
MAIDEN_NAME -
Data type: P0002-NAME2Optional: No
Call by Reference: No ( called with pass by value option)
LICENSE_PLATE -
Data type: P0032-KFZKZOptional: No
Call by Reference: No ( called with pass by value option)
INHOUSE_TELNO1 -
Data type: P0032-TEL01Optional: No
Call by Reference: No ( called with pass by value option)
INHOUSE_TELNO2 -
Data type: P0032-TEL02Optional: No
Call by Reference: No ( called with pass by value option)
BUILDING -
Data type: P0032-GEBNROptional: No
Call by Reference: No ( called with pass by value option)
ROOM -
Data type: P0032-ZIMNROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for P_EMPLOYEE_LIST
EMPLOY -
Data type: PEMPLOYEEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_EMPLOYEE_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for P_EMPLOYEE_LIST Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_pernr | TYPE P0002-PERNR, " | |||
| lt_employ | TYPE STANDARD TABLE OF PEMPLOYEE, " | |||
| lv_no_employee_found | TYPE PEMPLOYEE, " | |||
| lv_first_name | TYPE P0002-VORNA, " | |||
| lv_last_name | TYPE P0002-NACHN, " | |||
| lv_maiden_name | TYPE P0002-NAME2, " | |||
| lv_license_plate | TYPE P0032-KFZKZ, " | |||
| lv_inhouse_telno1 | TYPE P0032-TEL01, " | |||
| lv_inhouse_telno2 | TYPE P0032-TEL02, " | |||
| lv_building | TYPE P0032-GEBNR, " | |||
| lv_room | TYPE P0032-ZIMNR. " |
|   CALL FUNCTION 'P_EMPLOYEE_LIST' " |
| EXPORTING | ||
| PERNR | = lv_pernr | |
| FIRST_NAME | = lv_first_name | |
| LAST_NAME | = lv_last_name | |
| MAIDEN_NAME | = lv_maiden_name | |
| LICENSE_PLATE | = lv_license_plate | |
| INHOUSE_TELNO1 | = lv_inhouse_telno1 | |
| INHOUSE_TELNO2 | = lv_inhouse_telno2 | |
| BUILDING | = lv_building | |
| ROOM | = lv_room | |
| TABLES | ||
| EMPLOY | = lt_employ | |
| EXCEPTIONS | ||
| NO_EMPLOYEE_FOUND = 1 | ||
| . " P_EMPLOYEE_LIST | ||
ABAP code using 7.40 inline data declarations to call FM P_EMPLOYEE_LIST
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single PERNR FROM P0002 INTO @DATA(ld_pernr). | ||||
| "SELECT single VORNA FROM P0002 INTO @DATA(ld_first_name). | ||||
| "SELECT single NACHN FROM P0002 INTO @DATA(ld_last_name). | ||||
| "SELECT single NAME2 FROM P0002 INTO @DATA(ld_maiden_name). | ||||
| "SELECT single KFZKZ FROM P0032 INTO @DATA(ld_license_plate). | ||||
| "SELECT single TEL01 FROM P0032 INTO @DATA(ld_inhouse_telno1). | ||||
| "SELECT single TEL02 FROM P0032 INTO @DATA(ld_inhouse_telno2). | ||||
| "SELECT single GEBNR FROM P0032 INTO @DATA(ld_building). | ||||
| "SELECT single ZIMNR FROM P0032 INTO @DATA(ld_room). | ||||
Search for further information about these or an SAP related objects