SAP Function Modules

CLFM_CLASS_CLASSIFICATION SAP Function module







CLFM_CLASS_CLASSIFICATION is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CLFM_CLASS_CLASSIFICATION into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CLFM
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CLFM_CLASS_CLASSIFICATION - CLFM CLASS CLASSIFICATION





CALL FUNCTION 'CLFM_CLASS_CLASSIFICATION' "
  EXPORTING
    classtype =                 " rmclf-klart   Class type
    clintn =                    " kssk-clint    internal class number
*   klah_vwstl = SPACE          " klah-vwstl    Use in BOMs
*   multi_classif = SPACE       "               X multiple classification allowed
    object =                    " rmclf-clasn   Start class for CL21
*   objtxt = SPACE              " rmclf-ktext   Class text
*   status = SPACE              "               Status 2=Change 3=Display
*   table = SPACE               "               Object which can be classified
*   typetext = SPACE            " rmclf-artxt   Class type text
*   change_service_number =     " rmclf-aennr1  Change Number
*   date_of_change =            " rmclf-datuv1  Change date
*   i_effectivity_used = SPACE  " tcla-effe_act
  IMPORTING
    ok_code =                   " sy-ucomm      OK code
    updateflag =                " rmclk-updat   X if changes in classification
  EXCEPTIONS
    CHANGE_NR_CHANGED = 1       "
    CHANGE_NR_SAME_DATE = 2     "
    .  "  CLFM_CLASS_CLASSIFICATION

ABAP code example for Function Module CLFM_CLASS_CLASSIFICATION





The ABAP code below is a full code listing to execute function module CLFM_CLASS_CLASSIFICATION including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_ok_code  TYPE SY-UCOMM ,
ld_updateflag  TYPE RMCLK-UPDAT .


DATA(ld_classtype) = some text here

SELECT single CLINT
FROM KSSK
INTO @DATA(ld_clintn).


SELECT single VWSTL
FROM KLAH
INTO @DATA(ld_klah_vwstl).

DATA(ld_multi_classif) = 'some text here'.

DATA(ld_object) = some text here

DATA(ld_objtxt) = some text here
DATA(ld_status) = 'some text here'.
DATA(ld_table) = 'some text here'.

DATA(ld_typetext) = some text here

DATA(ld_change_service_number) = some text here

DATA(ld_date_of_change) = 20210129

SELECT single EFFE_ACT
FROM TCLA
INTO @DATA(ld_i_effectivity_used).
. CALL FUNCTION 'CLFM_CLASS_CLASSIFICATION' EXPORTING classtype = ld_classtype clintn = ld_clintn * klah_vwstl = ld_klah_vwstl * multi_classif = ld_multi_classif object = ld_object * objtxt = ld_objtxt * status = ld_status * table = ld_table * typetext = ld_typetext * change_service_number = ld_change_service_number * date_of_change = ld_date_of_change * i_effectivity_used = ld_i_effectivity_used IMPORTING ok_code = ld_ok_code updateflag = ld_updateflag EXCEPTIONS CHANGE_NR_CHANGED = 1 CHANGE_NR_SAME_DATE = 2 . " CLFM_CLASS_CLASSIFICATION
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ok_code  TYPE SY-UCOMM ,
ld_classtype  TYPE RMCLF-KLART ,
ld_updateflag  TYPE RMCLK-UPDAT ,
ld_clintn  TYPE KSSK-CLINT ,
ld_klah_vwstl  TYPE KLAH-VWSTL ,
ld_multi_classif  TYPE STRING ,
ld_object  TYPE RMCLF-CLASN ,
ld_objtxt  TYPE RMCLF-KTEXT ,
ld_status  TYPE STRING ,
ld_table  TYPE STRING ,
ld_typetext  TYPE RMCLF-ARTXT ,
ld_change_service_number  TYPE RMCLF-AENNR1 ,
ld_date_of_change  TYPE RMCLF-DATUV1 ,
ld_i_effectivity_used  TYPE TCLA-EFFE_ACT .


ld_classtype = some text here

SELECT single CLINT
FROM KSSK
INTO ld_clintn.


SELECT single VWSTL
FROM KLAH
INTO ld_klah_vwstl.

ld_multi_classif = 'some text here'.

ld_object = some text here

ld_objtxt = some text here
ld_status = 'some text here'.
ld_table = 'some text here'.

ld_typetext = some text here

ld_change_service_number = some text here

ld_date_of_change = 20210129

SELECT single EFFE_ACT
FROM TCLA
INTO ld_i_effectivity_used.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CLFM_CLASS_CLASSIFICATION or its description.