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: 

need FM to read classification deatils of a material based on classtype

Former Member
0 Kudos
294

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

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos
46

May be try with fm

CLAF_CLASSIFICATION_OF_OBJECTS

Former Member
0 Kudos
46

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

Former Member
0 Kudos
46

not answered