前段时间需要用到Material Group4作为定价的字段,结合自己的实际操作整理出此文
原地址
http://www.erpgreat.com/sap-sd/add-a-field-to-new-condition-table-in-pricing.htm
Add a Field To New Condition Table in Pricing
Try to add the filed from the field catalog. In case the required combination field is not there, you can add the field through the following process to filed catalog and create the condition table. It is most common that one or other time we need to use this function while configuring multi-tasking & complex Pricing Architecture.
Here is a guide to add fields to the Pricing Field Catalog:
For example you want to use field MVGR1('Material Group1) as a key for a condition table.
When you create a condition table (Transaction V/03), however, the system does not propose the field in the field catalog.
Condition access, field catalog, allowed fields, KOMG, KOMK, KOMP, KOMPAZ, KOMKAZ, MVGR1 are the other terms which we need to know about, to add Fields.
Reason and Prerequisites:
For technical reasons, field MVGR1 was not included in structure KOMP, also not in structure KOMG ('Allowed Fields for Condition Structures').
Proceed as follows:
1. Call up structure KOMPAZ in the ABAP Dictionary (Transaction SE11) in the change mode and make the following entry:
Save, check and activate the change you made.
Here we can see the change is made in KOMP KOMG
2. Note:Because of the change in structure KOMPAZ, field MVGR1 to MVGR5 are now known in structures KOMG and KOMP because structure KOMPAZ is included in both structures. Do not change this in KOMP or KOMK, the field value may missing in some cases.
3. Call up Transaction SPRO. Navigate to 'Sales and Distribution -> Basic Functions -> Pricing -> Pricing Control' and execute 'Define Condition Tables'.
Choose 'Conditions: Allowed fields' and include MVGR1 as a new entry.
4. Now you can use field MVGR1 as a key field when you create a condition table Axxx.
5. Supply the new field you defined by including the following source code line in
USEREXIT_PRICING_PREPARE_TKOMP (if the new field start with ’ZZ’ ‘YY’, you need to give the value in this user exit, if the field is standard you can ignore)
In order processing you find the user exit in Include MV45AFZZ, and in billing document processing you find it in Include RV60AFZZ.
Consider that you can also use this note as a help if you want to use other customer-specific fields as key fields in a condition table.
Tips:
For header fields, use structure KOMKAZ instead of structure KOMPAZ
USEREXIT_PRICING_PREPARE_TKOMK
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30649906/viewspace-2127101/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30649906/viewspace-2127101/