2008 Feb 11 3:00 PM
Hi All,
i need FM to read classification deatils of a material based on classtype.
ex: in mm02 if u enter any material number and enter, we ll see the material and below that class type (description as material class).Based on this class type i need fetch the classification data of a perticular material.
kindly let me knoa ASAP.
Thaks
Sri
2008 Feb 11 3:14 PM
2008 Feb 11 3:25 PM
Hello,
Use the BAPI:
CALL FUNCTION 'BAPI_OBJCL_GETCLASSES'
EXPORTING
OBJECTKEY_IMP = L_OBJECT " Material Number
OBJECTTABLE_IMP = L_OBJECTTABLE " MARA
CLASSTYPE_IMP = L_CLASSTYPE
READ_VALUATIONS = 'X'
KEYDATE = SY-DATUM
LANGUAGE = SY-LANGU
TABLES
ALLOCLIST = L_ALLOC
ALLOCVALUESCHAR = L_VALUES_CHAR
ALLOCVALUESCURR = L_VALUES_CURR
ALLOCVALUESNUM = L_VALUES_NUM
RETURN = L_RETURN.
Regards,
Vasanth
2009 Jun 18 12:28 PM