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

Function RKD_METHOD_PROTOCOL 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 'RKD_METHOD_PROTOCOL'".
EXPORTING
* ACCEPT_NOT_INIT = ' ' "
* CLOSE_FILE = 'X' "
* CONDENSE = 'X' "
* MASTER_LANGU = 'D' "Alternative language
* OPEN_FILE = 'X' "
TABLES
XMSG = "Messages Table
EXCEPTIONS
FILE_NOT_FOUND = 1 PROT_NOT_INITIALIZED = 2 TABLE_EMPTY = 3 WRONG_CALL = 4
IMPORTING Parameters details for RKD_METHOD_PROTOCOL
ACCEPT_NOT_INIT -
Data type: SPROT_I-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLOSE_FILE -
Data type: SPROT_I-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONDENSE -
Data type: SPROT_I-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MASTER_LANGU - Alternative language
Data type: T100-SPRSLDefault: 'D'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPEN_FILE -
Data type: SPROT_I-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RKD_METHOD_PROTOCOL
XMSG - Messages Table
Data type: SPROT_UOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FILE_NOT_FOUND - Access to file not possible
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROT_NOT_INITIALIZED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_EMPTY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_CALL - Invalid Call
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RKD_METHOD_PROTOCOL 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: | ||||
| lt_xmsg | TYPE STANDARD TABLE OF SPROT_U, " | |||
| lv_file_not_found | TYPE SPROT_U, " | |||
| lv_accept_not_init | TYPE SPROT_I-XFELD, " ' ' | |||
| lv_close_file | TYPE SPROT_I-XFELD, " 'X' | |||
| lv_prot_not_initialized | TYPE SPROT_I, " | |||
| lv_condense | TYPE SPROT_I-XFELD, " 'X' | |||
| lv_table_empty | TYPE SPROT_I, " | |||
| lv_wrong_call | TYPE SPROT_I, " | |||
| lv_master_langu | TYPE T100-SPRSL, " 'D' | |||
| lv_open_file | TYPE SPROT_I-XFELD. " 'X' |
|   CALL FUNCTION 'RKD_METHOD_PROTOCOL' " |
| EXPORTING | ||
| ACCEPT_NOT_INIT | = lv_accept_not_init | |
| CLOSE_FILE | = lv_close_file | |
| CONDENSE | = lv_condense | |
| MASTER_LANGU | = lv_master_langu | |
| OPEN_FILE | = lv_open_file | |
| TABLES | ||
| XMSG | = lt_xmsg | |
| EXCEPTIONS | ||
| FILE_NOT_FOUND = 1 | ||
| PROT_NOT_INITIALIZED = 2 | ||
| TABLE_EMPTY = 3 | ||
| WRONG_CALL = 4 | ||
| . " RKD_METHOD_PROTOCOL | ||
ABAP code using 7.40 inline data declarations to call FM RKD_METHOD_PROTOCOL
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 XFELD FROM SPROT_I INTO @DATA(ld_accept_not_init). | ||||
| DATA(ld_accept_not_init) | = ' '. | |||
| "SELECT single XFELD FROM SPROT_I INTO @DATA(ld_close_file). | ||||
| DATA(ld_close_file) | = 'X'. | |||
| "SELECT single XFELD FROM SPROT_I INTO @DATA(ld_condense). | ||||
| DATA(ld_condense) | = 'X'. | |||
| "SELECT single SPRSL FROM T100 INTO @DATA(ld_master_langu). | ||||
| DATA(ld_master_langu) | = 'D'. | |||
| "SELECT single XFELD FROM SPROT_I INTO @DATA(ld_open_file). | ||||
| DATA(ld_open_file) | = 'X'. | |||
Search for further information about these or an SAP related objects