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

Function RKD_VARIABLE_EXIT 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_VARIABLE_EXIT'".
EXPORTING
* I_FNAM = ' ' "Field name
I_RKB1D = "
I_RKB1F = "Parameter research report
I_RKB1X = "Fields of the research specific to an applic.
I_VARTYP = "Variable type
I_VNAM = "Variable name
* I_VARTAB = "
* I_SEIG = "
* I_AFTERINPUT = ' ' "
IMPORTING
E_KEYID = "Key field
E_LENGTH = "
E_MEEHT = "
E_MEFAC = "
E_TEXT = "
E_VALUE = "
E_WAERS = "
E_WHFAC = "
E_TYPE = "
CHANGING
* C_TS_VRANGE = "
TABLES
I_FDEP_TAB = "Compound criteria
I_FIELD_TAB = "Table fields
EXCEPTIONS
UNKNOWN_VARIABLE = 1
IMPORTING Parameters details for RKD_VARIABLE_EXIT
I_FNAM - Field name
Data type: CFBVP01-FNAMDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RKB1D -
Data type: RKB1DOptional: No
Call by Reference: No ( called with pass by value option)
I_RKB1F - Parameter research report
Data type: RKB1FOptional: No
Call by Reference: No ( called with pass by value option)
I_RKB1X - Fields of the research specific to an applic.
Data type: RKB1XOptional: No
Call by Reference: No ( called with pass by value option)
I_VARTYP - Variable type
Data type: CFBVP01-VARTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_VNAM - Variable name
Data type: CFBVP01-VNAMOptional: No
Call by Reference: No ( called with pass by value option)
I_VARTAB -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SEIG -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AFTERINPUT -
Data type: CZEITFLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RKD_VARIABLE_EXIT
E_KEYID - Key field
Data type: CFBVP01-KEYIDOptional: No
Call by Reference: No ( called with pass by value option)
E_LENGTH -
Data type: SY-INDEXOptional: No
Call by Reference: No ( called with pass by value option)
E_MEEHT -
Data type: CFBPR01-EMEEHTOptional: No
Call by Reference: No ( called with pass by value option)
E_MEFAC -
Data type: CFBPR01-MEFACOptional: No
Call by Reference: No ( called with pass by value option)
E_TEXT -
Data type: CLIKEOptional: No
Call by Reference: No ( called with pass by value option)
E_VALUE -
Data type: CFBPR01-ROUNFOptional: No
Call by Reference: No ( called with pass by value option)
E_WAERS -
Data type: CFBPR01-EWAERSOptional: No
Call by Reference: No ( called with pass by value option)
E_WHFAC -
Data type: CFBPR01-WHFACOptional: No
Call by Reference: No ( called with pass by value option)
E_TYPE -
Data type: CFBVP01-TYPEOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RKD_VARIABLE_EXIT
C_TS_VRANGE -
Data type: RKD_TS_VRANGEOptional: Yes
Call by Reference: Yes
TABLES Parameters details for RKD_VARIABLE_EXIT
I_FDEP_TAB - Compound criteria
Data type: CDIDEPOptional: No
Call by Reference: No ( called with pass by value option)
I_FIELD_TAB - Table fields
Data type: CDIFIEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
UNKNOWN_VARIABLE - Unknown variable
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RKD_VARIABLE_EXIT 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_i_fnam | TYPE CFBVP01-FNAM, " ' ' | |||
| lv_e_keyid | TYPE CFBVP01-KEYID, " | |||
| lt_i_fdep_tab | TYPE STANDARD TABLE OF CDIDEP, " | |||
| lv_c_ts_vrange | TYPE RKD_TS_VRANGE, " | |||
| lv_unknown_variable | TYPE RKD_TS_VRANGE, " | |||
| lv_i_rkb1d | TYPE RKB1D, " | |||
| lv_e_length | TYPE SY-INDEX, " | |||
| lt_i_field_tab | TYPE STANDARD TABLE OF CDIFIE, " | |||
| lv_e_meeht | TYPE CFBPR01-EMEEHT, " | |||
| lv_i_rkb1f | TYPE RKB1F, " | |||
| lv_e_mefac | TYPE CFBPR01-MEFAC, " | |||
| lv_i_rkb1x | TYPE RKB1X, " | |||
| lv_e_text | TYPE CLIKE, " | |||
| lv_i_vartyp | TYPE CFBVP01-VARTYP, " | |||
| lv_i_vnam | TYPE CFBVP01-VNAM, " | |||
| lv_e_value | TYPE CFBPR01-ROUNF, " | |||
| lv_e_waers | TYPE CFBPR01-EWAERS, " | |||
| lv_i_vartab | TYPE CFBPR01, " | |||
| lv_i_seig | TYPE CFBPR01, " | |||
| lv_e_whfac | TYPE CFBPR01-WHFAC, " | |||
| lv_e_type | TYPE CFBVP01-TYPE, " | |||
| lv_i_afterinput | TYPE CZEITFLAG. " ' ' |
|   CALL FUNCTION 'RKD_VARIABLE_EXIT' " |
| EXPORTING | ||
| I_FNAM | = lv_i_fnam | |
| I_RKB1D | = lv_i_rkb1d | |
| I_RKB1F | = lv_i_rkb1f | |
| I_RKB1X | = lv_i_rkb1x | |
| I_VARTYP | = lv_i_vartyp | |
| I_VNAM | = lv_i_vnam | |
| I_VARTAB | = lv_i_vartab | |
| I_SEIG | = lv_i_seig | |
| I_AFTERINPUT | = lv_i_afterinput | |
| IMPORTING | ||
| E_KEYID | = lv_e_keyid | |
| E_LENGTH | = lv_e_length | |
| E_MEEHT | = lv_e_meeht | |
| E_MEFAC | = lv_e_mefac | |
| E_TEXT | = lv_e_text | |
| E_VALUE | = lv_e_value | |
| E_WAERS | = lv_e_waers | |
| E_WHFAC | = lv_e_whfac | |
| E_TYPE | = lv_e_type | |
| CHANGING | ||
| C_TS_VRANGE | = lv_c_ts_vrange | |
| TABLES | ||
| I_FDEP_TAB | = lt_i_fdep_tab | |
| I_FIELD_TAB | = lt_i_field_tab | |
| EXCEPTIONS | ||
| UNKNOWN_VARIABLE = 1 | ||
| . " RKD_VARIABLE_EXIT | ||
ABAP code using 7.40 inline data declarations to call FM RKD_VARIABLE_EXIT
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 FNAM FROM CFBVP01 INTO @DATA(ld_i_fnam). | ||||
| DATA(ld_i_fnam) | = ' '. | |||
| "SELECT single KEYID FROM CFBVP01 INTO @DATA(ld_e_keyid). | ||||
| "SELECT single INDEX FROM SY INTO @DATA(ld_e_length). | ||||
| "SELECT single EMEEHT FROM CFBPR01 INTO @DATA(ld_e_meeht). | ||||
| "SELECT single MEFAC FROM CFBPR01 INTO @DATA(ld_e_mefac). | ||||
| "SELECT single VARTYP FROM CFBVP01 INTO @DATA(ld_i_vartyp). | ||||
| "SELECT single VNAM FROM CFBVP01 INTO @DATA(ld_i_vnam). | ||||
| "SELECT single ROUNF FROM CFBPR01 INTO @DATA(ld_e_value). | ||||
| "SELECT single EWAERS FROM CFBPR01 INTO @DATA(ld_e_waers). | ||||
| "SELECT single WHFAC FROM CFBPR01 INTO @DATA(ld_e_whfac). | ||||
| "SELECT single TYPE FROM CFBVP01 INTO @DATA(ld_e_type). | ||||
| DATA(ld_i_afterinput) | = ' '. | |||
Search for further information about these or an SAP related objects