SAP FC_COI_VALUES_CONVERT Function Module for









FC_COI_VALUES_CONVERT is a standard fc coi values convert 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 coi values convert FM, simply by entering the name FC_COI_VALUES_CONVERT into the relevant SAP transaction such as SE37 or SE38.

Function Group: FC06A
Program Name: SAPLFC06A
Main Program: SAPLFC06A
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FC_COI_VALUES_CONVERT 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_COI_VALUES_CONVERT'"
EXPORTING
I_RVERS = "Consolidation (End-Result) Version
I_TCURR = "Currency Key of To Key Figure
* I_KFIG_FROM = GC_KFIG_FROM "Name of Field for From Key Figure (Default: FVAL)
* I_KFIG_TO = GC_KFIG_TO "Name of Field for To Key Figure (Default: TVAL)
I_RYEAR = "Fiscal Year
I_PERID = "Period
* I_PERIV = "Fiscal Year Variant
I_XRIND = "Exchange Rate Indicator
* IF_XRATE_PP = "Ind.: Use Exchange Rates for Prior Period
* IF_BUFFER = 'X' "Ind.: Use Data Buffer
* I_DATE = "
I_FCURR = "Currency Key of From Key Figure

IMPORTING
ET_MESSAGE = "Reported Data of Consolidation
ES_XRATE_FACTOR = "

CHANGING
CT_DATA = "Data to be Translated
.



IMPORTING Parameters details for FC_COI_VALUES_CONVERT

I_RVERS - Consolidation (End-Result) Version

Data type: FC_RVERS
Optional: No
Call by Reference: Yes

I_TCURR - Currency Key of To Key Figure

Data type: FC_CURRENCY
Optional: No
Call by Reference: Yes

I_KFIG_FROM - Name of Field for From Key Figure (Default: FVAL)

Data type: FC_FIELDNAME
Default: GC_KFIG_FROM
Optional: Yes
Call by Reference: Yes

I_KFIG_TO - Name of Field for To Key Figure (Default: TVAL)

Data type: FC_FIELDNAME
Default: GC_KFIG_TO
Optional: Yes
Call by Reference: Yes

I_RYEAR - Fiscal Year

Data type: FC_RYEAR
Optional: No
Call by Reference: Yes

I_PERID - Period

Data type: FC_PERID
Optional: No
Call by Reference: Yes

I_PERIV - Fiscal Year Variant

Data type: FC_PERIV
Optional: Yes
Call by Reference: Yes

I_XRIND - Exchange Rate Indicator

Data type: FC_EXRIND
Optional: No
Call by Reference: Yes

IF_XRATE_PP - Ind.: Use Exchange Rates for Prior Period

Data type: FC_FLG
Optional: Yes
Call by Reference: Yes

IF_BUFFER - Ind.: Use Data Buffer

Data type: FC_FLG
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_DATE -

Data type: SY-DATUM
Optional: Yes
Call by Reference: Yes

I_FCURR - Currency Key of From Key Figure

Data type: FC_CURRENCY
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for FC_COI_VALUES_CONVERT

ET_MESSAGE - Reported Data of Consolidation

Data type: FC00_T_MESSAGE
Optional: No
Call by Reference: Yes

ES_XRATE_FACTOR -

Data type: FC06_S_CTR_XRATE_FACTOR
Optional: No
Call by Reference: Yes

CHANGING Parameters details for FC_COI_VALUES_CONVERT

CT_DATA - Data to be Translated

Data type: STANDARD TABLE
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FC_COI_VALUES_CONVERT 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_ct_data  TYPE STANDARD TABLE, "   
lv_i_rvers  TYPE FC_RVERS, "   
lv_et_message  TYPE FC00_T_MESSAGE, "   
lv_i_tcurr  TYPE FC_CURRENCY, "   
lv_i_kfig_from  TYPE FC_FIELDNAME, "   GC_KFIG_FROM
lv_i_kfig_to  TYPE FC_FIELDNAME, "   GC_KFIG_TO
lv_i_ryear  TYPE FC_RYEAR, "   
lv_es_xrate_factor  TYPE FC06_S_CTR_XRATE_FACTOR, "   
lv_i_perid  TYPE FC_PERID, "   
lv_i_periv  TYPE FC_PERIV, "   
lv_i_xrind  TYPE FC_EXRIND, "   
lv_if_xrate_pp  TYPE FC_FLG, "   
lv_if_buffer  TYPE FC_FLG, "   'X'
lv_i_date  TYPE SY-DATUM, "   
lv_i_fcurr  TYPE FC_CURRENCY. "   

  CALL FUNCTION 'FC_COI_VALUES_CONVERT'  "
    EXPORTING
         I_RVERS = lv_i_rvers
         I_TCURR = lv_i_tcurr
         I_KFIG_FROM = lv_i_kfig_from
         I_KFIG_TO = lv_i_kfig_to
         I_RYEAR = lv_i_ryear
         I_PERID = lv_i_perid
         I_PERIV = lv_i_periv
         I_XRIND = lv_i_xrind
         IF_XRATE_PP = lv_if_xrate_pp
         IF_BUFFER = lv_if_buffer
         I_DATE = lv_i_date
         I_FCURR = lv_i_fcurr
    IMPORTING
         ET_MESSAGE = lv_et_message
         ES_XRATE_FACTOR = lv_es_xrate_factor
    CHANGING
         CT_DATA = lv_ct_data
. " FC_COI_VALUES_CONVERT




ABAP code using 7.40 inline data declarations to call FM FC_COI_VALUES_CONVERT

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.

 
 
 
 
DATA(ld_i_kfig_from) = GC_KFIG_FROM.
 
DATA(ld_i_kfig_to) = GC_KFIG_TO.
 
 
 
 
 
 
 
DATA(ld_if_buffer) = 'X'.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_date).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!