SAP PTRM_WEB_CE_GET_EMPLOYEE_INFO Function Module for
PTRM_WEB_CE_GET_EMPLOYEE_INFO is a standard ptrm web ce get employee info 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 ptrm web ce get employee info FM, simply by entering the name PTRM_WEB_CE_GET_EMPLOYEE_INFO into the relevant SAP transaction such as SE37 or SE38.
Function Group: PTRM_WEB_EMPLOYEE_SERVICES
Program Name: SAPLPTRM_WEB_EMPLOYEE_SERVICES
Main Program: SAPLPTRM_WEB_EMPLOYEE_SERVICES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function PTRM_WEB_CE_GET_EMPLOYEE_INFO 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 'PTRM_WEB_CE_GET_EMPLOYEE_INFO'".
EXPORTING
IV_PERSONNEL_NUMBER = "Personnel Number
IMPORTING
EV_LASTNAME = "Last Name
EV_FIRSTNAME = "First Name
EV_SORTED_NAME = "Employee's Name (Sortable by LAST NAME FIRST NAME)
EV_FULLNAME = "Formatted Name of Employee or Applicant
EV_EMAIL_ADDRESS = "Communication: Long Identification/Number
EV_USERNAME = "User Name
EV_ASSIGNMENT_TEXT = "
EV_IS_CE_ASSIGNMENT = "Data Element for Domain BOOLE: TRUE (='X') and FALSE (=' ')
EXCEPTIONS
ERROR_READING_INFOTYPE = 1 PERSNO_NOT_EXIST = 2
IMPORTING Parameters details for PTRM_WEB_CE_GET_EMPLOYEE_INFO
IV_PERSONNEL_NUMBER - Personnel Number
Data type: PERNR_DOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PTRM_WEB_CE_GET_EMPLOYEE_INFO
EV_LASTNAME - Last Name
Data type: PAD_NACHNOptional: No
Call by Reference: No ( called with pass by value option)
EV_FIRSTNAME - First Name
Data type: PAD_VORNAOptional: No
Call by Reference: No ( called with pass by value option)
EV_SORTED_NAME - Employee's Name (Sortable by LAST NAME FIRST NAME)
Data type: SMNAMOptional: No
Call by Reference: No ( called with pass by value option)
EV_FULLNAME - Formatted Name of Employee or Applicant
Data type: EMNAMOptional: No
Call by Reference: No ( called with pass by value option)
EV_EMAIL_ADDRESS - Communication: Long Identification/Number
Data type: COMM_ID_LONGOptional: No
Call by Reference: No ( called with pass by value option)
EV_USERNAME - User Name
Data type: SY-UNAMEOptional: No
Call by Reference: No ( called with pass by value option)
EV_ASSIGNMENT_TEXT -
Data type: PADCE_PRTXTOptional: No
Call by Reference: No ( called with pass by value option)
EV_IS_CE_ASSIGNMENT - Data Element for Domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_READING_INFOTYPE -
Data type:Optional: No
Call by Reference: Yes
PERSNO_NOT_EXIST - Personnel number does not exist
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PTRM_WEB_CE_GET_EMPLOYEE_INFO 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_ev_lastname | TYPE PAD_NACHN, " | |||
| lv_iv_personnel_number | TYPE PERNR_D, " | |||
| lv_error_reading_infotype | TYPE PERNR_D, " | |||
| lv_ev_firstname | TYPE PAD_VORNA, " | |||
| lv_persno_not_exist | TYPE PAD_VORNA, " | |||
| lv_ev_sorted_name | TYPE SMNAM, " | |||
| lv_ev_fullname | TYPE EMNAM, " | |||
| lv_ev_email_address | TYPE COMM_ID_LONG, " | |||
| lv_ev_username | TYPE SY-UNAME, " | |||
| lv_ev_assignment_text | TYPE PADCE_PRTXT, " | |||
| lv_ev_is_ce_assignment | TYPE BOOLE_D. " |
|   CALL FUNCTION 'PTRM_WEB_CE_GET_EMPLOYEE_INFO' " |
| EXPORTING | ||
| IV_PERSONNEL_NUMBER | = lv_iv_personnel_number | |
| IMPORTING | ||
| EV_LASTNAME | = lv_ev_lastname | |
| EV_FIRSTNAME | = lv_ev_firstname | |
| EV_SORTED_NAME | = lv_ev_sorted_name | |
| EV_FULLNAME | = lv_ev_fullname | |
| EV_EMAIL_ADDRESS | = lv_ev_email_address | |
| EV_USERNAME | = lv_ev_username | |
| EV_ASSIGNMENT_TEXT | = lv_ev_assignment_text | |
| EV_IS_CE_ASSIGNMENT | = lv_ev_is_ce_assignment | |
| EXCEPTIONS | ||
| ERROR_READING_INFOTYPE = 1 | ||
| PERSNO_NOT_EXIST = 2 | ||
| . " PTRM_WEB_CE_GET_EMPLOYEE_INFO | ||
ABAP code using 7.40 inline data declarations to call FM PTRM_WEB_CE_GET_EMPLOYEE_INFO
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 UNAME FROM SY INTO @DATA(ld_ev_username). | ||||
Search for further information about these or an SAP related objects