SAP OIRA_ANALYSIS_CURRENCY_GET Function Module for Get new analysis currency via pop-up dialog
OIRA_ANALYSIS_CURRENCY_GET is a standard oira analysis currency get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get new analysis currency via pop-up dialog processing and below is the pattern details for this FM, 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 oira analysis currency get FM, simply by entering the name OIRA_ANALYSIS_CURRENCY_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIRA1
Program Name: SAPLOIRA1
Main Program: SAPLOIRA1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function OIRA_ANALYSIS_CURRENCY_GET 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 'OIRA_ANALYSIS_CURRENCY_GET'"Get new analysis currency via pop-up dialog.
EXPORTING
* I_CURRENCY = "Currency key
* I_TYPE_OF_RATE = 'M' "Exchange rate type for conversion to analysis currency
* I_CONVERSION_DATE = SY-DATUM "Date and time, current (application server) date
IMPORTING
E_CURRENCY = "Currency key
E_TYPE_OF_RATE = "Exchange rate type for conversion to analysis currency
E_CONVERSION_DATE = "Date and time, current (application server) date
EXCEPTIONS
DIALOG_CALNCELLED = 1
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_SAPLOIRA1_001 general location header screen
EXIT_SAPLOIRA1_002 Retrieve business location number from header screen
IMPORTING Parameters details for OIRA_ANALYSIS_CURRENCY_GET
I_CURRENCY - Currency key
Data type: TCURC-WAERSOptional: Yes
Call by Reference: Yes
I_TYPE_OF_RATE - Exchange rate type for conversion to analysis currency
Data type: RMCS0-KURSTDefault: 'M'
Optional: Yes
Call by Reference: Yes
I_CONVERSION_DATE - Date and time, current (application server) date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for OIRA_ANALYSIS_CURRENCY_GET
E_CURRENCY - Currency key
Data type: TCURC-WAERSOptional: No
Call by Reference: Yes
E_TYPE_OF_RATE - Exchange rate type for conversion to analysis currency
Data type: RMCS0-KURSTOptional: No
Call by Reference: Yes
E_CONVERSION_DATE - Date and time, current (application server) date
Data type: SY-DATUMOptional: No
Call by Reference: Yes
EXCEPTIONS details
DIALOG_CALNCELLED - Dialog has been cancelled
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIRA_ANALYSIS_CURRENCY_GET 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_currency | TYPE TCURC-WAERS, " | |||
lv_i_currency | TYPE TCURC-WAERS, " | |||
lv_dialog_calncelled | TYPE TCURC, " | |||
lv_e_type_of_rate | TYPE RMCS0-KURST, " | |||
lv_i_type_of_rate | TYPE RMCS0-KURST, " 'M' | |||
lv_e_conversion_date | TYPE SY-DATUM, " | |||
lv_i_conversion_date | TYPE SY-DATUM. " SY-DATUM |
  CALL FUNCTION 'OIRA_ANALYSIS_CURRENCY_GET' "Get new analysis currency via pop-up dialog |
EXPORTING | ||
I_CURRENCY | = lv_i_currency | |
I_TYPE_OF_RATE | = lv_i_type_of_rate | |
I_CONVERSION_DATE | = lv_i_conversion_date | |
IMPORTING | ||
E_CURRENCY | = lv_e_currency | |
E_TYPE_OF_RATE | = lv_e_type_of_rate | |
E_CONVERSION_DATE | = lv_e_conversion_date | |
EXCEPTIONS | ||
DIALOG_CALNCELLED = 1 | ||
. " OIRA_ANALYSIS_CURRENCY_GET |
ABAP code using 7.40 inline data declarations to call FM OIRA_ANALYSIS_CURRENCY_GET
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_e_currency). | ||||
"SELECT single WAERS FROM TCURC INTO @DATA(ld_i_currency). | ||||
"SELECT single KURST FROM RMCS0 INTO @DATA(ld_e_type_of_rate). | ||||
"SELECT single KURST FROM RMCS0 INTO @DATA(ld_i_type_of_rate). | ||||
DATA(ld_i_type_of_rate) | = 'M'. | |||
"SELECT single DATUM FROM SY INTO @DATA(ld_e_conversion_date). | ||||
"SELECT single DATUM FROM SY INTO @DATA(ld_i_conversion_date). | ||||
DATA(ld_i_conversion_date) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects