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

Function RKD_SHORT_TEXT_SINGLE 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_SHORT_TEXT_SINGLE'".
EXPORTING
APPLCLASS = "Application
* NO_ESCAPE_SYMBOL = ' ' "
* MODE = '*' "Mode of the function module -->
* TABLE = ' ' "Table
CHARACTERISTIC = "Characteristic Value
* I_FYEAR = 0000 "
CRITERIA = "Characteristic
* DATE = '00000000' "Date field
* DATE_TO = '00000000' "Date field
* I_RKB1X = ' ' "Field string with application-dependent param.
* LANGUAGE_KEY = SY-LANGU "Language
* KOKRS_FLAG = ' ' "
IMPORTING
CHARACTERISTIC_TEXT = "Text for the characteristic
CHARACTERISTIC_TEXT_L = "
DOCU_FLAG = "Is documentation available?
TEXT_FLAG = "Is long text for characteristic available?
EXCEPTIONS
CRITERIA_NOT_FOUND = 1 KEY_NOT_FOUND = 2 TABLE_NOT_FOUND = 3 TKEBF_ENTRY_NOT_FOUND = 4 EMPTY_APPLCLASS = 5 WRONG_MODE = 6 NO_ESCAPE_SYMBOL_ALLOWED = 7
IMPORTING Parameters details for RKD_SHORT_TEXT_SINGLE
APPLCLASS - Application
Data type: RKB1D-APPLCLASSOptional: No
Call by Reference: No ( called with pass by value option)
NO_ESCAPE_SYMBOL -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE - Mode of the function module -->
Data type: CLIKEDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLE - Table
Data type: TABNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHARACTERISTIC - Characteristic Value
Data type: RKB1T-CHARACTEROptional: No
Call by Reference: No ( called with pass by value option)
I_FYEAR -
Data type: BDATJDefault: 0000
Optional: Yes
Call by Reference: No ( called with pass by value option)
CRITERIA - Characteristic
Data type: CLIKEOptional: No
Call by Reference: No ( called with pass by value option)
DATE - Date field
Data type: RKB1T-DATEDefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DATE_TO - Date field
Data type: RKB1T-DATE_TODefault: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RKB1X - Field string with application-dependent param.
Data type: RKB1XDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE_KEY - Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
KOKRS_FLAG -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RKD_SHORT_TEXT_SINGLE
CHARACTERISTIC_TEXT - Text for the characteristic
Data type: CLIKEOptional: No
Call by Reference: No ( called with pass by value option)
CHARACTERISTIC_TEXT_L -
Data type: CLIKEOptional: No
Call by Reference: No ( called with pass by value option)
DOCU_FLAG - Is documentation available?
Data type: RKB1T-DFLAGOptional: No
Call by Reference: No ( called with pass by value option)
TEXT_FLAG - Is long text for characteristic available?
Data type: RKB1T-TFLAGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CRITERIA_NOT_FOUND - Characteristic not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KEY_NOT_FOUND - Characteristic is not available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLE_NOT_FOUND - Table not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TKEBF_ENTRY_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EMPTY_APPLCLASS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_MODE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ESCAPE_SYMBOL_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RKD_SHORT_TEXT_SINGLE 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_applclass | TYPE RKB1D-APPLCLASS, " | |||
| lv_criteria_not_found | TYPE RKB1D, " | |||
| lv_characteristic_text | TYPE CLIKE, " | |||
| lv_no_escape_symbol | TYPE C, " ' ' | |||
| lv_mode | TYPE CLIKE, " '*' | |||
| lv_table | TYPE TABNAME, " SPACE | |||
| lv_key_not_found | TYPE TABNAME, " | |||
| lv_characteristic | TYPE RKB1T-CHARACTER, " | |||
| lv_characteristic_text_l | TYPE CLIKE, " | |||
| lv_i_fyear | TYPE BDATJ, " 0000 | |||
| lv_docu_flag | TYPE RKB1T-DFLAG, " | |||
| lv_table_not_found | TYPE RKB1T, " | |||
| lv_criteria | TYPE CLIKE, " | |||
| lv_text_flag | TYPE RKB1T-TFLAG, " | |||
| lv_tkebf_entry_not_found | TYPE RKB1T, " | |||
| lv_date | TYPE RKB1T-DATE, " '00000000' | |||
| lv_empty_applclass | TYPE RKB1T, " | |||
| lv_date_to | TYPE RKB1T-DATE_TO, " '00000000' | |||
| lv_wrong_mode | TYPE RKB1T, " | |||
| lv_i_rkb1x | TYPE RKB1X, " SPACE | |||
| lv_no_escape_symbol_allowed | TYPE RKB1X, " | |||
| lv_language_key | TYPE SY-LANGU, " SY-LANGU | |||
| lv_kokrs_flag | TYPE C. " ' ' |
|   CALL FUNCTION 'RKD_SHORT_TEXT_SINGLE' " |
| EXPORTING | ||
| APPLCLASS | = lv_applclass | |
| NO_ESCAPE_SYMBOL | = lv_no_escape_symbol | |
| MODE | = lv_mode | |
| TABLE | = lv_table | |
| CHARACTERISTIC | = lv_characteristic | |
| I_FYEAR | = lv_i_fyear | |
| CRITERIA | = lv_criteria | |
| DATE | = lv_date | |
| DATE_TO | = lv_date_to | |
| I_RKB1X | = lv_i_rkb1x | |
| LANGUAGE_KEY | = lv_language_key | |
| KOKRS_FLAG | = lv_kokrs_flag | |
| IMPORTING | ||
| CHARACTERISTIC_TEXT | = lv_characteristic_text | |
| CHARACTERISTIC_TEXT_L | = lv_characteristic_text_l | |
| DOCU_FLAG | = lv_docu_flag | |
| TEXT_FLAG | = lv_text_flag | |
| EXCEPTIONS | ||
| CRITERIA_NOT_FOUND = 1 | ||
| KEY_NOT_FOUND = 2 | ||
| TABLE_NOT_FOUND = 3 | ||
| TKEBF_ENTRY_NOT_FOUND = 4 | ||
| EMPTY_APPLCLASS = 5 | ||
| WRONG_MODE = 6 | ||
| NO_ESCAPE_SYMBOL_ALLOWED = 7 | ||
| . " RKD_SHORT_TEXT_SINGLE | ||
ABAP code using 7.40 inline data declarations to call FM RKD_SHORT_TEXT_SINGLE
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 APPLCLASS FROM RKB1D INTO @DATA(ld_applclass). | ||||
| DATA(ld_no_escape_symbol) | = ' '. | |||
| DATA(ld_mode) | = '*'. | |||
| DATA(ld_table) | = ' '. | |||
| "SELECT single CHARACTER FROM RKB1T INTO @DATA(ld_characteristic). | ||||
| DATA(ld_i_fyear) | = 0000. | |||
| "SELECT single DFLAG FROM RKB1T INTO @DATA(ld_docu_flag). | ||||
| "SELECT single TFLAG FROM RKB1T INTO @DATA(ld_text_flag). | ||||
| "SELECT single DATE FROM RKB1T INTO @DATA(ld_date). | ||||
| DATA(ld_date) | = '00000000'. | |||
| "SELECT single DATE_TO FROM RKB1T INTO @DATA(ld_date_to). | ||||
| DATA(ld_date_to) | = '00000000'. | |||
| DATA(ld_i_rkb1x) | = ' '. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_language_key). | ||||
| DATA(ld_language_key) | = SY-LANGU. | |||
| DATA(ld_kokrs_flag) | = ' '. | |||
Search for further information about these or an SAP related objects