OIC_CONVERT_USING_KNOWN_RATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name OIC_CONVERT_USING_KNOWN_RATE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
OICQ
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'OIC_CONVERT_USING_KNOWN_RATE' "Conversion of Foreign Currency Amount into Local Currency Using Known Rate
* EXPORTING
* date = " sy-datum
* foreign_amount = "
* foreign_currency = "
* local_currency = "
* rate = 0 "
* type_of_rate = 'M' "
* foreign_factor = "
* local_factor = "
IMPORTING
exchange_rate = "
local_amount = "
exchange_ratex = "
EXCEPTIONS
NO_RATE_FOUND = 1 "
OVERFLOW = 2 "
NO_FACTORS_FOUND = 3 "
NO_SPREAD_FOUND = 4 "
DERIVED_2_TIMES = 5 "
OTHERS = 6 "
. " OIC_CONVERT_USING_KNOWN_RATE
The ABAP code below is a full code listing to execute function module OIC_CONVERT_USING_KNOWN_RATE including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_exchange_rate | TYPE STRING , |
| ld_local_amount | TYPE STRING , |
| ld_exchange_ratex | TYPE STRING . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_exchange_rate | TYPE STRING , |
| ld_date | TYPE SY-DATUM , |
| ld_local_amount | TYPE STRING , |
| ld_foreign_amount | TYPE STRING , |
| ld_exchange_ratex | TYPE STRING , |
| ld_foreign_currency | TYPE STRING , |
| ld_local_currency | TYPE STRING , |
| ld_rate | TYPE STRING , |
| ld_type_of_rate | TYPE STRING , |
| ld_foreign_factor | TYPE STRING , |
| ld_local_factor | TYPE STRING . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name OIC_CONVERT_USING_KNOWN_RATE or its description.
OIC_CONVERT_USING_KNOWN_RATE - Conversion of Foreign Currency Amount into Local Currency Using Known OIC_COND_A_WRITE_DOCUMENT - CHDO OIC_COND_A => Gen. by RSSCD000 OIC_CNDFORMULA_ALL_READ_MUL_DB - F&A - Condition Formula - Read Multiple from DB OIC_CALL_MAINTAIN_FORMULA_UI - Call User Interface for Maintaining F&A / CPE Formula OIC_CALL_DISPLAY_FORMULA_UI - Call User Interface for Display F&A / CPE Formula OIC_CALC_DIFFERENTIAL -