SAP RKD_VARIABLE_NAME_CHECK Function Module for









RKD_VARIABLE_NAME_CHECK is a standard rkd variable name check 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 name check FM, simply by entering the name RKD_VARIABLE_NAME_CHECK into the relevant SAP transaction such as SE37 or SE38.

Function Group: KYP3
Program Name: SAPLKYP3
Main Program: SAPLKYP3
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RKD_VARIABLE_NAME_CHECK 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_NAME_CHECK'"
EXPORTING
I_FNAM = "Field name
I_KEYID = "Characteristic value
I_APPLCLASS = "Application
* I_MODE = '*' "Function module mode -->
* I_VARTYP = '1' "Variable type
* I_VARRART = '*' "String with permitted replacement types -->
* I_DTYPE = ' ' "Dictionary data type for field-independent variable
* I_NO_REFERENZ = ' ' "

IMPORTING
E_TXT20 = "Name (medium)
E_TXT10 = "Name (short)
E_TXT40 = "Name (long)
E_TKESV = "Variable content according to table TKESV
E_LOCAL = "

EXCEPTIONS
BLANK = 1 NUMBER = 2 SYSTEM = 3 LENGTH = 4 SPECIAL = 5 GLOBAL = 6 VARRART = 7 SELOPT = 8
.



IMPORTING Parameters details for RKD_VARIABLE_NAME_CHECK

I_FNAM - Field name

Data type: CFBSE01-FNAM
Optional: No
Call by Reference: No ( called with pass by value option)

I_KEYID - Characteristic value

Data type: CFBSE01-LOW
Optional: No
Call by Reference: No ( called with pass by value option)

I_APPLCLASS - Application

Data type: RKB1D-APPLCLASS
Optional: No
Call by Reference: No ( called with pass by value option)

I_MODE - Function module mode -->

Data type: C
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VARTYP - Variable type

Data type: TKESV-VARTYP
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VARRART - String with permitted replacement types -->

Data type: C
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DTYPE - Dictionary data type for field-independent variable

Data type: CDIFIE-DTYPE
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_REFERENZ -

Data type: RKD_FLAG
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RKD_VARIABLE_NAME_CHECK

E_TXT20 - Name (medium)

Data type: TKESW-TXTMT
Optional: No
Call by Reference: No ( called with pass by value option)

E_TXT10 - Name (short)

Data type: TKESW-TXTKZ
Optional: No
Call by Reference: No ( called with pass by value option)

E_TXT40 - Name (long)

Data type: TKESW-TXTLG
Optional: No
Call by Reference: No ( called with pass by value option)

E_TKESV - Variable content according to table TKESV

Data type: TKESV
Optional: No
Call by Reference: No ( called with pass by value option)

E_LOCAL -

Data type: CCVALID-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

BLANK - Variable contains a blank

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NUMBER - No number behind the operator (+-)

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SYSTEM - System variable cannot be used

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LENGTH - Length of variable not allowed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SPECIAL - Variable name contains invalid character

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

GLOBAL - Global variables not available

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

VARRART - Replacement type of the variables not allowed

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SELOPT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RKD_VARIABLE_NAME_CHECK 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_blank  TYPE STRING, "   
lv_i_fnam  TYPE CFBSE01-FNAM, "   
lv_e_txt20  TYPE TKESW-TXTMT, "   
lv_number  TYPE TKESW, "   
lv_e_txt10  TYPE TKESW-TXTKZ, "   
lv_i_keyid  TYPE CFBSE01-LOW, "   
lv_system  TYPE CFBSE01, "   
lv_e_txt40  TYPE TKESW-TXTLG, "   
lv_i_applclass  TYPE RKB1D-APPLCLASS, "   
lv_i_mode  TYPE C, "   '*'
lv_length  TYPE C, "   
lv_e_tkesv  TYPE TKESV, "   
lv_e_local  TYPE CCVALID-XFELD, "   
lv_special  TYPE CCVALID, "   
lv_i_vartyp  TYPE TKESV-VARTYP, "   '1'
lv_global  TYPE TKESV, "   
lv_i_varrart  TYPE C, "   '*'
lv_i_dtype  TYPE CDIFIE-DTYPE, "   ' '
lv_varrart  TYPE CDIFIE, "   
lv_selopt  TYPE CDIFIE, "   
lv_i_no_referenz  TYPE RKD_FLAG. "   ' '

  CALL FUNCTION 'RKD_VARIABLE_NAME_CHECK'  "
    EXPORTING
         I_FNAM = lv_i_fnam
         I_KEYID = lv_i_keyid
         I_APPLCLASS = lv_i_applclass
         I_MODE = lv_i_mode
         I_VARTYP = lv_i_vartyp
         I_VARRART = lv_i_varrart
         I_DTYPE = lv_i_dtype
         I_NO_REFERENZ = lv_i_no_referenz
    IMPORTING
         E_TXT20 = lv_e_txt20
         E_TXT10 = lv_e_txt10
         E_TXT40 = lv_e_txt40
         E_TKESV = lv_e_tkesv
         E_LOCAL = lv_e_local
    EXCEPTIONS
        BLANK = 1
        NUMBER = 2
        SYSTEM = 3
        LENGTH = 4
        SPECIAL = 5
        GLOBAL = 6
        VARRART = 7
        SELOPT = 8
. " RKD_VARIABLE_NAME_CHECK




ABAP code using 7.40 inline data declarations to call FM RKD_VARIABLE_NAME_CHECK

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 CFBSE01 INTO @DATA(ld_i_fnam).
 
"SELECT single TXTMT FROM TKESW INTO @DATA(ld_e_txt20).
 
 
"SELECT single TXTKZ FROM TKESW INTO @DATA(ld_e_txt10).
 
"SELECT single LOW FROM CFBSE01 INTO @DATA(ld_i_keyid).
 
 
"SELECT single TXTLG FROM TKESW INTO @DATA(ld_e_txt40).
 
"SELECT single APPLCLASS FROM RKB1D INTO @DATA(ld_i_applclass).
 
DATA(ld_i_mode) = '*'.
 
 
 
"SELECT single XFELD FROM CCVALID INTO @DATA(ld_e_local).
 
 
"SELECT single VARTYP FROM TKESV INTO @DATA(ld_i_vartyp).
DATA(ld_i_vartyp) = '1'.
 
 
DATA(ld_i_varrart) = '*'.
 
"SELECT single DTYPE FROM CDIFIE INTO @DATA(ld_i_dtype).
DATA(ld_i_dtype) = ' '.
 
 
 
DATA(ld_i_no_referenz) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!