Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Assign Object to class with characteristic values ?

Former Member
0 Kudos

Hi All,

I want to assign object to class with characteristic values. I found CL20N transaction for performing the same. Is there any BDC , BAPI to upload the same.

Thanks & Regards,

Navneeth K.

3 REPLIES 3

Former Member
0 Kudos

Hi

try this FM CLFM_OBJECT_CLASSIFICATION

Regards

Shiva

Former Member
0 Kudos

Hi Navneeth,

CLMM is the standard TCODE from SAP to perform the task you mention.

Regards,

HanKeat

Former Member
0 Kudos

Hi,

try as below



    CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
      EXPORTING
        classtext            = 'X'
        classtype            = w_classtype  "Class type 
        language             = sy-langu
        object               = w_object     "Object Matnr + Batch 
        objecttable          = 'MARA'     "As requirement
        change_service_clf   = 'X'
        inherited_char       = ' '
        change_number        = ' '
      TABLES
        t_class              = t_class
        t_objectdata         = t_objectdata
        i_sel_characteristic = i_sel_characteristic
        t_no_auth_charact    = t_no_auth_charact.
    IF sy-subrc <> 0.
    ENDIF.


*     Create with reference-----------------------
      w_objectkeynew = wa_inputfile-to_matnr.
      CALL FUNCTION 'BAPI_OBJCL_CREATE'
        EXPORTING
          objectkeynew    = w_objectkeynew
          objecttablenew  = 'MARA'
          classnumnew     = w_classnum
          classtypenew    = w_classtype
        TABLES
          allocvaluesnum  = t_allocvaluesnum
          allocvalueschar = t_allocvalueschar
          allocvaluescurr = t_allocvaluescurr
          return          = t_lreturn.

"or

BAPI_OBJCL_CHANGE              Classification BAPI: Change Assignment

Prabhudas