SAP FC_CURRENCY_CONVERT_INTERFACE Function Module for
FC_CURRENCY_CONVERT_INTERFACE is a standard fc currency convert interface SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for fc currency convert interface FM, simply by entering the name FC_CURRENCY_CONVERT_INTERFACE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FCIN
Program Name: SAPLFCIN
Main Program: SAPLFCIN
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FC_CURRENCY_CONVERT_INTERFACE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'FC_CURRENCY_CONVERT_INTERFACE'".
EXPORTING
* I_DATE = SY-DATUM "Key Date for Currency Translation
* I_FLG_XSALH = "Only Store Balances in Local Currency
* I_BD_RTCUR = "Breakdown by Transaction Currency
* I_GCIND = "Values are entered in group currency
* I_S_T001A = "
* I_KURST = 'M ' "
* I_CURTP2_S = "
* I_CURTP3_S = "
I_LCURR = "
I_GCURR = "
I_CURTP2_R = "
I_CURTP3_R = "
I_VALUTYP_R = "
IMPORTING
E_TSL = "Value in Transaction Currency
E_RTCUR = "
E_HSL = "Value in Local Currency
E_KSL = "Value in Group Currency
E_FLG_HSL_CONV = "
E_FLG_KSL_CONV = "
TABLES
I_T_CURINF = "
EXCEPTIONS
NO_RATE_FOUND = 1 OVERFLOW = 2 NO_FACTORS_FOUND = 3 NO_SPREAD_FOUND = 4 DERIVED_2_TIMES = 5
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLFCIN_100 Integration: User Exit for Identifier and Texts from Cons Org Units
EXIT_SAPLFCIN_110 Integration: User Exit for 'Parents' of Cons Org Units
EXIT_SAPLFCIN_200 Integration: User Exit for Definition of the Data Stream on Rollup
EXIT_SAPLFCIN_210 Integration: Output Fields of Incorrect Data Records in Rollup
EXIT_SAPLFCIN_220 Integration: Sender Fields for Organizational Units on Rollup
EXIT_SAPLFCIN_230 Integration: Sender Fields for Subitems on Rollup
EXIT_SAPLFCIN_240 Integration: Edit from Value Fields before Update with Rollup
EXIT_SAPLFCIN_250 Integration: Get Custom Subassignments
IMPORTING Parameters details for FC_CURRENCY_CONVERT_INTERFACE
I_DATE - Key Date for Currency Translation
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
I_FLG_XSALH - Only Store Balances in Local Currency
Data type: FC_FLGOptional: Yes
Call by Reference: Yes
I_BD_RTCUR - Breakdown by Transaction Currency
Data type: FC_BRKDOWNOptional: Yes
Call by Reference: Yes
I_GCIND - Values are entered in group currency
Data type: FC_FLGOptional: Yes
Call by Reference: Yes
I_S_T001A -
Data type: FCIN_S_T001AOptional: Yes
Call by Reference: Yes
I_KURST -
Data type: FCIN_KURSTDefault: 'M '
Optional: Yes
Call by Reference: Yes
I_CURTP2_S -
Data type: CURTPOptional: Yes
Call by Reference: Yes
I_CURTP3_S -
Data type: CURTPOptional: Yes
Call by Reference: Yes
I_LCURR -
Data type: FC_CURRENCYOptional: No
Call by Reference: Yes
I_GCURR -
Data type: FC_CURRENCYOptional: No
Call by Reference: Yes
I_CURTP2_R -
Data type: CURTPOptional: No
Call by Reference: Yes
I_CURTP3_R -
Data type: CURTPOptional: No
Call by Reference: Yes
I_VALUTYP_R -
Data type: VALUTYPOptional: No
Call by Reference: Yes
EXPORTING Parameters details for FC_CURRENCY_CONVERT_INTERFACE
E_TSL - Value in Transaction Currency
Data type: FCIN_CURVALOptional: No
Call by Reference: Yes
E_RTCUR -
Data type: FC_CURRENCYOptional: No
Call by Reference: Yes
E_HSL - Value in Local Currency
Data type: FCIN_CURVALOptional: No
Call by Reference: Yes
E_KSL - Value in Group Currency
Data type: FCIN_CURVALOptional: No
Call by Reference: Yes
E_FLG_HSL_CONV -
Data type: FC_FLGOptional: No
Call by Reference: Yes
E_FLG_KSL_CONV -
Data type: FC_FLGOptional: No
Call by Reference: Yes
TABLES Parameters details for FC_CURRENCY_CONVERT_INTERFACE
I_T_CURINF -
Data type: FCIN_T_CURINFOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_RATE_FOUND - No exch.rate entered in table TCURR
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OVERFLOW - LOCAL_AMOUNT field is too small
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_FACTORS_FOUND - No conversion factors in TCURF
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SPREAD_FOUND - No rate range entered in table TCURS
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DERIVED_2_TIMES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FC_CURRENCY_CONVERT_INTERFACE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_e_tsl | TYPE FCIN_CURVAL, " | |||
| lv_i_date | TYPE SY-DATUM, " SY-DATUM | |||
| lt_i_t_curinf | TYPE STANDARD TABLE OF FCIN_T_CURINF, " | |||
| lv_no_rate_found | TYPE FCIN_T_CURINF, " | |||
| lv_i_flg_xsalh | TYPE FC_FLG, " | |||
| lv_i_bd_rtcur | TYPE FC_BRKDOWN, " | |||
| lv_i_gcind | TYPE FC_FLG, " | |||
| lv_i_s_t001a | TYPE FCIN_S_T001A, " | |||
| lv_e_rtcur | TYPE FC_CURRENCY, " | |||
| lv_i_kurst | TYPE FCIN_KURST, " 'M ' | |||
| lv_overflow | TYPE FCIN_KURST, " | |||
| lv_e_hsl | TYPE FCIN_CURVAL, " | |||
| lv_i_curtp2_s | TYPE CURTP, " | |||
| lv_no_factors_found | TYPE CURTP, " | |||
| lv_e_ksl | TYPE FCIN_CURVAL, " | |||
| lv_i_curtp3_s | TYPE CURTP, " | |||
| lv_no_spread_found | TYPE CURTP, " | |||
| lv_i_lcurr | TYPE FC_CURRENCY, " | |||
| lv_e_flg_hsl_conv | TYPE FC_FLG, " | |||
| lv_derived_2_times | TYPE FC_FLG, " | |||
| lv_i_gcurr | TYPE FC_CURRENCY, " | |||
| lv_e_flg_ksl_conv | TYPE FC_FLG, " | |||
| lv_i_curtp2_r | TYPE CURTP, " | |||
| lv_i_curtp3_r | TYPE CURTP, " | |||
| lv_i_valutyp_r | TYPE VALUTYP. " |
|   CALL FUNCTION 'FC_CURRENCY_CONVERT_INTERFACE' " |
| EXPORTING | ||
| I_DATE | = lv_i_date | |
| I_FLG_XSALH | = lv_i_flg_xsalh | |
| I_BD_RTCUR | = lv_i_bd_rtcur | |
| I_GCIND | = lv_i_gcind | |
| I_S_T001A | = lv_i_s_t001a | |
| I_KURST | = lv_i_kurst | |
| I_CURTP2_S | = lv_i_curtp2_s | |
| I_CURTP3_S | = lv_i_curtp3_s | |
| I_LCURR | = lv_i_lcurr | |
| I_GCURR | = lv_i_gcurr | |
| I_CURTP2_R | = lv_i_curtp2_r | |
| I_CURTP3_R | = lv_i_curtp3_r | |
| I_VALUTYP_R | = lv_i_valutyp_r | |
| IMPORTING | ||
| E_TSL | = lv_e_tsl | |
| E_RTCUR | = lv_e_rtcur | |
| E_HSL | = lv_e_hsl | |
| E_KSL | = lv_e_ksl | |
| E_FLG_HSL_CONV | = lv_e_flg_hsl_conv | |
| E_FLG_KSL_CONV | = lv_e_flg_ksl_conv | |
| TABLES | ||
| I_T_CURINF | = lt_i_t_curinf | |
| EXCEPTIONS | ||
| NO_RATE_FOUND = 1 | ||
| OVERFLOW = 2 | ||
| NO_FACTORS_FOUND = 3 | ||
| NO_SPREAD_FOUND = 4 | ||
| DERIVED_2_TIMES = 5 | ||
| . " FC_CURRENCY_CONVERT_INTERFACE | ||
ABAP code using 7.40 inline data declarations to call FM FC_CURRENCY_CONVERT_INTERFACE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single DATUM FROM SY INTO @DATA(ld_i_date). | ||||
| DATA(ld_i_date) | = SY-DATUM. | |||
| DATA(ld_i_kurst) | = 'M '. | |||
Search for further information about these or an SAP related objects