SAP CTWUL_CHARACT_USAGE Function Module for Where-Used List for Char. / Char. Value
CTWUL_CHARACT_USAGE is a standard ctwul charact usage SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Where-Used List for Char. / Char. Value 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 ctwul charact usage FM, simply by entering the name CTWUL_CHARACT_USAGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CTWUL
Program Name: SAPLCTWUL
Main Program: SAPLCTWUL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CTWUL_CHARACT_USAGE 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 'CTWUL_CHARACT_USAGE'"Where-Used List for Char. / Char. Value.
EXPORTING
CHARACT_NAME = "Characteristic Name
* VARIANT_TABLES = "
* PREPLAN_TABLES = "
* VARIANT_FUNCTIONS = "
* DEPENDENCIES = "
* OTHERS = "
* USE_VALUE = "
* CHARACT_VALUE = "Characteristic Value
* CLASS_TYPE = "Class Type
* DATE = "
* MAX_HITS = 100 "
* CLASSES = "
* HIERARCHIES = "
* CLASSIFICATION = "
* CONFIGURATION = "
IMPORTING
ET_CLASSES = "
ET_HIERARCHIES = "
ET_CLASSIFICATION = "
ET_CONFIGURATION = "
ET_VARIANT_TABLES = "
ET_PREPLAN_TABLES = "
ET_VARIANT_FUNCTIONS = "
ET_DEPENDENCIES = "
ET_OTHERS = "
EXCEPTIONS
CHARACT_NOT_FOUND = 1 VALUE_CONVERSION = 2 NO_AUTHORITY = 3
IMPORTING Parameters details for CTWUL_CHARACT_USAGE
CHARACT_NAME - Characteristic Name
Data type: ATNAMOptional: No
Call by Reference: No ( called with pass by value option)
VARIANT_TABLES -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
PREPLAN_TABLES -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
VARIANT_FUNCTIONS -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
DEPENDENCIES -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
OTHERS -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
USE_VALUE -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
CHARACT_VALUE - Characteristic Value
Data type: ATWRTOptional: Yes
Call by Reference: No ( called with pass by value option)
CLASS_TYPE - Class Type
Data type: KLASSENARTOptional: Yes
Call by Reference: No ( called with pass by value option)
DATE -
Data type: SYDATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
MAX_HITS -
Data type: IDefault: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLASSES -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
HIERARCHIES -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
CLASSIFICATION -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
CONFIGURATION -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CTWUL_CHARACT_USAGE
ET_CLASSES -
Data type: TT_CTWUL_OUTPUTOptional: No
Call by Reference: Yes
ET_HIERARCHIES -
Data type: TT_CTWUL_OUTPUTOptional: No
Call by Reference: Yes
ET_CLASSIFICATION -
Data type: TT_CTWUL_OUTPUTOptional: No
Call by Reference: Yes
ET_CONFIGURATION -
Data type: TT_CTWUL_OUTPUTOptional: No
Call by Reference: Yes
ET_VARIANT_TABLES -
Data type: TT_CTWUL_OUTPUTOptional: No
Call by Reference: Yes
ET_PREPLAN_TABLES -
Data type: TT_CTWUL_OUTPUTOptional: No
Call by Reference: Yes
ET_VARIANT_FUNCTIONS -
Data type: TT_CTWUL_OUTPUTOptional: No
Call by Reference: Yes
ET_DEPENDENCIES -
Data type: TT_CTWUL_OUTPUTOptional: No
Call by Reference: Yes
ET_OTHERS -
Data type: TT_CTWUL_OUTPUTOptional: No
Call by Reference: Yes
EXCEPTIONS details
CHARACT_NOT_FOUND - Characteristic Does Not Exist
Data type:Optional: No
Call by Reference: Yes
VALUE_CONVERSION -
Data type:Optional: No
Call by Reference: Yes
NO_AUTHORITY - No Authorization
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CTWUL_CHARACT_USAGE 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_et_classes | TYPE TT_CTWUL_OUTPUT, " | |||
| lv_charact_name | TYPE ATNAM, " | |||
| lv_charact_not_found | TYPE ATNAM, " | |||
| lv_variant_tables | TYPE FLAG, " | |||
| lv_preplan_tables | TYPE FLAG, " | |||
| lv_variant_functions | TYPE FLAG, " | |||
| lv_dependencies | TYPE FLAG, " | |||
| lv_others | TYPE FLAG, " | |||
| lv_use_value | TYPE FLAG, " | |||
| lv_charact_value | TYPE ATWRT, " | |||
| lv_et_hierarchies | TYPE TT_CTWUL_OUTPUT, " | |||
| lv_value_conversion | TYPE TT_CTWUL_OUTPUT, " | |||
| lv_class_type | TYPE KLASSENART, " | |||
| lv_no_authority | TYPE KLASSENART, " | |||
| lv_et_classification | TYPE TT_CTWUL_OUTPUT, " | |||
| lv_date | TYPE SYDATUM, " | |||
| lv_et_configuration | TYPE TT_CTWUL_OUTPUT, " | |||
| lv_max_hits | TYPE I, " 100 | |||
| lv_et_variant_tables | TYPE TT_CTWUL_OUTPUT, " | |||
| lv_classes | TYPE FLAG, " | |||
| lv_et_preplan_tables | TYPE TT_CTWUL_OUTPUT, " | |||
| lv_hierarchies | TYPE FLAG, " | |||
| lv_et_variant_functions | TYPE TT_CTWUL_OUTPUT, " | |||
| lv_classification | TYPE FLAG, " | |||
| lv_et_dependencies | TYPE TT_CTWUL_OUTPUT, " | |||
| lv_et_others | TYPE TT_CTWUL_OUTPUT, " | |||
| lv_configuration | TYPE FLAG. " |
|   CALL FUNCTION 'CTWUL_CHARACT_USAGE' "Where-Used List for Char. / Char. Value |
| EXPORTING | ||
| CHARACT_NAME | = lv_charact_name | |
| VARIANT_TABLES | = lv_variant_tables | |
| PREPLAN_TABLES | = lv_preplan_tables | |
| VARIANT_FUNCTIONS | = lv_variant_functions | |
| DEPENDENCIES | = lv_dependencies | |
| OTHERS | = lv_others | |
| USE_VALUE | = lv_use_value | |
| CHARACT_VALUE | = lv_charact_value | |
| CLASS_TYPE | = lv_class_type | |
| DATE | = lv_date | |
| MAX_HITS | = lv_max_hits | |
| CLASSES | = lv_classes | |
| HIERARCHIES | = lv_hierarchies | |
| CLASSIFICATION | = lv_classification | |
| CONFIGURATION | = lv_configuration | |
| IMPORTING | ||
| ET_CLASSES | = lv_et_classes | |
| ET_HIERARCHIES | = lv_et_hierarchies | |
| ET_CLASSIFICATION | = lv_et_classification | |
| ET_CONFIGURATION | = lv_et_configuration | |
| ET_VARIANT_TABLES | = lv_et_variant_tables | |
| ET_PREPLAN_TABLES | = lv_et_preplan_tables | |
| ET_VARIANT_FUNCTIONS | = lv_et_variant_functions | |
| ET_DEPENDENCIES | = lv_et_dependencies | |
| ET_OTHERS | = lv_et_others | |
| EXCEPTIONS | ||
| CHARACT_NOT_FOUND = 1 | ||
| VALUE_CONVERSION = 2 | ||
| NO_AUTHORITY = 3 | ||
| . " CTWUL_CHARACT_USAGE | ||
ABAP code using 7.40 inline data declarations to call FM CTWUL_CHARACT_USAGE
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_max_hits) | = 100. | |||
Search for further information about these or an SAP related objects