I recently had a lot of trouble finding the requested characteristics on a specific material. For some reason the class assigned to the material didn’t contain the characteristics that I needed. I’m not an SD consultant so I had no idea where to even begin to resolve this problem. After running to every SD and MM consultant that I knew, I finally found one who helped me really quickly.
First, he indicated that there is a configurable master material that contains the characteristic class. But unfortunately that material wouldn’t contain any data as it’s the master of many child materials. After some digging he helped me find the link to MARA that CLAF_CLASSIFICATION_OF_OBJECTS for some reason couldn’t find. This function module is a result of that.
For ZIBSYMBOL I just made a copy of structure of table IBSYMBOL and added ATINN_S as a type CHAR20.
Also, keep in mind that the from field will be required for some characteristics. It’s a floating point value and will need to be converted to be readable.
|Function – Get Master Characteristic Data for a Material
*” REFERENCE(P_MATNR) TYPE MATNR
*” T_SYMBOLS TYPE ZIBSYMBOL
DATA: lv_objmara TYPE mara–cuobf,
DATA: it_symids TYPE TABLE OF IBINVALUES,
DATA: it_selsym TYPE TABLE OF selopt,
SELECT SINGLE cuobf
lv_objibin = lv_objmara.
SELECT SINGLE in_recno
SELECT * FROM ibinvalues
LOOP AT it_symids INTO wa_symids.
SELECT * FROM ibsymbol
LOOP AT t_symbols INTO w_symbols.
MODIFY t_symbols FROM w_symbols.
data : w_float type f,
w_float = wa_symbols–ATFLV.