物料特性的特性值存储在AUSP表中,字段OBJEK的值等于物料编号,通过这个关系可以找到物料相对于的特性值。
或者可以通过函数
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
class = l_class
classtext = 'X'
classtype = l_classtype
clint = 0
features = 'X'
language = sy-langu
object = l_objek
key_date = sy-datum
initial_charact = 'X'
change_service_clf = 'X'
TABLES
t_class = t_class
t_objectdata = t_objectdata
EXCEPTIONS
no_classification = 1
no_classtypes = 2
invalid_class_type = 3
OTHERS = 4.
来获得特性值
SAP Classification 为了方便查询定义的一套技术体系。其实是建立了一个大树(根节点在上面),大致层次 Class Type>Class>characteristics .参见下图:
The classification system allows you to use characteristics to describe all types of objects, and to group similar objects in classes – to classify objects, in other words, so that you can find them more easily later.
You then use the classes to help you to find objects more easily, using the characteristics defined in them as search criteria. This ensures that you can find objects with similar or identical characteristics as quickly as possible.
Before you can use classification functions, you need to set up your classification system.
The there are three steps to setting up a classification system:
...
1、 Defining the Properties of Objects
You use characteristics to describe the properties of objects. You create characteristics centrally in the system.
See the SAP Library, Characteristics (CA-CL-CHR).
2、 Creating Classes
You need classes to classify objects. These classes must be set up. During set up you must assign characteristics to the classes.
3、 Assigning Objects
Once you have created the classes you require for classification, you can assign objects to these classes. You use the characteristics of the class to describe the objects you classify.
三、示例
通过分类中的自定义特征(Characteristics)来对物料、客户、供应商、文档、批次、检验特性等进行自定义分类,系统通过类类型Class Type来区分不同的应用,譬如类类型001为物料分类,类类型010为供应商分类,类类型022/023为批次分类。
Characteristic是sap用来描述物料特性的,这里所说的物料包含原材料,机械设备等。
对于一个原材料,它的密度,比热,存储温度等都是它的特性。可以根据这个原材料的特性来判断它生产出来的产品的等级。
对于一台机械设备,它的功耗,一次最长使用时间,以及生产的产品规格等都是它的属性。可以根据它的特性来制定生产计划,工艺流程等。
这就是Characteristic存在的意义。
通常的过程是 创建一个或多个Characteristics(CT04),把它组合成一个Class(即分配给一个或多个Class)(CL01/CL02),然后将这个包含多个特性的class分配给Material。即维护的MM01 Create Material时的Classification View.
Table: CABN – Characteristic
KLAH – Class Header Data
KSSK – Allocation Table: Object to Class
T-cd: CT04 – Create/change the characteristics
CL01/ CL02/ CL03 – Create/change/display the class
四 、其它参考
官方介绍: http://help.sap.com/saphelp_erp60_sp/helpdata/en/24/47633a416711d189ec0000e81ddfac/frameset.htm
应用介绍: http://mfg.kingdee.com/pages/frankyue2001/blog/archive/2011/05/10/546231.aspx