SAP CURRENCY_CODE_CHECK Function Module for
CURRENCY_CODE_CHECK is a standard currency code 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 currency code check FM, simply by entering the name CURRENCY_CODE_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 CURRENCY_CODE_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 'CURRENCY_CODE_CHECK'".
EXPORTING
I_CURRENCY_CODE = "Currency Key
* I_ZEDAT = "
* I_NO_CHECK = ' ' "
* I_OBJECT = "Object type for expiring currencies
* I_BUKRS = "Company Code
* I_BUDAT = "Posting Date in the Document
* I_BLDAT = "Document Date in Document
* I_WWERT = "Translation Date
* I_TCODE = "Transaction Code
* I_AWTYP = "Reference Transaction
* I_BLART = "Document Type
EXCEPTIONS
CURRENCY_CODE = 1
IMPORTING Parameters details for CURRENCY_CODE_CHECK
I_CURRENCY_CODE - Currency Key
Data type: TCURC-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_ZEDAT -
Data type: DATSOptional: Yes
Call by Reference: Yes
I_NO_CHECK -
Data type:Default: SPACE
Optional: Yes
Call by Reference: Yes
I_OBJECT - Object type for expiring currencies
Data type: TCURO-OBJECTOptional: Yes
Call by Reference: Yes
I_BUKRS - Company Code
Data type: BKPF-BUKRSOptional: Yes
Call by Reference: Yes
I_BUDAT - Posting Date in the Document
Data type: BKPF-BUDATOptional: Yes
Call by Reference: Yes
I_BLDAT - Document Date in Document
Data type: BKPF-BLDATOptional: Yes
Call by Reference: Yes
I_WWERT - Translation Date
Data type: BKPF-WWERTOptional: Yes
Call by Reference: Yes
I_TCODE - Transaction Code
Data type: SY-TCODEOptional: Yes
Call by Reference: Yes
I_AWTYP - Reference Transaction
Data type: BKPF-AWTYPOptional: Yes
Call by Reference: Yes
I_BLART - Document Type
Data type: BKPF-BLARTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
CURRENCY_CODE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CURRENCY_CODE_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_currency_code | TYPE STRING, " | |||
| lv_i_currency_code | TYPE TCURC-WAERS, " | |||
| lv_i_zedat | TYPE DATS, " | |||
| lv_i_no_check | TYPE DATS, " SPACE | |||
| lv_i_object | TYPE TCURO-OBJECT, " | |||
| lv_i_bukrs | TYPE BKPF-BUKRS, " | |||
| lv_i_budat | TYPE BKPF-BUDAT, " | |||
| lv_i_bldat | TYPE BKPF-BLDAT, " | |||
| lv_i_wwert | TYPE BKPF-WWERT, " | |||
| lv_i_tcode | TYPE SY-TCODE, " | |||
| lv_i_awtyp | TYPE BKPF-AWTYP, " | |||
| lv_i_blart | TYPE BKPF-BLART. " |
|   CALL FUNCTION 'CURRENCY_CODE_CHECK' " |
| EXPORTING | ||
| I_CURRENCY_CODE | = lv_i_currency_code | |
| I_ZEDAT | = lv_i_zedat | |
| I_NO_CHECK | = lv_i_no_check | |
| I_OBJECT | = lv_i_object | |
| I_BUKRS | = lv_i_bukrs | |
| I_BUDAT | = lv_i_budat | |
| I_BLDAT | = lv_i_bldat | |
| I_WWERT | = lv_i_wwert | |
| I_TCODE | = lv_i_tcode | |
| I_AWTYP | = lv_i_awtyp | |
| I_BLART | = lv_i_blart | |
| EXCEPTIONS | ||
| CURRENCY_CODE = 1 | ||
| . " CURRENCY_CODE_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM CURRENCY_CODE_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 WAERS FROM TCURC INTO @DATA(ld_i_currency_code). | ||||
| DATA(ld_i_no_check) | = ' '. | |||
| "SELECT single OBJECT FROM TCURO INTO @DATA(ld_i_object). | ||||
| "SELECT single BUKRS FROM BKPF INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single BUDAT FROM BKPF INTO @DATA(ld_i_budat). | ||||
| "SELECT single BLDAT FROM BKPF INTO @DATA(ld_i_bldat). | ||||
| "SELECT single WWERT FROM BKPF INTO @DATA(ld_i_wwert). | ||||
| "SELECT single TCODE FROM SY INTO @DATA(ld_i_tcode). | ||||
| "SELECT single AWTYP FROM BKPF INTO @DATA(ld_i_awtyp). | ||||
| "SELECT single BLART FROM BKPF INTO @DATA(ld_i_blart). | ||||
Search for further information about these or an SAP related objects