*通过物料分类中特性值倒查某一类的物料,如果通过function( CLAF_CLASSIFICATION_OF_OBJECTS )取所有物料特性值会比较慢。通过这三个表取比较快,但同事说有可能会有误,有待朋友们验证和补充。
SELECT mara~matnr inob~cuobj ausp~atwrt
INTO TABLE it_mara
FROM mara
INNER JOIN inob ON inob~objek = mara~matnr
INNER JOIN ausp ON ausp~objek = inob~cuobj AND
ausp~klart = inob~klart
WHERE
* inob~OBJEK in ('1000-00466','1100-00001','1000-01145') and
inob~klart = 'M03' AND
ausp~atinn = '0000016070' "特性代码
AND ausp~atwrt = 'SJ01'. "特性值