SAP CLFM_OBJECTS_CLASSIFICATION Function Module for









CLFM_OBJECTS_CLASSIFICATION is a standard clfm objects classification 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 clfm objects classification FM, simply by entering the name CLFM_OBJECTS_CLASSIFICATION into the relevant SAP transaction such as SE37 or SE38.

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



Function CLFM_OBJECTS_CLASSIFICATION 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 'CLFM_OBJECTS_CLASSIFICATION'"
EXPORTING
CLASSTYPE = "Class type
PRUEFEN = "Test for same classification
SICHT = "Organizational area
* STATUS = ' ' "Status 2=change 3=display
TABLE = "Table name of classifiable object
* TYPETEXT = ' ' "Class type text
* CHANGE_SERVICE_NUMBER = "Change number
* DATE_OF_CHANGE = "Change date
* HIERARCHY_ALLOWED = "
* I_EFFECTIVITY_USED = ' ' "
CLASS_ONLY = "Select classes only
CLINTN = "Internal class number
* KLAH_MEINS = ' ' "Unit of measure for materials
* KLAH_VWSTL = ' ' "Indicator: use in BOMs
* MULTI_CLASSIF = ' ' "X multiple classification allowed
* MULT_OBJ = ' ' "Several objects allowed
OBJECT = "Start class
* OBJTXT = ' ' "Class description

IMPORTING
OK_CODE = "OK code
UPDATEFLAG = "X if changes to classification data

EXCEPTIONS
CHANGE_NR_CHANGED = 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_SAPLCLFM_001 Influences Class and Value Assignment
EXIT_SAPLCLFM_002 Customer Exit for Changing Classification Data Before Saving
EXIT_SAPLCLFM_003 Customer Exit After Check on Assigned Characteristic Values

IMPORTING Parameters details for CLFM_OBJECTS_CLASSIFICATION

CLASSTYPE - Class type

Data type: RMCLF-KLART
Optional: No
Call by Reference: No ( called with pass by value option)

PRUEFEN - Test for same classification

Data type: KLAH-PRAUS
Optional: No
Call by Reference: No ( called with pass by value option)

SICHT - Organizational area

Data type: KLAH-SICHT
Optional: No
Call by Reference: No ( called with pass by value option)

STATUS - Status 2=change 3=display

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

TABLE - Table name of classifiable object

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

TYPETEXT - Class type text

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

CHANGE_SERVICE_NUMBER - Change number

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

DATE_OF_CHANGE - Change date

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

HIERARCHY_ALLOWED -

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

I_EFFECTIVITY_USED -

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

CLASS_ONLY - Select classes only

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

CLINTN - Internal class number

Data type: KSSK-CLINT
Optional: No
Call by Reference: No ( called with pass by value option)

KLAH_MEINS - Unit of measure for materials

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

KLAH_VWSTL - Indicator: use in BOMs

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

MULTI_CLASSIF - X multiple classification allowed

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

MULT_OBJ - Several objects allowed

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

OBJECT - Start class

Data type: RMCLF-CLASN
Optional: No
Call by Reference: No ( called with pass by value option)

OBJTXT - Class description

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

EXPORTING Parameters details for CLFM_OBJECTS_CLASSIFICATION

OK_CODE - OK code

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

UPDATEFLAG - X if changes to classification data

Data type: RMCLK-UPDAT
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

CHANGE_NR_CHANGED -

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

