SAP classification (material characteristics)

Source: Internet
Author: User

Post transferred fromHttp://blog.csdn.net/wengyupeng/article/details/6418559? Reload

 

SAP classification is a technical system defined to facilitate queries. In fact, a big tree is built (the root node is above), with a general level of class type> class> characteristics. See:

I. Purpose

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 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
Possible.

Ii. Features

Before you can use classification functions, you need to set up your classification system.

The there are three steps tosetting 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.

Iii. Example

You can use characteristics to customize materials, customers, suppliers, documents, batches, and inspection features, the system classifies different applications by class type. For example, class 001 is a material classification, class 010 is a supplier classification, and class 022/023 is a batch classification.

Characteristic is used by SAP to describe material characteristics. The materials mentioned here include raw materials and mechanical equipment.

For a raw material, its density, specific heat, and storage temperature are all of its characteristics. The product level produced by this raw material can be determined based on its characteristics.

For a mechanical device, its power consumption, maximum usage time at a time, and product specifications are all its attributes. The production plan and process can be developed based on its characteristics.

This is the meaning of characteristic existence.

The general process is to create one or more characteristics (ct04) and combine it into a class (that is, assign it to one or more classes) (cl01/cl02 ), then assign the class containing multiple features to material. That is, the classification view during the mm01 create material maintenance.

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

IV. Other References

Official introduction:

Http://help.sap.com/saphelp_erp60_sp/helpdata/en/24/47633a416711d189ec0000e81ddfac/frameset.htm

Application Introduction:

Http://mfg.kingdee.com/pages/frankyue2001/blog/archive/2011/05/10/546231.aspx

 

 

 

Post transferred from

Http://www.cnblogs.com/t-bug/archive/2012/05/17/2505938.html

Bapi:

Bapi_objcl_getdetail read Classification

Bapi_objcl_change modify Classification

If the classification of the material master data does not exist,

Update the pstat and vpsta fields in Mara and add 'C' to the string.

The concatenate wa_mara-pstat 'C' into wa_mara-pstat.
The concatenate wa_mara-vpsta 'C' into wa_mara-vpsta.

Data: wa_class_char like upper, "Alphanumeric values like lower," currency values like bapiret2. "error messages I _class_num like table of lower, I _class_char like table of lower, wait like table of lower, I _class_err like table of wa_class_err. * 'C' indicates classificationfind 'C' in wa_mara-vpsta.IF sy-subrc <> 0. the concatenate wa_mara-pstat 'C' into wa_mara-pstat. the concatenate wa_mara-vpsta 'C' into wa_mara-vpsta.ELSE. * Call function 'bapi _ objcl_getdetail 'exportobjectkey = g_objectkey objecttable = 'mara' classnum = 'matl _ info' classtype = '001' * keydate = SY-DATUM * unvaluated_chars = ''' * language = SY-LANGU * importing * status = * standardclass = tables allocvaluesnum = I _class_num allocvalueschar = I _class_char allocvaluescurr = I _class_curr return = I _class_err. endif. * modify *** modify or add classification ** modify ** update classification call function 'bapi _ objcl_change 'exporting objectkey = g_objectkey objecttable = 'mara' classnum = 'matl _ info' classtype = '001' * status = '1' * standardclass = * changenumber = * keydate = SY-DATUM * Comment = ''* importing * classif_status = tables allocvaluesnumnew = I _class_num allocvaluescharnew = I _class_char comment = comment return = I _class_err. read Table I _class_err into wa_class_err with key type = 'E '. if syst-subrc = 0. call function 'bapi _ transaction_rollback '. else. else. * ***** update Mara tbale *********** update Mara from wa_mara. call function 'bapi _ transaction_commit '. endif.

 

 

Article from http://blog.sina.com.cn/s/blog_701594f40100l8gy.html

Form create_batch_classfication using p_werks
P_matnr
P_charg
P_value1
P_value2
Changing ex_error_flag.
Data: objectkey like BAPI1003_KEY-OBJECT,
Objectkeytable like table of bapi1003_object_keys with header line,
Allocvaluesnumnew like table of bapi1003_alloc_values_num with header line,
Allocvaluescharnew like table of bapi1003_alloc_values_char with header line,
Allocvaluescurrnew like table of bapi1003_alloc_values_curr with header line,
Return like table of bapiret2 with header line.
Clear: objectkey, objectkeytable, objectkeytable [],
Allocvaluesnumnew, allocvaluesnumnew [],
Return.
Data: l_matnr like Mara-matnr,
Rochelle charg like aufm-charg,
Rochelle werks like aufm-werks.
Rochelle matnr =P_matnr.
Rochelle charg =P_charg.
Rochelle werks =P_werks.
Objectkeytable-key_field = 'matnr '.
Objectkeytable-value_int = maid.
Append objectkeytable.
Objectkeytable-key_field = 'charg '.
Objectkeytable-value_int = maid.
Append objectkeytable.
* Only if batch management is plant dependant
Objectkeytable-key_field = 'werk '.
Objectkeytable-value_int = l_werks.
Append objectkeytable.
Call function 'bapi _ objcl_concatenatekey'
Exporting
Objecttable= 'Mcallback' "-objecttable
Importing
Objectkey_conc = objectkey
Tables
Objectkeytable = objectkeytable
Return= Return.
*Allocvaluesnumnew-charact = "characteristic name goes here ".
*Allocvaluesnumnew-value_from = "characteristic value goes here ".
*Append allocvaluesnumnew.
*Allocvaluesnumnew-charact ='Z _ batch_cnpc_001 '.
*Allocvaluesnumnew-value_from ='123 '.
*Append allocvaluesnumnew.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.