Hierarchy

⤷

⤷

IMG Activity
ID | BADI_CPE_FE_PR_REF_R | BAdI: Price Fixation Reference Price Routine |
Transaction Code | S_BRK_62000016 | (empty) |
Created on | 20130418 | |
Customizing Attributes | BADI_CPE_FE_PR_REF_R | BAdI: Price Fixation Reference Price Routine |
Customizing Activity | BADI_CPE_FE_PR_REF_R | BAdI: Price Fixation Reference Price Routine |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | BADI_CPE_FE_PR_REF_ROUTINE |
Use
This Business Add-In (BAdI) is used in the Commodity Pricing Engine (CA-GTF-CPE) component. You can use this BAdI to define the price that is used for the non-fixed quantity.
You need to implement method GET_RATE with the following parameters:
Import Parameters
- IO_OPTION: This represents the price fixation option definition.
- IV_PRICE_REF_ROUT: The system uses the number of the price reference routine as the filter criterion for determining the BAdI implementation.
- IS_REMAINDER_QTY: This is the non-fixed quantity.
- IO_EVALUATION_DATA: This contains all of the data that is relevant for calculating CPE formulas, such as document data (document type, currency), formula data, and term data.
- IV_CURRENCY, IV_PRICE_UNIT and IV_RATE_UOM: These denote the currency, price unit and unit of measure for which the term rate value is requested (for example in USD for every 1 TO).
Changing Parameters
- CV_RATE: This represents the current term rate that is used for the non-fixed quantity. You can change this value in your BAdI implementation.
- CV_STATUS: You can use this to adjust the status of the current term for the non-fixed quantity, for example to consider the status of the terms that contribute to the rate.
Exceptions
In the event of errors, an exception of type CX_CPE_EVALUATION_TERMINATED can be raised. This invalidates the result and leads to an error status.
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 33, Price Ref. Rout. for non-fixed quantity.
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
Example
SAP delivers the following implementations:
- 1: Floating Price
The price is calculated identically to the originating floating term. - 2: Weighted average of entered fixed prices
The entered fixed prices are weighted with their quantity in relation to the total quantity. The average of the weighted fixed prices is then used for the non-fixed quantity. - 3: Price of last fixation
The price of the last price fixation option exercise is also used for the non-fixed quantity.
Business Attributes
ASAP Roadmap ID | 157 | |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20130508 |
SAP Release Created in |