Copy and paste ABAP code example for CLFM_OBJECTS_CLASSIFICATION 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_ok_code  TYPE SY-UCOMM, "   
lv_classtype  TYPE RMCLF-KLART, "   
lv_change_nr_changed  TYPE RMCLF, "   
lv_pruefen  TYPE KLAH-PRAUS, "   
lv_sicht  TYPE KLAH-SICHT, "   
lv_status  TYPE KLAH, "   SPACE
lv_table  TYPE KLAH, "   
lv_typetext  TYPE RMCLF-ARTXT, "   SPACE
lv_change_service_number  TYPE RMCLF-AENNR1, "   
lv_date_of_change  TYPE RMCLF-DATUV1, "   
lv_hierarchy_allowed  TYPE TCLA-HIERARCHIE, "   
lv_i_effectivity_used  TYPE TCLA-EFFE_ACT, "   SPACE
lv_class_only  TYPE TCLA, "   
lv_updateflag  TYPE RMCLK-UPDAT, "   
lv_clintn  TYPE KSSK-CLINT, "   
lv_klah_meins  TYPE KLAH-MEINS, "   SPACE
lv_klah_vwstl  TYPE KLAH-VWSTL, "   SPACE
lv_multi_classif  TYPE KLAH, "   SPACE
lv_mult_obj  TYPE TCLA-MULTOBJ, "   SPACE
lv_object  TYPE RMCLF-CLASN, "   
lv_objtxt  TYPE RMCLF-KTEXT. "   SPACE

  CALL FUNCTION 'CLFM_OBJECTS_CLASSIFICATION'  "
    EXPORTING
         CLASSTYPE = lv_classtype
         PRUEFEN = lv_pruefen
         SICHT = lv_sicht
         STATUS = lv_status
         TABLE = lv_table
         TYPETEXT = lv_typetext
         CHANGE_SERVICE_NUMBER = lv_change_service_number
         DATE_OF_CHANGE = lv_date_of_change
         HIERARCHY_ALLOWED = lv_hierarchy_allowed
         I_EFFECTIVITY_USED = lv_i_effectivity_used
         CLASS_ONLY = lv_class_only
         CLINTN = lv_clintn
         KLAH_MEINS = lv_klah_meins
         KLAH_VWSTL = lv_klah_vwstl
         MULTI_CLASSIF = lv_multi_classif
         MULT_OBJ = lv_mult_obj
         OBJECT = lv_object
         OBJTXT = lv_objtxt
    IMPORTING
         OK_CODE = lv_ok_code
         UPDATEFLAG = lv_updateflag
    EXCEPTIONS
        CHANGE_NR_CHANGED = 1
. " CLFM_OBJECTS_CLASSIFICATION




ABAP code using 7.40 inline data declarations to call FM CLFM_OBJECTS_CLASSIFICATION

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 UCOMM FROM SY INTO @DATA(ld_ok_code).
 
"SELECT single KLART FROM RMCLF INTO @DATA(ld_classtype).
 
 
"SELECT single PRAUS FROM KLAH INTO @DATA(ld_pruefen).
 
"SELECT single SICHT FROM KLAH INTO @DATA(ld_sicht).
 
DATA(ld_status) = ' '.
 
 
"SELECT single ARTXT FROM RMCLF INTO @DATA(ld_typetext).
DATA(ld_typetext) = ' '.
 
"SELECT single AENNR1 FROM RMCLF INTO @DATA(ld_change_service_number).
 
"SELECT single DATUV1 FROM RMCLF INTO @DATA(ld_date_of_change).
 
"SELECT single HIERARCHIE FROM TCLA INTO @DATA(ld_hierarchy_allowed).
 
"SELECT single EFFE_ACT FROM TCLA INTO @DATA(ld_i_effectivity_used).
DATA(ld_i_effectivity_used) = ' '.
 
 
"SELECT single UPDAT FROM RMCLK INTO @DATA(ld_updateflag).
 
"SELECT single CLINT FROM KSSK INTO @DATA(ld_clintn).
 
"SELECT single MEINS FROM KLAH INTO @DATA(ld_klah_meins).
DATA(ld_klah_meins) = ' '.
 
"SELECT single VWSTL FROM KLAH INTO @DATA(ld_klah_vwstl).
DATA(ld_klah_vwstl) = ' '.
 
DATA(ld_multi_classif) = ' '.
 
"SELECT single MULTOBJ FROM TCLA INTO @DATA(ld_mult_obj).
DATA(ld_mult_obj) = ' '.
 
"SELECT single CLASN FROM RMCLF INTO @DATA(ld_object).
 
"SELECT single KTEXT FROM RMCLF INTO @DATA(ld_objtxt).
DATA(ld_objtxt) = ' '.
 


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!