cancel
Showing results for 
Search instead for 
Did you mean: 

How to read classification

Former Member
0 Kudos

Hi developers,

I need to read the classification item of a material.

How can I do that?

Thanks,

Simone

Accepted Solutions (1)

Accepted Solutions (1)

RoySayak
Active Participant
0 Kudos

Hi Simone,

You can find out from table CABN and AUSP.

Below code snippet may help you..

*--- Build internal table IT_AUSP based on Characteristic Name,
*--- Internal characteristic value, Indicator(Class/Object) and Class Type
  IF it_objek[] IS NOT INITIAL.
    SELECT SINGLE atinn                     "Internal characteristic
             FROM cabn
             INTO v_atinn
             WHERE atnam = 'Z_001_CLASS'.  "Your class name of the material
    IF sy-subrc IS INITIAL.
      SORT it_objek BY objek.
      DELETE ADJACENT DUPLICATES FROM it_objek.
      SELECT objek                          "Key of object to be classified
                    atwrt                           "Characteristic Value
        FROM ausp
        INTO TABLE it_ausp
        FOR ALL ENTRIES IN it_objek
        WHERE objek = it_objek-objek
          AND atinn = v_atinn
          AND mafid = 'O'                   "Indicator: Object/Class
          AND klart = '001'.                 "Class Type
    ENDIF.
  ENDIF.

Best Regards,

Sayak

Answers (3)

Answers (3)

Sandeep_Kumar
Advisor
Advisor
0 Kudos

try FM : CLAF_CLASSIFICATION_OF_OBJECTS.

Former Member
0 Kudos

Hi,

You can use transaction CT04 to see all the classifications defiend in system so far.

Also for a particular object or material you can see the classification/class CT04 CL02 transactions.

Vishal

amit_khare
Active Contributor
0 Kudos

Try this Class - CLAF_CLASSIFICATION_OF_OBJECTS

Former Member
0 Kudos

HI,

Refer to this link..

Edited by: Avinash Kodarapu on Mar 16, 2009 6:29 PM