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: 

Classification Characteristic Long text

Former Member
0 Kudos

Hello,

I am using a function module to get the classification object for a material. claf_objects_of_class. I am getting the characteristic value however i want to read the long text attached to it.

For eg. Matnr 17897 has a classification maintained as class Material_Special

Characteristics : Perfume 1257

and now this has a long text PF Concentration 10.2.

By using the fm i am getting only perfume 1257 is there any other function module by which i can read the text directly or will i have to use read_text and then use the header data to read the text.

3 REPLIES 3

Former Member
0 Kudos

If it is a long text, you have to use <b>READ_TEXT</b>, but if it is a attribute maintained for a class attached to a material, you can get that information from the FM you mentioned, <b>'CLAF_CLASSIFICATION_OF_OBJECTS'</b>.

Regards,

Subramanian V.

Former Member

Hi Shekhar,

With both the function modules (one you used and the one Subramanyam suggested) gives you value description or value(only one of them) depending on whether you set the value of the parameter 'NO_VALUE_DESCRIPT' to blank or 'X'. If you want both, then get the value using the function module and then go to CAWNT table to get the value descriptions.

Now if a particular characeteristic value has long text associated with it, then you can use the BAPI BAPI_CHARACT_GETLONGTEXT. This will give you the long text associated with the characeristic or its value.

Let us know if this helped.

Srinivas

Former Member
0 Kudos

Hi Shekar,

Did our responses help you? If so, could you please reward points and close the question?

Regards,

Srinivas