Application Development and Automation 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: 
Read only

Material Variant Classification

Former Member
0 Likes
1,191

Hi,

Does anyone know how to get the material variant classification data for a material? I found function CLFN_VARIANT_CLASSIFICATION, but I couldn't find any documentation. I don't know how to put the parameters in this function and whether this is the right funtion.

Thanks,

Roxana.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
814

Hi,

Please check with following tables.

KLAH Class Detail

CABN Characteristic Detail

AUSP Characteristic Values

CAWN Characteristic Values

CAWNT Characteristic Value Texts

KSML Characteristic Allocation to Class

KSSK Material Allocation to Class

USE THE FOLLOWING fUNCTION MODULE TO GET THE DATA

CLAF_CLASSIFICATION_OF_OBJECTS

GIVE CLASS TYPE = 300 AND OBJECT NUMBER = MATERIAL NUMBER

EXECUTE YOU WILL GET IN TABLE T_CLASS, THE DETAILS ABOUT THE CLASS

IN TABLE T_OBJECTDATA, CHAR ASSOCIATED AND THE VALUE.

Check the link

https://forums.sdn.sap.com/click.jspa?searchID=11911947&messageID=4219775

Regards,

Raj.

2 REPLIES 2
Read only

Former Member
0 Likes
815

Hi,

Please check with following tables.

KLAH Class Detail

CABN Characteristic Detail

AUSP Characteristic Values

CAWN Characteristic Values

CAWNT Characteristic Value Texts

KSML Characteristic Allocation to Class

KSSK Material Allocation to Class

USE THE FOLLOWING fUNCTION MODULE TO GET THE DATA

CLAF_CLASSIFICATION_OF_OBJECTS

GIVE CLASS TYPE = 300 AND OBJECT NUMBER = MATERIAL NUMBER

EXECUTE YOU WILL GET IN TABLE T_CLASS, THE DETAILS ABOUT THE CLASS

IN TABLE T_OBJECTDATA, CHAR ASSOCIATED AND THE VALUE.

Check the link

https://forums.sdn.sap.com/click.jspa?searchID=11911947&messageID=4219775

Regards,

Raj.

Read only

814

Hi,

I've executed this function but the values for the characteristics are 0.

A colleague suggested today to use function CUD0_GET_VAL_FROM_INSTANCE, where:

select single cuobj from marc

into cuobj

where matnr = p_mantr

and werks = p_werks.

And it works. All the values for the characteristics are right and they match the values of the material using transaction MM03.

Regards,

Roxana.