SAP RH_CURRENCY_CHECK Function Module for
RH_CURRENCY_CHECK is a standard rh 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 rh currency check FM, simply by entering the name RH_CURRENCY_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHKB
Program Name: SAPLRHKB
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_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 'RH_CURRENCY_CHECK'".
EXPORTING
IV_CURRENCY = "
* IV_EXISTENCE_ONLY = 'X' "
* IV_STARTDATE = '19000101' "
* IV_ENDDATE = '99991231' "
* IV_WARNING_MESSAGES = ' ' "
EXCEPTIONS
CURRENCY_NOT_VALID_ALL_TIME = 1 CURRENCY_NOT_VALID = 2 CURRENCY_NOT_FOUND = 3
IMPORTING Parameters details for RH_CURRENCY_CHECK
IV_CURRENCY -
Data type: PAD25-KWAEROptional: No
Call by Reference: Yes
IV_EXISTENCE_ONLY -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_STARTDATE -
Data type: P1001-BEGDADefault: '19000101'
Optional: Yes
Call by Reference: Yes
IV_ENDDATE -
Data type: P1001-ENDDADefault: '99991231'
Optional: Yes
Call by Reference: Yes
IV_WARNING_MESSAGES -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
CURRENCY_NOT_VALID_ALL_TIME -
Data type:Optional: No
Call by Reference: Yes
CURRENCY_NOT_VALID -
Data type:Optional: No
Call by Reference: Yes
CURRENCY_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RH_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_iv_currency | TYPE PAD25-KWAER, " | |||
| lv_currency_not_valid_all_time | TYPE PAD25, " | |||
| lv_iv_existence_only | TYPE XFELD, " 'X' | |||
| lv_currency_not_valid | TYPE XFELD, " | |||
| lv_iv_startdate | TYPE P1001-BEGDA, " '19000101' | |||
| lv_currency_not_found | TYPE P1001, " | |||
| lv_iv_enddate | TYPE P1001-ENDDA, " '99991231' | |||
| lv_iv_warning_messages | TYPE XFELD. " SPACE |
|   CALL FUNCTION 'RH_CURRENCY_CHECK' " |
| EXPORTING | ||
| IV_CURRENCY | = lv_iv_currency | |
| IV_EXISTENCE_ONLY | = lv_iv_existence_only | |
| IV_STARTDATE | = lv_iv_startdate | |
| IV_ENDDATE | = lv_iv_enddate | |
| IV_WARNING_MESSAGES | = lv_iv_warning_messages | |
| EXCEPTIONS | ||
| CURRENCY_NOT_VALID_ALL_TIME = 1 | ||
| CURRENCY_NOT_VALID = 2 | ||
| CURRENCY_NOT_FOUND = 3 | ||
| . " RH_CURRENCY_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM RH_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 KWAER FROM PAD25 INTO @DATA(ld_iv_currency). | ||||
| DATA(ld_iv_existence_only) | = 'X'. | |||
| "SELECT single BEGDA FROM P1001 INTO @DATA(ld_iv_startdate). | ||||
| DATA(ld_iv_startdate) | = '19000101'. | |||
| "SELECT single ENDDA FROM P1001 INTO @DATA(ld_iv_enddate). | ||||
| DATA(ld_iv_enddate) | = '99991231'. | |||
| DATA(ld_iv_warning_messages) | = ' '. | |||
Search for further information about these or an SAP related objects