SAP CME_API_CHAR_SEARCH Function Module for CME Characteristic - Find
CME_API_CHAR_SEARCH is a standard cme api char search SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CME Characteristic - Find 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 cme api char search FM, simply by entering the name CME_API_CHAR_SEARCH into the relevant SAP transaction such as SE37 or SE38.
Function Group: CME_API_CHAR
Program Name: SAPLCME_API_CHAR
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CME_API_CHAR_SEARCH 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 'CME_API_CHAR_SEARCH'"CME Characteristic - Find.
EXPORTING
* IS_KEY = "CME Characteristic -Key Fields-
* IT_TEXT_TYPES = "List of Text Types
* IS_SHORT_TEXTS = "CME Structure for Finding Objects on Basis of Short Texts
* I_CASE_SENSITIVE = CL_DML_CONST=>FALSE "Inclusion of Lowercase
* I_GROUP = "CME Characteristic -Group-
* I_STATUS = "CME Characteristic -Status-
* I_USER = "User Creating the Characteristic
* I_MAX_HITS = '99999' "Maximum Number of Hits
* I_ONLY_KEYS = CL_DML_CONST=>TRUE "Read Only Key Data
* IS_LANGUAGE_CODE = "Regional Language
IMPORTING
ET_CHARACTERISTICS = "CME Characteristic -Key Fields Plus Descriptions-
EXCEPTIONS
EX_NOT_FOUND = 1
IMPORTING Parameters details for CME_API_CHAR_SEARCH
IS_KEY - CME Characteristic -Key Fields-
Data type: CME_S_CHAR_KEY_INT_EXTOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_TEXT_TYPES - List of Text Types
Data type: DML_T_TEXT_TYPESOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_SHORT_TEXTS - CME Structure for Finding Objects on Basis of Short Texts
Data type: CME_S_TEXT_SEARCHOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CASE_SENSITIVE - Inclusion of Lowercase
Data type: DML_BOOLEANDefault: CL_DML_CONST=>FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GROUP - CME Characteristic -Group-
Data type: DML_GRPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STATUS - CME Characteristic -Status-
Data type: J_STATUSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_USER - User Creating the Characteristic
Data type: DML_USER_CREATEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MAX_HITS - Maximum Number of Hits
Data type: NUMC5Default: '99999'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ONLY_KEYS - Read Only Key Data
Data type: DML_BOOLEANDefault: CL_DML_CONST=>TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_LANGUAGE_CODE - Regional Language
Data type: DML_S_TEXT_LOCALEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CME_API_CHAR_SEARCH
ET_CHARACTERISTICS - CME Characteristic -Key Fields Plus Descriptions-
Data type: CME_T_CHAR_KEY_WITH_TEXTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EX_NOT_FOUND - No characteristics found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CME_API_CHAR_SEARCH 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_is_key | TYPE CME_S_CHAR_KEY_INT_EXT, " | |||
| lv_ex_not_found | TYPE CME_S_CHAR_KEY_INT_EXT, " | |||
| lv_et_characteristics | TYPE CME_T_CHAR_KEY_WITH_TEXT, " | |||
| lv_it_text_types | TYPE DML_T_TEXT_TYPES, " | |||
| lv_is_short_texts | TYPE CME_S_TEXT_SEARCH, " | |||
| lv_i_case_sensitive | TYPE DML_BOOLEAN, " CL_DML_CONST=>FALSE | |||
| lv_i_group | TYPE DML_GRP, " | |||
| lv_i_status | TYPE J_STATUS, " | |||
| lv_i_user | TYPE DML_USER_CREATE, " | |||
| lv_i_max_hits | TYPE NUMC5, " '99999' | |||
| lv_i_only_keys | TYPE DML_BOOLEAN, " CL_DML_CONST=>TRUE | |||
| lv_is_language_code | TYPE DML_S_TEXT_LOCALE. " |
|   CALL FUNCTION 'CME_API_CHAR_SEARCH' "CME Characteristic - Find |
| EXPORTING | ||
| IS_KEY | = lv_is_key | |
| IT_TEXT_TYPES | = lv_it_text_types | |
| IS_SHORT_TEXTS | = lv_is_short_texts | |
| I_CASE_SENSITIVE | = lv_i_case_sensitive | |
| I_GROUP | = lv_i_group | |
| I_STATUS | = lv_i_status | |
| I_USER | = lv_i_user | |
| I_MAX_HITS | = lv_i_max_hits | |
| I_ONLY_KEYS | = lv_i_only_keys | |
| IS_LANGUAGE_CODE | = lv_is_language_code | |
| IMPORTING | ||
| ET_CHARACTERISTICS | = lv_et_characteristics | |
| EXCEPTIONS | ||
| EX_NOT_FOUND = 1 | ||
| . " CME_API_CHAR_SEARCH | ||
ABAP code using 7.40 inline data declarations to call FM CME_API_CHAR_SEARCH
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.| DATA(ld_i_case_sensitive) | = CL_DML_CONST=>FALSE. | |||
| DATA(ld_i_max_hits) | = '99999'. | |||
| DATA(ld_i_only_keys) | = CL_DML_CONST=>TRUE. | |||
Search for further information about these or an SAP related objects