SAP FI_CURRENCY_CHECK Function Module for









FI_CURRENCY_CHECK is a standard fi currency check 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 fi currency check FM, simply by entering the name FI_CURRENCY_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function FI_CURRENCY_CHECK 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 'FI_CURRENCY_CHECK'"
EXPORTING
I_BLDAT = "Document date
* X_DIALOG = ' ' "Indicator: output warning messages online
* I_MSGTY = ' ' "
* I_LDGRP = "Ledger Group
I_BUDAT = "Posting date
I_BUKRS = "Company code
* I_BLART = ' ' "
* I_KURS2 = 0 "Second local currency translation rate
* I_KURS3 = 0 "Third local currency translation rate
* I_KURSF = 0 "Exchange rate
* I_WAERS = ' ' "Transaction currency (local currency is default)
* I_WWERT = 00000000 "Translation date

IMPORTING
E_KURS2 = "Second local currency rate
E_KURS3 = "Third local currency rate
E_KURSF = "ExRt
E_WWERT = "Translation date
.



IMPORTING Parameters details for FI_CURRENCY_CHECK

I_BLDAT - Document date

Data type: BKPF-BLDAT
Optional: No
Call by Reference: No ( called with pass by value option)

X_DIALOG - Indicator: output warning messages online

Data type: RF05A-XPOS1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MSGTY -

Data type: T100C-MSGTS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LDGRP - Ledger Group

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

I_BUDAT - Posting date

Data type: BKPF-BUDAT
Optional: No
Call by Reference: No ( called with pass by value option)

I_BUKRS - Company code

Data type: BKPF-BUKRS
Optional: No
Call by Reference: No ( called with pass by value option)

I_BLART -

Data type: BKPF-BLART
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KURS2 - Second local currency translation rate

Data type: BKPF-KURS2
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KURS3 - Third local currency translation rate

Data type: BKPF-KURS3
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KURSF - Exchange rate

Data type: BKPF-KURSF
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WAERS - Transaction currency (local currency is default)

Data type: BKPF-WAERS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WWERT - Translation date

Data type: BKPF-WWERT
Default: 00000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FI_CURRENCY_CHECK

E_KURS2 - Second local currency rate

Data type: BKPF-KURS2
Optional: No
Call by Reference: No ( called with pass by value option)

E_KURS3 - Third local currency rate

Data type: BKPF-KURS3
Optional: No
Call by Reference: No ( called with pass by value option)

E_KURSF - ExRt

Data type: BKPF-KURSF
Optional: No
Call by Reference: No ( called with pass by value option)

E_WWERT - Translation date

Data type: SY-DATLO
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FI_CURRENCY_CHECK 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_kurs2  TYPE BKPF-KURS2, "   
lv_i_bldat  TYPE BKPF-BLDAT, "   
lv_x_dialog  TYPE RF05A-XPOS1, "   SPACE
lv_i_msgty  TYPE T100C-MSGTS, "   SPACE
lv_i_ldgrp  TYPE FAGL_LDGRP, "   
lv_e_kurs3  TYPE BKPF-KURS3, "   
lv_i_budat  TYPE BKPF-BUDAT, "   
lv_e_kursf  TYPE BKPF-KURSF, "   
lv_i_bukrs  TYPE BKPF-BUKRS, "   
lv_e_wwert  TYPE SY-DATLO, "   
lv_i_blart  TYPE BKPF-BLART, "   SPACE
lv_i_kurs2  TYPE BKPF-KURS2, "   0
lv_i_kurs3  TYPE BKPF-KURS3, "   0
lv_i_kursf  TYPE BKPF-KURSF, "   0
lv_i_waers  TYPE BKPF-WAERS, "   SPACE
lv_i_wwert  TYPE BKPF-WWERT. "   00000000

  CALL FUNCTION 'FI_CURRENCY_CHECK'  "
    EXPORTING
         I_BLDAT = lv_i_bldat
         X_DIALOG = lv_x_dialog
         I_MSGTY = lv_i_msgty
         I_LDGRP = lv_i_ldgrp
         I_BUDAT = lv_i_budat
         I_BUKRS = lv_i_bukrs
         I_BLART = lv_i_blart
         I_KURS2 = lv_i_kurs2
         I_KURS3 = lv_i_kurs3
         I_KURSF = lv_i_kursf
         I_WAERS = lv_i_waers
         I_WWERT = lv_i_wwert
    IMPORTING
         E_KURS2 = lv_e_kurs2
         E_KURS3 = lv_e_kurs3
         E_KURSF = lv_e_kursf
         E_WWERT = lv_e_wwert
. " FI_CURRENCY_CHECK




ABAP code using 7.40 inline data declarations to call FM FI_CURRENCY_CHECK

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 KURS2 FROM BKPF INTO @DATA(ld_e_kurs2).
 
"SELECT single BLDAT FROM BKPF INTO @DATA(ld_i_bldat).
 
"SELECT single XPOS1 FROM RF05A INTO @DATA(ld_x_dialog).
DATA(ld_x_dialog) = ' '.
 
"SELECT single MSGTS FROM T100C INTO @DATA(ld_i_msgty).
DATA(ld_i_msgty) = ' '.
 
 
"SELECT single KURS3 FROM BKPF INTO @DATA(ld_e_kurs3).
 
"SELECT single BUDAT FROM BKPF INTO @DATA(ld_i_budat).
 
"SELECT single KURSF FROM BKPF INTO @DATA(ld_e_kursf).
 
"SELECT single BUKRS FROM BKPF INTO @DATA(ld_i_bukrs).
 
"SELECT single DATLO FROM SY INTO @DATA(ld_e_wwert).
 
"SELECT single BLART FROM BKPF INTO @DATA(ld_i_blart).
DATA(ld_i_blart) = ' '.
 
"SELECT single KURS2 FROM BKPF INTO @DATA(ld_i_kurs2).
 
"SELECT single KURS3 FROM BKPF INTO @DATA(ld_i_kurs3).
 
"SELECT single KURSF FROM BKPF INTO @DATA(ld_i_kursf).
 
"SELECT single WAERS FROM BKPF INTO @DATA(ld_i_waers).
DATA(ld_i_waers) = ' '.
 
"SELECT single WWERT FROM BKPF INTO @DATA(ld_i_wwert).
DATA(ld_i_wwert) = 00000000.
 


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!