SAP ABAP IMG Activity BADI_CPE_CONVERSION (BAdI: CPE Formula Evaluation Conversion Routine)
Hierarchy
PI_BASIS (Software Component) Basis Plug-In
   CA-GTF-CPE (Application Component) Commodity Pricing Engine
     CPE_FA_FE (Package) Commodity Pricing: Formula Assembly and Evaluation (ABAP)
IMG Activity
ID BADI_CPE_CONVERSION BAdI: CPE Formula Evaluation Conversion Routine  
Transaction Code S_BY3_13000015   (empty) 
Created on 20100915    
Customizing Attributes BADI_CPE_CONVERSION   BAdI: CPE Formula Evaluation Conversion Routine 
Customizing Activity BADI_CPE_CONVERSION   BAdI: CPE Formula Evaluation Conversion Routine 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name BADI_CPE_FE_CONVERSION_ROUTINE    

Use

This Business Add-In (BAdI) is used in the Commodity Pricing Engine (CA-GTF-CPE) component. It is called during the CPE formula evaluation process.

You can use this BAdI to define how to convert a rate from one combination of currency, price unit, and unit of measure to another combination. You define which currency, price unit, and unit of measure the system should convert the original rate to. You can have the system run the currency conversion for a specific day or with an average value for the currency exchange rate. You can use BAdI BADI_CPE_FE_QTY_CONV_ROUTINE to define how the quantity is converted from one unit of measure to another. For example, you can use routines or factors with fixed values for the conversion.

This logic is used when a conversion rule is executed.

You define the valid conversion rule in the Customizing activity Define Conversion Rule.

You can assign the conversion rule with its corresponding conversion routine at the following levels, listed here from least specific to most specific:

  • Application level (such as CRM, SD, or MM)
    There is one default conversion rule per application.
  • Formula level
    There is one default conversion rule per conversion place.
  • Term level
    There is one conversion rule per term-specific conversion place.

If you make the assignment at more than one level, the system considers the most specific one during formula evaluation. For example, if you assign the conversion rule at both application level and formula level, the system considers the assignment at formula level during the evaluation.

You assign the conversion rule:

  • At application level
    in the Customizing activity Activate Commodity Pricing Engine
  • At formula or term level during the maintenance of a formula in Customizing or in a document.

Requirements

You have defined the required routines and corresponding descriptions for the commodity pricing engine (CPE) in the Customizing activity Define CPE Routine for the submodule 20,Conversion Routine.

You have specified the valid conversion rule in the Customizing activity Define Conversion Rule and entered the number of your new logic as the Conversion Routine.

You have created and activated an implementation of the BAdIs that are relevant for all the parts of CPE Formula Evaluation for which you want to create your own logic. In particular, you have defined the conversion for quantities from one unit of measure to another using BAdI BADI_CPE_FE_QTY_CONV_ROUTINE, if relevant.

Standard Settings

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

Activities

For information about implementing BAdIs as part of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

Example

See also

BAdI method documentation:
CONVERSION_ROUTINE

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20100915 
SAP Release Created in 731