SAP CTMS_CHAR_CHECK_VALUE Function Module for
CTMS_CHAR_CHECK_VALUE is a standard ctms char check value 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 ctms char check value FM, simply by entering the name CTMS_CHAR_CHECK_VALUE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CTMS
Program Name: SAPLCTMS
Main Program: SAPLCTMS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CTMS_CHAR_CHECK_VALUE 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 'CTMS_CHAR_CHECK_VALUE'".
EXPORTING
CHARACTERISTIC = "
NEW_VALUE = "
OLD_VALUE = "
IMPORTING
CT_API_VAL_SUCCESS = "
EXCEPTIONS
CURRENCY_CHECK = 1 NO_VALID_DIMENSION = 10 INTERVAL_NOT_ALLOWED = 11 CHARACTERISTIC_NOT_FOUND = 12 VALUE_NOT_POSSIBLE = 13 CHARACTERISTIC_ENQUEUE = 14 OBJECTCHARACTERISTIC = 15 ONLY_ONE_VALUE_ALLOWED = 16 CHARACTERISTIC_NOT_SELECTABLE = 17 INPUT_TO_LONG = 18 VALUE_CONTRADICTION = 19 DATE_CHECK = 2 FORMAT_CHECK = 3 ILLEGAL_INTERNAL_BASEUNIT = 4 INTERVAL_CHECK = 5 PATTERN_CHECK = 6 TIME_CHECK = 7 UNIT_CHECK = 8 VALUE_NOT_FOUND = 9
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCTMS_001 Set Default Values
EXIT_SAPLCTMS_002 Check for Same Classification
EXIT_SAPLCTMS_003 Object Dependencies When Finding Objects
EXIT_SAPLCTMS_999 Dummy User Exit
IMPORTING Parameters details for CTMS_CHAR_CHECK_VALUE
CHARACTERISTIC -
Data type: CABN-ATINNOptional: No
Call by Reference: No ( called with pass by value option)
NEW_VALUE -
Data type: CAWN-ATWRTOptional: No
Call by Reference: No ( called with pass by value option)
OLD_VALUE -
Data type: CAWN-ATWRTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CTMS_CHAR_CHECK_VALUE
CT_API_VAL_SUCCESS -
Data type: TT_API_VAL_COptional: No
Call by Reference: Yes
EXCEPTIONS details
CURRENCY_CHECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_DIMENSION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERVAL_NOT_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHARACTERISTIC_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VALUE_NOT_POSSIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHARACTERISTIC_ENQUEUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECTCHARACTERISTIC -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ONLY_ONE_VALUE_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHARACTERISTIC_NOT_SELECTABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INPUT_TO_LONG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VALUE_CONTRADICTION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATE_CHECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FORMAT_CHECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ILLEGAL_INTERNAL_BASEUNIT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERVAL_CHECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PATTERN_CHECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TIME_CHECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNIT_CHECK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
VALUE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CTMS_CHAR_CHECK_VALUE 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_characteristic | TYPE CABN-ATINN, " | |||
| lv_currency_check | TYPE CABN, " | |||
| lv_ct_api_val_success | TYPE TT_API_VAL_C, " | |||
| lv_no_valid_dimension | TYPE TT_API_VAL_C, " | |||
| lv_interval_not_allowed | TYPE TT_API_VAL_C, " | |||
| lv_characteristic_not_found | TYPE TT_API_VAL_C, " | |||
| lv_value_not_possible | TYPE TT_API_VAL_C, " | |||
| lv_characteristic_enqueue | TYPE TT_API_VAL_C, " | |||
| lv_objectcharacteristic | TYPE TT_API_VAL_C, " | |||
| lv_only_one_value_allowed | TYPE TT_API_VAL_C, " | |||
| lv_characteristic_not_selectable | TYPE TT_API_VAL_C, " | |||
| lv_input_to_long | TYPE TT_API_VAL_C, " | |||
| lv_value_contradiction | TYPE TT_API_VAL_C, " | |||
| lv_new_value | TYPE CAWN-ATWRT, " | |||
| lv_date_check | TYPE CAWN, " | |||
| lv_old_value | TYPE CAWN-ATWRT, " | |||
| lv_format_check | TYPE CAWN, " | |||
| lv_illegal_internal_baseunit | TYPE CAWN, " | |||
| lv_interval_check | TYPE CAWN, " | |||
| lv_pattern_check | TYPE CAWN, " | |||
| lv_time_check | TYPE CAWN, " | |||
| lv_unit_check | TYPE CAWN, " | |||
| lv_value_not_found | TYPE CAWN. " |
|   CALL FUNCTION 'CTMS_CHAR_CHECK_VALUE' " |
| EXPORTING | ||
| CHARACTERISTIC | = lv_characteristic | |
| NEW_VALUE | = lv_new_value | |
| OLD_VALUE | = lv_old_value | |
| IMPORTING | ||
| CT_API_VAL_SUCCESS | = lv_ct_api_val_success | |
| EXCEPTIONS | ||
| CURRENCY_CHECK = 1 | ||
| NO_VALID_DIMENSION = 10 | ||
| INTERVAL_NOT_ALLOWED = 11 | ||
| CHARACTERISTIC_NOT_FOUND = 12 | ||
| VALUE_NOT_POSSIBLE = 13 | ||
| CHARACTERISTIC_ENQUEUE = 14 | ||
| OBJECTCHARACTERISTIC = 15 | ||
| ONLY_ONE_VALUE_ALLOWED = 16 | ||
| CHARACTERISTIC_NOT_SELECTABLE = 17 | ||
| INPUT_TO_LONG = 18 | ||
| VALUE_CONTRADICTION = 19 | ||
| DATE_CHECK = 2 | ||
| FORMAT_CHECK = 3 | ||
| ILLEGAL_INTERNAL_BASEUNIT = 4 | ||
| INTERVAL_CHECK = 5 | ||
| PATTERN_CHECK = 6 | ||
| TIME_CHECK = 7 | ||
| UNIT_CHECK = 8 | ||
| VALUE_NOT_FOUND = 9 | ||
| . " CTMS_CHAR_CHECK_VALUE | ||
ABAP code using 7.40 inline data declarations to call FM CTMS_CHAR_CHECK_VALUE
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 ATINN FROM CABN INTO @DATA(ld_characteristic). | ||||
| "SELECT single ATWRT FROM CAWN INTO @DATA(ld_new_value). | ||||
| "SELECT single ATWRT FROM CAWN INTO @DATA(ld_old_value). | ||||
Search for further information about these or an SAP related objects