SAP CTMS_DDB_HAS_VALUES_INTERNAL Function Module for









CTMS_DDB_HAS_VALUES_INTERNAL is a standard ctms ddb has values internal 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 has values internal FM, simply by entering the name CTMS_DDB_HAS_VALUES_INTERNAL into the relevant SAP transaction such as SE37 or SE38.

Function Group: CTMS
Program Name: SAPLCTMS
Main Program: SAPLCTMS
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CTMS_DDB_HAS_VALUES_INTERNAL 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_HAS_VALUES_INTERNAL'"
EXPORTING
* ASSIGNED_VALUES = ' ' "
* I_CALLED_FROM_DDB = ' ' "
* NOT_SELECTABLE_VALUES = ' ' "
* IV_INCL_AUTHOR = ' ' "
* I_GET_VALUE_TXT = ' ' "
* ALLOWED_VALUES = 'X' "
* VALID_VALUES = ' ' "
* INCONSISTENT_VALUES = ' ' "
* FIRST_ASSIGNED_VALUE = ' ' "
* DEFAULT_VALUES = ' ' "
* LANGUAGE = SY-LANGU "
* DOCUMENT_INFO = ' ' "
* EXCL_KNOWLEDGE = ' ' "

IMPORTING
ET_ASSIGNED_VALUES = "
ET_ALLOWED_VALUES = "
ET_VALID_VALUES = "
ET_INCONSISTENT_VALUES = "
ET_FIRST_ASSIGNED_VALUES = "
ET_DEFAULT_VALUES = "
ET_VALUE_HIERARCHY = "
ET_NOT_SELECTABLE_VALUES = "

TABLES
IMP_CHARACTERISTICS = "
EXP_VALUES = "

EXCEPTIONS
NOT_FOUND = 1
.




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_HAS_VALUES_INTERNAL

ASSIGNED_VALUES -

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

I_CALLED_FROM_DDB -

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

NOT_SELECTABLE_VALUES -

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

IV_INCL_AUTHOR -

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

I_GET_VALUE_TXT -

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

ALLOWED_VALUES -

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

VALID_VALUES -

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

INCONSISTENT_VALUES -

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

FIRST_ASSIGNED_VALUE -

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

DEFAULT_VALUES -

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

LANGUAGE -

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

DOCUMENT_INFO -

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

EXCL_KNOWLEDGE -

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

EXPORTING Parameters details for CTMS_DDB_HAS_VALUES_INTERNAL

ET_ASSIGNED_VALUES -

Data type: TT_API_VAL_A
Optional: No
Call by Reference: Yes

ET_ALLOWED_VALUES -

Data type: TT_API_VALI
Optional: No
Call by Reference: Yes

ET_VALID_VALUES -

Data type: TT_API_VALI
Optional: No
Call by Reference: Yes

ET_INCONSISTENT_VALUES -

Data type: TT_API_VAL_A
Optional: No
Call by Reference: Yes

ET_FIRST_ASSIGNED_VALUES -

Data type: TT_API_VAL_A
Optional: No
Call by Reference: Yes

ET_DEFAULT_VALUES -

Data type: TT_API_VALI
Optional: No
Call by Reference: Yes

ET_VALUE_HIERARCHY -

Data type: TT_API_VALHIE
Optional: No
Call by Reference: Yes

ET_NOT_SELECTABLE_VALUES -

Data type: TT_API_VALI
Optional: No
Call by Reference: Yes

TABLES Parameters details for CTMS_DDB_HAS_VALUES_INTERNAL

IMP_CHARACTERISTICS -

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

EXP_VALUES -

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

