SAP SWLWP_TASK_SRVID_READ Function Module for
SWLWP_TASK_SRVID_READ is a standard swlwp task srvid read 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 swlwp task srvid read FM, simply by entering the name SWLWP_TASK_SRVID_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWLWP_CENTRAL_CUST
Program Name: SAPLSWLWP_CENTRAL_CUST
Main Program: SAPLSWLWP_CENTRAL_CUST
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SWLWP_TASK_SRVID_READ 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 'SWLWP_TASK_SRVID_READ'".
EXPORTING
* IM_SRV_DIR = "Service Directory
* IM_TASK_ID = "Task ID
* IM_LOGSYS = "Logical System
* IM_SELECT_FOR_LOGSYS = ' ' "General Flag
* IM_USER = SY-UNAME "SAP System, User Logon Name
* IM_LANGU = SY-LANGU "SAP R/3 System, Current Language
IMPORTING
E_SRV_ID = "Service ID
E_INTFID = "Interface Definition ID
E_IMPLID = "ID of an Implementation Definition
E_PORTID = "Service Port ID
E_LOGSYS = "Logical System
E_RETCODE = "Error Code
E_MESSAGE = "Language-Specific Message
TABLES
* ET_TASK_SRV = "Workplace: Assignment of Tasks to External Services
IMPORTING Parameters details for SWLWP_TASK_SRVID_READ
IM_SRV_DIR - Service Directory
Data type: SWLSRVDCOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_TASK_ID - Task ID
Data type: SWW_TASKOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_LOGSYS - Logical System
Data type: LOGSYSOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_SELECT_FOR_LOGSYS - General Flag
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_USER - SAP System, User Logon Name
Data type: SY-UNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_LANGU - SAP R/3 System, Current Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SWLWP_TASK_SRVID_READ
E_SRV_ID - Service ID
Data type: SWLSRVIDOptional: No
Call by Reference: No ( called with pass by value option)
E_INTFID - Interface Definition ID
Data type: SWFINTFIDOptional: No
Call by Reference: No ( called with pass by value option)
E_IMPLID - ID of an Implementation Definition
Data type: SWFIMPLIDOptional: No
Call by Reference: No ( called with pass by value option)
E_PORTID - Service Port ID
Data type: SWFPORTIDOptional: No
Call by Reference: No ( called with pass by value option)
E_LOGSYS - Logical System
Data type: LOGSYSOptional: No
Call by Reference: No ( called with pass by value option)
E_RETCODE - Error Code
Data type: SWLWPMSGS-CODEOptional: No
Call by Reference: No ( called with pass by value option)
E_MESSAGE - Language-Specific Message
Data type: SWLWPMSGS-TEXTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SWLWP_TASK_SRVID_READ
ET_TASK_SRV - Workplace: Assignment of Tasks to External Services
Data type: SWLWPTSSIDOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for SWLWP_TASK_SRVID_READ 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_e_srv_id | TYPE SWLSRVID, " | |||
| lv_im_srv_dir | TYPE SWLSRVDC, " | |||
| lt_et_task_srv | TYPE STANDARD TABLE OF SWLWPTSSID, " | |||
| lv_e_intfid | TYPE SWFINTFID, " | |||
| lv_im_task_id | TYPE SWW_TASK, " | |||
| lv_e_implid | TYPE SWFIMPLID, " | |||
| lv_im_logsys | TYPE LOGSYS, " | |||
| lv_e_portid | TYPE SWFPORTID, " | |||
| lv_im_select_for_logsys | TYPE FLAG, " SPACE | |||
| lv_im_user | TYPE SY-UNAME, " SY-UNAME | |||
| lv_e_logsys | TYPE LOGSYS, " | |||
| lv_im_langu | TYPE SY-LANGU, " SY-LANGU | |||
| lv_e_retcode | TYPE SWLWPMSGS-CODE, " | |||
| lv_e_message | TYPE SWLWPMSGS-TEXT. " |
|   CALL FUNCTION 'SWLWP_TASK_SRVID_READ' " |
| EXPORTING | ||
| IM_SRV_DIR | = lv_im_srv_dir | |
| IM_TASK_ID | = lv_im_task_id | |
| IM_LOGSYS | = lv_im_logsys | |
| IM_SELECT_FOR_LOGSYS | = lv_im_select_for_logsys | |
| IM_USER | = lv_im_user | |
| IM_LANGU | = lv_im_langu | |
| IMPORTING | ||
| E_SRV_ID | = lv_e_srv_id | |
| E_INTFID | = lv_e_intfid | |
| E_IMPLID | = lv_e_implid | |
| E_PORTID | = lv_e_portid | |
| E_LOGSYS | = lv_e_logsys | |
| E_RETCODE | = lv_e_retcode | |
| E_MESSAGE | = lv_e_message | |
| TABLES | ||
| ET_TASK_SRV | = lt_et_task_srv | |
| . " SWLWP_TASK_SRVID_READ | ||
ABAP code using 7.40 inline data declarations to call FM SWLWP_TASK_SRVID_READ
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.| DATA(ld_im_select_for_logsys) | = ' '. | |||
| "SELECT single UNAME FROM SY INTO @DATA(ld_im_user). | ||||
| DATA(ld_im_user) | = SY-UNAME. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_im_langu). | ||||
| DATA(ld_im_langu) | = SY-LANGU. | |||
| "SELECT single CODE FROM SWLWPMSGS INTO @DATA(ld_e_retcode). | ||||
| "SELECT single TEXT FROM SWLWPMSGS INTO @DATA(ld_e_message). | ||||
Search for further information about these or an SAP related objects