加入新定价字段按ECC6.0系统帮助即可,步骤如下:
In the first example, parts of a document field are to be used in pricing. You want to use the first three digits of the product hierarchy (PRODH) for pricing, for example. Proceed as follows:
- 1. Check the data elements in the standard system.
- 2. Since there is no such data element you have to create the new data element ZZPRODH1. Also create a domain with the length "3" and the data type "CHAR" for the new data element.
- Remember that new data fields must start with the letters "ZZ" or "YY", since SAP reserved these letters to protect them from being overwritten during a release upgrade.
- 3. Check whether the product hierarchy (PRODH) is found at header or at item level.
- In table VBAP, document field PRODH is defined as an item field.
- 4. Integrate the field name ZZPRODH in the communication structure KOMP using the INCLUDE KOMPAZ and allocate the data element PRODH to it.
- 5. Activate the structure.
- 6. Check in which table the field PRODH exists.
- The field is in table VBAP (sales document: item data).
- 7. Assign a value to the new field in the FORM. routines for sales order processing and billing using the appropriate user exits:
- In sales order processing the user exit is found in member MV45AFZZ. The complete statement is:
- FORM. USEREXIT_PRICING_PREPARE_TKOMP.
- MOVE VBAP-PRODH(3) TO TKOMP-ZZPRODH.
- ENDFORM.
- The routines for assigning a value to the new fields in billing are found in member RV60AFZZ. The statement is as follows:
- FORM. USEREXIT_PRICING_PREPARE_TKOMK
- MOVE XVBRP-PRODH(3) TO TKOMP-ZZPRODH.
- ENDFORM.
- 8. Allocate the specifications A, V and 001 to the field ZZPRODH in table T681F. Use "E" has been added for fields in rebate processing.
- 按步骤做基本没有问题,但第7步,涉及到billing,FORM应该是USEREXIT_PRICING_PREPARE_TKOMP,
- 而不是USEREXIT_PRICING_PREPARE_xxxxK。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9859323/viewspace-616309/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9859323/viewspace-616309/