You are on page 1of 1

To solve the problem, proceed as follows: 1.

Call up the ABAP Dictionary (Transaction SE11) and create a data type ZZPSTYV. Choose PSTYV as a domain. As a short text, you can use, for example, 'ZZ - sales document item category' and as a field label, you can use the field labels of PSTYV. Save, check and activate your entries. 2. Call up structure KOMPAZ in the ABAP Dictionary (Transaction SE11) in the change mode and make the following entry: : Component Component type ZZPSTYV ZZPSTYV Save, check and activate the change you made. 3. Note: Because of the change in structure KOMPAZ, field ZZPSTYV is now known in structures KOMG and KOMP because structure KOMPAZ is included in both structures. 4. Call up Transaction SPRO. Branch via 'Sales and Distribution -> Basic Functions -> Pricing -> Pricing Control' and carry out 'Define Condition tables'. Choose 'Conditions: Allowed Fields' and include ZZPSTYV as a new entry. 5. Note: Now you can use field ZZPSTYV as a key field when you create a condition table Axxx. 6. Supply the new field you defined by including the following source code line in USEREXIT_PRICING_PREPARE_TKOMP: MOVE TKOMP-PSTYV TO TKOMP-ZZPSTYV. In order processing, you find the user exit in Include MV45AFZZ and in billing document processing you find it in Include RV60AFZZ. For header fields, use structure KOMKAZ instead of structure KOMPAZ and USEREXIT_PRICING_PREPARE_TKOMK instead of USEREXIT_PRICING_PREPARE_TKOMP. For more information see Transaction SPRO via the path 'Sales and Distribution -> System Modifications -> Create New Fields (Using Condition Technique) -> New Fields for Pricing' and Note 21040

You might also like