SAP STW_RFC_GET_MTH_RESULT Function Module for Trigger exectuion of a clb-method
STW_RFC_GET_MTH_RESULT is a standard stw rfc get mth result SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Trigger exectuion of a clb-method processing and below is the pattern details for this FM, 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 stw rfc get mth result FM, simply by entering the name STW_RFC_GET_MTH_RESULT into the relevant SAP transaction such as SE37 or SE38.
Function Group: STW_RFC
Program Name: SAPLSTW_RFC
Main Program: SAPLSTW_RFC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function STW_RFC_GET_MTH_RESULT 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 'STW_RFC_GET_MTH_RESULT'"Trigger exectuion of a clb-method.
EXPORTING
IV_USER_EMAIL_ADDRESS = "
IS_CONNECTION_DATA = "
IS_APPL_KEY = "Collaboration Platform: Key Elements
IMPORTING
EV_RESULT = "
EV_RESULT_CODE = "
EXCEPTIONS
RFC_SYNCHRONIZE = 1
IMPORTING Parameters details for STW_RFC_GET_MTH_RESULT
IV_USER_EMAIL_ADDRESS -
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
IS_CONNECTION_DATA -
Data type: CLB_S_METHOD_CONNECTION_DATAOptional: No
Call by Reference: No ( called with pass by value option)
IS_APPL_KEY - Collaboration Platform: Key Elements
Data type: CLB_S_APPL_KEYOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for STW_RFC_GET_MTH_RESULT
EV_RESULT -
Data type: XSTRINGOptional: No
Call by Reference: No ( called with pass by value option)
EV_RESULT_CODE -
Data type: NUM4Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
RFC_SYNCHRONIZE - Error synchronizing call in RFC
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for STW_RFC_GET_MTH_RESULT 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_result | TYPE XSTRING, " | |||
| lv_rfc_synchronize | TYPE XSTRING, " | |||
| lv_iv_user_email_address | TYPE STRING, " | |||
| lv_ev_result_code | TYPE NUM4, " | |||
| lv_is_connection_data | TYPE CLB_S_METHOD_CONNECTION_DATA, " | |||
| lv_is_appl_key | TYPE CLB_S_APPL_KEY. " |
|   CALL FUNCTION 'STW_RFC_GET_MTH_RESULT' "Trigger exectuion of a clb-method |
| EXPORTING | ||
| IV_USER_EMAIL_ADDRESS | = lv_iv_user_email_address | |
| IS_CONNECTION_DATA | = lv_is_connection_data | |
| IS_APPL_KEY | = lv_is_appl_key | |
| IMPORTING | ||
| EV_RESULT | = lv_ev_result | |
| EV_RESULT_CODE | = lv_ev_result_code | |
| EXCEPTIONS | ||
| RFC_SYNCHRONIZE = 1 | ||
| . " STW_RFC_GET_MTH_RESULT | ||
ABAP code using 7.40 inline data declarations to call FM STW_RFC_GET_MTH_RESULT
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