01-14-2005 11:14 AM
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.
01-14-2005 11:57 AM
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.
01-14-2005 4:42 PM
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
01-18-2005 3:34 PM
Hi Shekar,
Did our responses help you? If so, could you please reward points and close the question?
Regards,
Srinivas