Ansicht
Dokumentation

BADI_CPE_FE_EXRATE_F - BAdI: CPE Exchange Rate Forecast Routine

BADI_CPE_FE_EXRATE_F - BAdI: CPE Exchange Rate Forecast Routine

BAL Application Log Documentation   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Commodity Pricing Engine(CA-GTF-CPE) component. You can use this BAdI to provide forecast values for exchange rates for which the exchange rate dates lie in the future.

You need to implement method READ_FORECAST_VALUESwith the following parameters:

  • IV_EVALUATION_KEY_DATE: The forecast values are determined based on the market data that is available up to the evaluation key date.
  • IV_FORECAST_ROUTINE: The forecast routine number is the filter criterion that is used to determine the BAdI implementation.
  • IV_FORECAST_PROPOSED: This parameter indicates if the system proposes to use forecast values depending on the forecast mode and the current document category. In the standard delivery, a forecast is always proposed, except for invoices and credit memos.
  • IV_CURRENCY_FROM: The exchange rate is requested as conversion factor from this currency.
  • IV_CURRENCY_TO: The exchange rate is requested as conversion factor into this currency.
  • IV_EXCHANGE_RATE_TYPE: The type for which exchange rates are requested.
  • IT_FORECAST_CURRDATES: The system requests forecast values only for the dates in this parameter. These dates all lie later than the evaluation key date.
  • IO_EVALUATION_DATA: This class contains all data relevant for calculating CPE formulas, such as document data (document type, currency), formula data, and term data.
  • ET_FORECAST_VALUES: For each date in parameter IT_FORECAST_CURRDATES, the BAdI implementation returns an exchange rate forecast. The following fields are available:
  • CURRDATE: Date from parameter IT_FORECAST_CURRDATES.

  • UKURS: Exchange rate as ratio of the to-currency divided by from-currency.

  • READ_BACK: If the forecast value is not based on up-to-date market data, this indicator is selected. This is typically the case if the evaluation key date is the today's date for which market data still need to be uploaded into the system.

  • MISSING: This indicator is selected for missing forecast values. A missing entry routine - if available - reacts on these entries.

The following fields are optional as they are specific to routine 1:
  • SPOT_RATE: The spot exchange rate for the evaluation key date.

  • SWAP_RATE: The swap rate value on the evaluation key date for the requested CURRDATE.

  • INTERPOLATED: Indicator that the swap rate value was interpolated between two swap rates.

In the event of errors, an exception of type CX_CPE_EVALUATION_TERMINATED can be raised. This invalidates the formula result and leads to an error status.

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

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

Routine 1 = Use FX Forward Ratesuses BAdI BADI_TBA_FX_FWD_RATES.






ABAP Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 4587 Date: 20240524 Time: 004001     sap01-206 ( 149 ms )