SAP CURRENCY_GETLIST Function Module for List of currencies









CURRENCY_GETLIST is a standard currency getlist SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for List of currencies 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 currency getlist FM, simply by entering the name CURRENCY_GETLIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCUW
Program Name: SAPLSCUW
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CURRENCY_GETLIST 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_GETLIST'"List of currencies
EXPORTING
* I_LANGU = SY-LANGU "Language
* I_SORT_BY = ' ' "

IMPORTING
E_TODAY = "
E_GPA_FROM_CURR = "
E_GPA_TO_CURR = "

TABLES
CURRENCY_LIST = "List of currencies
.



IMPORTING Parameters details for CURRENCY_GETLIST

I_LANGU - Language

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

I_SORT_BY -

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

EXPORTING Parameters details for CURRENCY_GETLIST

E_TODAY -

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

E_GPA_FROM_CURR -

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

E_GPA_TO_CURR -

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

TABLES Parameters details for CURRENCY_GETLIST

CURRENCY_LIST - List of currencies

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

Copy and paste ABAP code example for CURRENCY_GETLIST 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_today  TYPE SCURFIELDS-CHAR10, "   
lv_i_langu  TYPE SY-LANGU, "   SY-LANGU
lt_currency_list  TYPE STANDARD TABLE OF TCURT, "   
lv_i_sort_by  TYPE SY-DATAR, "   SPACE
lv_e_gpa_from_curr  TYPE TCURC-WAERS, "   
lv_e_gpa_to_curr  TYPE TCURC-WAERS. "   

  CALL FUNCTION 'CURRENCY_GETLIST'  "List of currencies
    EXPORTING
         I_LANGU = lv_i_langu
         I_SORT_BY = lv_i_sort_by
    IMPORTING
         E_TODAY = lv_e_today
         E_GPA_FROM_CURR = lv_e_gpa_from_curr
         E_GPA_TO_CURR = lv_e_gpa_to_curr
    TABLES
         CURRENCY_LIST = lt_currency_list
. " CURRENCY_GETLIST




ABAP code using 7.40 inline data declarations to call FM CURRENCY_GETLIST

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 CHAR10 FROM SCURFIELDS INTO @DATA(ld_e_today).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_i_langu).
DATA(ld_i_langu) = SY-LANGU.
 
 
"SELECT single DATAR FROM SY INTO @DATA(ld_i_sort_by).
DATA(ld_i_sort_by) = ' '.
 
"SELECT single WAERS FROM TCURC INTO @DATA(ld_e_gpa_from_curr).
 
"SELECT single WAERS FROM TCURC INTO @DATA(ld_e_gpa_to_curr).
 


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!