EXCEPTIONS details

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_HAS_VALUES_INTERNAL 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_not_found  TYPE STRING, "   
lv_assigned_values  TYPE STRING, "   ' '
lv_et_assigned_values  TYPE TT_API_VAL_A, "   
lt_imp_characteristics  TYPE STANDARD TABLE OF API_CHAR, "   
lv_i_called_from_ddb  TYPE C, "   SPACE
lv_not_selectable_values  TYPE XFELD, "   SPACE
lv_iv_incl_author  TYPE XFELD, "   SPACE
lv_i_get_value_txt  TYPE C, "   SPACE
lt_exp_values  TYPE STANDARD TABLE OF API_VALI, "   
lv_allowed_values  TYPE API_VALI, "   'X'
lv_et_allowed_values  TYPE TT_API_VALI, "   
lv_valid_values  TYPE TT_API_VALI, "   ' '
lv_et_valid_values  TYPE TT_API_VALI, "   
lv_inconsistent_values  TYPE TT_API_VALI, "   ' '
lv_et_inconsistent_values  TYPE TT_API_VAL_A, "   
lv_first_assigned_value  TYPE TT_API_VAL_A, "   ' '
lv_et_first_assigned_values  TYPE TT_API_VAL_A, "   
lv_default_values  TYPE TT_API_VAL_A, "   ' '
lv_et_default_values  TYPE TT_API_VALI, "   
lv_language  TYPE SY-LANGU, "   SY-LANGU
lv_et_value_hierarchy  TYPE TT_API_VALHIE, "   
lv_document_info  TYPE TT_API_VALHIE, "   ' '
lv_et_not_selectable_values  TYPE TT_API_VALI, "   
lv_excl_knowledge  TYPE TT_API_VALI. "   ' '

  CALL FUNCTION 'CTMS_DDB_HAS_VALUES_INTERNAL'  "
    EXPORTING
         ASSIGNED_VALUES = lv_assigned_values
         I_CALLED_FROM_DDB = lv_i_called_from_ddb
         NOT_SELECTABLE_VALUES = lv_not_selectable_values
         IV_INCL_AUTHOR = lv_iv_incl_author
         I_GET_VALUE_TXT = lv_i_get_value_txt
         ALLOWED_VALUES = lv_allowed_values
         VALID_VALUES = lv_valid_values
         INCONSISTENT_VALUES = lv_inconsistent_values
         FIRST_ASSIGNED_VALUE = lv_first_assigned_value
         DEFAULT_VALUES = lv_default_values
         LANGUAGE = lv_language
         DOCUMENT_INFO = lv_document_info
         EXCL_KNOWLEDGE = lv_excl_knowledge
    IMPORTING
         ET_ASSIGNED_VALUES = lv_et_assigned_values
         ET_ALLOWED_VALUES = lv_et_allowed_values
         ET_VALID_VALUES = lv_et_valid_values
         ET_INCONSISTENT_VALUES = lv_et_inconsistent_values
         ET_FIRST_ASSIGNED_VALUES = lv_et_first_assigned_values
         ET_DEFAULT_VALUES = lv_et_default_values
         ET_VALUE_HIERARCHY = lv_et_value_hierarchy
         ET_NOT_SELECTABLE_VALUES = lv_et_not_selectable_values
    TABLES
         IMP_CHARACTERISTICS = lt_imp_characteristics
         EXP_VALUES = lt_exp_values
    EXCEPTIONS
        NOT_FOUND = 1
. " CTMS_DDB_HAS_VALUES_INTERNAL




ABAP code using 7.40 inline data declarations to call FM CTMS_DDB_HAS_VALUES_INTERNAL

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_assigned_values) = ' '.
 
 
 
DATA(ld_i_called_from_ddb) = ' '.
 
DATA(ld_not_selectable_values) = ' '.
 
DATA(ld_iv_incl_author) = ' '.
 
DATA(ld_i_get_value_txt) = ' '.
 
 
DATA(ld_allowed_values) = 'X'.
 
 
DATA(ld_valid_values) = ' '.
 
 
DATA(ld_inconsistent_values) = ' '.
 
 
DATA(ld_first_assigned_value) = ' '.
 
 
DATA(ld_default_values) = ' '.
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
DATA(ld_document_info) = ' '.
 
 
DATA(ld_excl_knowledge) = ' '.
 


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!