SAP CTMS_DDB_SET_VALUE Function Module for









CTMS_DDB_SET_VALUE is a standard ctms ddb set 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 ddb set value FM, simply by entering the name CTMS_DDB_SET_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_DDB_SET_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_DDB_SET_VALUE'"
EXPORTING
* INSTANCE = "
* MESSAGE = ' ' "
* UDEF_INSTANCE = "

TABLES
IMP_VALUES = "
* EXP_VALUES_ERROR = "

EXCEPTIONS
CURRENCY_CHECK = 1 NO_VALID_DIMENSION = 10 INTERVAL_NOT_ALLOWED = 11 DISPLAY_MODE = 12 CHARACTERISTIC_NOT_FOUND = 13 VALUE_NOT_POSSIBLE = 14 CHARACTERISTIC_ENQUEUE = 15 OBJECTCHARACTERISTIC = 16 ONLY_ONE_VALUE_ALLOWED = 17 CHARACTERISTIC_NOT_SELECTABLE = 18 INPUT_TO_LONG = 19 DATE_CHECK = 2 VALUE_CONTRADICTION = 20 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_DDB_SET_VALUE

INSTANCE -

Data type: DDB_C02-INSTANCE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGE -

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

UDEF_INSTANCE -

Data type: AUSP-ATZIS
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CTMS_DDB_SET_VALUE

IMP_VALUES -

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

EXP_VALUES_ERROR -

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

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)

DISPLAY_MODE -

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)

DATE_CHECK -

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)

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_DDB_SET_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_instance  TYPE DDB_C02-INSTANCE, "   
lt_imp_values  TYPE STANDARD TABLE OF API_VAL_I, "   
lv_currency_check  TYPE API_VAL_I, "   
lv_no_valid_dimension  TYPE API_VAL_I, "   
lv_interval_not_allowed  TYPE API_VAL_I, "   
lv_display_mode  TYPE API_VAL_I, "   
lv_characteristic_not_found  TYPE API_VAL_I, "   
lv_value_not_possible  TYPE API_VAL_I, "   
lv_characteristic_enqueue  TYPE API_VAL_I, "   
lv_objectcharacteristic  TYPE API_VAL_I, "   
lv_only_one_value_allowed  TYPE API_VAL_I, "   
lv_characteristic_not_selectable  TYPE API_VAL_I, "   
lv_input_to_long  TYPE API_VAL_I, "   
lv_message  TYPE API_VAL_I, "   ' '
lv_date_check  TYPE API_VAL_I, "   
lt_exp_values_error  TYPE STANDARD TABLE OF API_VAL_I, "   
lv_value_contradiction  TYPE API_VAL_I, "   
lv_format_check  TYPE API_VAL_I, "   
lv_udef_instance  TYPE AUSP-ATZIS, "   
lv_illegal_internal_baseunit  TYPE AUSP, "   
lv_interval_check  TYPE AUSP, "   
lv_pattern_check  TYPE AUSP, "   
lv_time_check  TYPE AUSP, "   
lv_unit_check  TYPE AUSP, "   
lv_value_not_found  TYPE AUSP. "   

  CALL FUNCTION 'CTMS_DDB_SET_VALUE'  "
    EXPORTING
         INSTANCE = lv_instance
         MESSAGE = lv_message
         UDEF_INSTANCE = lv_udef_instance
    TABLES
         IMP_VALUES = lt_imp_values
         EXP_VALUES_ERROR = lt_exp_values_error
    EXCEPTIONS
        CURRENCY_CHECK = 1
        NO_VALID_DIMENSION = 10
        INTERVAL_NOT_ALLOWED = 11
        DISPLAY_MODE = 12
        CHARACTERISTIC_NOT_FOUND = 13
        VALUE_NOT_POSSIBLE = 14
        CHARACTERISTIC_ENQUEUE = 15
        OBJECTCHARACTERISTIC = 16
        ONLY_ONE_VALUE_ALLOWED = 17
        CHARACTERISTIC_NOT_SELECTABLE = 18
        INPUT_TO_LONG = 19
        DATE_CHECK = 2
        VALUE_CONTRADICTION = 20
        FORMAT_CHECK = 3
        ILLEGAL_INTERNAL_BASEUNIT = 4
        INTERVAL_CHECK = 5
        PATTERN_CHECK = 6
        TIME_CHECK = 7
        UNIT_CHECK = 8
        VALUE_NOT_FOUND = 9
. " CTMS_DDB_SET_VALUE




ABAP code using 7.40 inline data declarations to call FM CTMS_DDB_SET_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 INSTANCE FROM DDB_C02 INTO @DATA(ld_instance).
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_message) = ' '.
 
 
 
 
 
"SELECT single ATZIS FROM AUSP INTO @DATA(ld_udef_instance).
 
 
 
 
 
 
 


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!