SAP CLMU_USAGE_OF_UDEF_CLASS Function Module for Where-Used List for Class in User-Defined Data Type
CLMU_USAGE_OF_UDEF_CLASS is a standard clmu usage of udef class 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 Class in User-Defined Data Type 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 clmu usage of udef class FM, simply by entering the name CLMU_USAGE_OF_UDEF_CLASS into the relevant SAP transaction such as SE37 or SE38.
Function Group: CLMU
Program Name: SAPLCLMU
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CLMU_USAGE_OF_UDEF_CLASS 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 'CLMU_USAGE_OF_UDEF_CLASS'"Where-Used List for Class in User-Defined Data Type.
EXPORTING
CLASSNUMBER = "Internal Class Number
* KEY_DATE = SY-DATUM "Valid-From Date
CLASSTYPE = "Class Type
* CHARACTERISTIC_ONLY = ' ' "Only Check Use in Characteristics
* FLG_EFFECTIVITY = ' ' "
TABLES
* TCLASS = "Transfer Table for Classes
EXCEPTIONS
INVALID_CLASSTYPE = 1 NO_USAGE_FOUND = 2
IMPORTING Parameters details for CLMU_USAGE_OF_UDEF_CLASS
CLASSNUMBER - Internal Class Number
Data type: KLAH-CLINTOptional: No
Call by Reference: No ( called with pass by value option)
KEY_DATE - Valid-From Date
Data type: KSML-DATUVDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLASSTYPE - Class Type
Data type: KLAH-KLARTOptional: No
Call by Reference: No ( called with pass by value option)
CHARACTERISTIC_ONLY - Only Check Use in Characteristics
Data type: RMCLM-BASISDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_EFFECTIVITY -
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CLMU_USAGE_OF_UDEF_CLASS
TCLASS - Transfer Table for Classes
Data type: CLCLASSOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_CLASSTYPE - No Class Type for User-Defined Data Type
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_USAGE_FOUND - No Uses Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CLMU_USAGE_OF_UDEF_CLASS 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: | ||||
| lt_tclass | TYPE STANDARD TABLE OF CLCLASS, " | |||
| lv_classnumber | TYPE KLAH-CLINT, " | |||
| lv_invalid_classtype | TYPE KLAH, " | |||
| lv_key_date | TYPE KSML-DATUV, " SY-DATUM | |||
| lv_no_usage_found | TYPE KSML, " | |||
| lv_classtype | TYPE KLAH-KLART, " | |||
| lv_characteristic_only | TYPE RMCLM-BASISD, " SPACE | |||
| lv_flg_effectivity | TYPE SY-BATCH. " SPACE |
|   CALL FUNCTION 'CLMU_USAGE_OF_UDEF_CLASS' "Where-Used List for Class in User-Defined Data Type |
| EXPORTING | ||
| CLASSNUMBER | = lv_classnumber | |
| KEY_DATE | = lv_key_date | |
| CLASSTYPE | = lv_classtype | |
| CHARACTERISTIC_ONLY | = lv_characteristic_only | |
| FLG_EFFECTIVITY | = lv_flg_effectivity | |
| TABLES | ||
| TCLASS | = lt_tclass | |
| EXCEPTIONS | ||
| INVALID_CLASSTYPE = 1 | ||
| NO_USAGE_FOUND = 2 | ||
| . " CLMU_USAGE_OF_UDEF_CLASS | ||
ABAP code using 7.40 inline data declarations to call FM CLMU_USAGE_OF_UDEF_CLASS
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 CLINT FROM KLAH INTO @DATA(ld_classnumber). | ||||
| "SELECT single DATUV FROM KSML INTO @DATA(ld_key_date). | ||||
| DATA(ld_key_date) | = SY-DATUM. | |||
| "SELECT single KLART FROM KLAH INTO @DATA(ld_classtype). | ||||
| "SELECT single BASISD FROM RMCLM INTO @DATA(ld_characteristic_only). | ||||
| DATA(ld_characteristic_only) | = ' '. | |||
| "SELECT single BATCH FROM SY INTO @DATA(ld_flg_effectivity). | ||||
| DATA(ld_flg_effectivity) | = ' '. | |||
Search for further information about these or an SAP related objects