Ansicht
Dokumentation
OIRC_PRICE_CONVERSION - SSR Pricing - Convert price (currency, number of units, UoM)
CL_GUI_FRONTEND_SERVICES - Frontend Services CPI1466 during BackupThis documentation is copyright by SAP AG.
Functionality
Determines a target price tranlating the actual price:
- UoM to target UoM.
- Number of units to target number of units.
- Foreign currency to local currency amount.
The current number of units is converted using the the actual and target UoM and number of units.
A price in target currency is calculated from a specified actual currency price. For this, you must specify the exchange rate date. The system determine the translation rate from table TCURR on the basis of the date.
Ratios for the units of the currencies involved in the translation are significant for this translation, table TCURF is always read by the program, and there must be a valid entry there for the data specified.
Example
- Price conversion
CALL FUNCTION 'OIRC_PRICE_CONVERSION'
EXPORTING
I_DATE = TRANSACTION_DATE
I_KBETR_ACTUAL = ACTUAL_PRICE
I_KONWA_ACTUAL = ACTUAL_CURRENCY
I_KPEIN_ACTUAL = ACTUAL_UNITS
I_KMEIN_ACTUAL = ACUTAL_UOM
I_KONWA_TARGET = TARGET_CURRENCY
I_KPEIN_TARGET = TARGET_UNITS
I_KMEIN_TARGE = TARGET_UOM
IMPORTING
E_KBETR_TARGET = TARGET_PRICE
EXCEPTIONS
UOM_CONVERSION_ERROR = 1
CURRENCY_CONVERSION_ERROR = 2
OTHERS = 3.
Notes
Further information
Parameters
E_KBETR_TARGETI_DATE
I_KBETR_ACTUAL
I_KMEIN_ACTUAL
I_KMEIN_TARGET
I_KONWA_ACTUAL
I_KONWA_TARGET
I_KPEIN_ACTUAL
I_KPEIN_TARGET
I_MATNR
Exceptions
CURRENCY_CONVERSION_ERRORUOM_CONVERSION_ERROR
Function Group
OIRC_PRICECL_GUI_FRONTEND_SERVICES - Frontend Services rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 3107 Date: 20240523 Time: 144110 sap01-206 ( 33 ms )