SAP SWF_UTL_INVOKE_CLIF_METHOD Function Module for
SWF_UTL_INVOKE_CLIF_METHOD is a standard swf utl invoke clif method 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 swf utl invoke clif method FM, simply by entering the name SWF_UTL_INVOKE_CLIF_METHOD into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWF_UTL_EXECUTION
Program Name: SAPLSWF_UTL_EXECUTION
Main Program: SAPLSWF_UTL_EXECUTION
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SWF_UTL_INVOKE_CLIF_METHOD 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 'SWF_UTL_INVOKE_CLIF_METHOD'".
EXPORTING
IM_REQUESTER = "
IM_POR = "
IM_METHOD = "
IMPORTING
EX_POR = "
EX_RETURN = "
EX_MODEID = "
EX_EXCEPTION = "
CHANGING
CH_CONTAINER = "
EXCEPTIONS
CX_SWF_UTL_OBJ_CREATE_FAILED = 1 CX_SWF_UTL_OBJ_EXEC_FAILED = 2 CX_SWF_UTL_OBJ_INVALID_METH = 3
IMPORTING Parameters details for SWF_UTL_INVOKE_CLIF_METHOD
IM_REQUESTER -
Data type: SIBFLPORBOptional: No
Call by Reference: Yes
IM_POR -
Data type: SIBFLPORBOptional: No
Call by Reference: Yes
IM_METHOD -
Data type: SWF_CLSMTHOptional: No
Call by Reference: Yes
EXPORTING Parameters details for SWF_UTL_INVOKE_CLIF_METHOD
EX_POR -
Data type: SIBFLPORBOptional: No
Call by Reference: Yes
EX_RETURN -
Data type: SWF_RETURNOptional: No
Call by Reference: Yes
EX_MODEID -
Data type: SYINDEXOptional: No
Call by Reference: Yes
EX_EXCEPTION -
Data type: CX_BO_APPLICATIONOptional: No
Call by Reference: Yes
CHANGING Parameters details for SWF_UTL_INVOKE_CLIF_METHOD
CH_CONTAINER -
Data type: IF_SWF_CNT_CONTAINEROptional: No
Call by Reference: Yes
EXCEPTIONS details
CX_SWF_UTL_OBJ_CREATE_FAILED -
Data type:Optional: No
Call by Reference: Yes
CX_SWF_UTL_OBJ_EXEC_FAILED -
Data type:Optional: No
Call by Reference: Yes
CX_SWF_UTL_OBJ_INVALID_METH -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SWF_UTL_INVOKE_CLIF_METHOD 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_ex_por | TYPE SIBFLPORB, " | |||
| lv_ch_container | TYPE IF_SWF_CNT_CONTAINER, " | |||
| lv_im_requester | TYPE SIBFLPORB, " | |||
| lv_cx_swf_utl_obj_create_failed | TYPE SIBFLPORB, " | |||
| lv_im_por | TYPE SIBFLPORB, " | |||
| lv_ex_return | TYPE SWF_RETURN, " | |||
| lv_cx_swf_utl_obj_exec_failed | TYPE SWF_RETURN, " | |||
| lv_ex_modeid | TYPE SYINDEX, " | |||
| lv_im_method | TYPE SWF_CLSMTH, " | |||
| lv_cx_swf_utl_obj_invalid_meth | TYPE SWF_CLSMTH, " | |||
| lv_ex_exception | TYPE CX_BO_APPLICATION. " |
|   CALL FUNCTION 'SWF_UTL_INVOKE_CLIF_METHOD' " |
| EXPORTING | ||
| IM_REQUESTER | = lv_im_requester | |
| IM_POR | = lv_im_por | |
| IM_METHOD | = lv_im_method | |
| IMPORTING | ||
| EX_POR | = lv_ex_por | |
| EX_RETURN | = lv_ex_return | |
| EX_MODEID | = lv_ex_modeid | |
| EX_EXCEPTION | = lv_ex_exception | |
| CHANGING | ||
| CH_CONTAINER | = lv_ch_container | |
| EXCEPTIONS | ||
| CX_SWF_UTL_OBJ_CREATE_FAILED = 1 | ||
| CX_SWF_UTL_OBJ_EXEC_FAILED = 2 | ||
| CX_SWF_UTL_OBJ_INVALID_METH = 3 | ||
| . " SWF_UTL_INVOKE_CLIF_METHOD | ||
ABAP code using 7.40 inline data declarations to call FM SWF_UTL_INVOKE_CLIF_METHOD
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.Search for further information about these or an SAP related objects