on 03-16-2009 12:55 PM
Hi developers,
I need to read the classification item of a material.
How can I do that?
Thanks,
Simone
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try FM : CLAF_CLASSIFICATION_OF_OBJECTS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this Class - CLAF_CLASSIFICATION_OF_OBJECTS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.