Skip to Content
0
Former Member
Sep 08, 2009 at 07:19 AM

Use of function CLFM_OBJECT_CLASSIFICATION

446 Views

Hi,

I create, with MM01, a material LAODS10012.

It's necessary that a material suffixed by '00' exist in MARA : LAODS10000.

LAODS10000 has two classes in classification view : PLANNED and OBJECT.

During the creation, a class ME_MATERIAL was created for material LAODS10012 with one characteristic MER.

This characteristic exists in the class PLANNED of material LAODS10000 ; I want to retrieve it.

I use the function CLFM_OBJECT_CLASSIFICATION with following parameters :

CALL FUNCTION 'CLFM_OBJECT_CLASSIFICATION'
EXPORTING
class                    = 'me_material'
classtype                = 'z01'
initflag                 = 'x'
meins                    = e_marau-meins
multi_classif            = space
object                   = 'LAODS10012'
objtxt                   = w_makt_maktx
ptable                   = 'MARA'
ref_object               = 'LAODS10000'
ref_datuv                = sy-datum
status                   = '1'
table                    = 'MARA'
language                 = sy-langu
IMPORTING
class                    = class
classtype                = classtype
class_text               = class_text
ok_code                  = ok_code
typetext                 = typetext
updateflag               = updateflag
update_per_call          = update_per_call
internal_obj_number      = internal_obj_number
same_classify_by_copy    = same_classify_by_copy
EXCEPTION....

For material LAODS10012, the characteristic MER of class ME_MATERIAL id filled.

On the other hand, the class OBJECT of material LAODS10000 is copied in classification view of material LAODS10012 when I don't want it.

This function with same parameters operates with an other material type and other classes.

Can you help me ?

Thanks,

Janny73