SAP BKK_BKKRS_GET_WAERS Function Module for Find Currency Data for Bank Area









BKK_BKKRS_GET_WAERS is a standard bkk bkkrs get waers SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Find Currency Data for Bank Area 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 bkk bkkrs get waers FM, simply by entering the name BKK_BKKRS_GET_WAERS into the relevant SAP transaction such as SE37 or SE38.

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



Function BKK_BKKRS_GET_WAERS 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 'BKK_BKKRS_GET_WAERS'"Find Currency Data for Bank Area
EXPORTING
I_BKKRS = "Bank Area

IMPORTING
E_WAERS = "Bank Area Currency
E_CUR_DEFAULT = "Default Account Currency
E_CUR_OLD = "Currency Before Euro Conversion
E_RATETYPE = "Exchange Rate Type - Conversion
E_XRELEASE = "
E_RC = "Return Code
.



IMPORTING Parameters details for BKK_BKKRS_GET_WAERS

I_BKKRS - Bank Area

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

EXPORTING Parameters details for BKK_BKKRS_GET_WAERS

E_WAERS - Bank Area Currency

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

E_CUR_DEFAULT - Default Account Currency

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

E_CUR_OLD - Currency Before Euro Conversion

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

E_RATETYPE - Exchange Rate Type - Conversion

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

E_XRELEASE -

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

E_RC - Return Code

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

Copy and paste ABAP code example for BKK_BKKRS_GET_WAERS 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_waers  TYPE TBKK01-WAERS, "   
lv_i_bkkrs  TYPE TBKK01-BKKRS, "   
lv_e_cur_default  TYPE TBKK01-CUR_DFLT, "   
lv_e_cur_old  TYPE TBKK01-CUR_OLD, "   
lv_e_ratetype  TYPE TBKK01-RATETYPE, "   
lv_e_xrelease  TYPE TBKK01-XRELEASE, "   
lv_e_rc  TYPE SY-SUBRC. "   

  CALL FUNCTION 'BKK_BKKRS_GET_WAERS'  "Find Currency Data for Bank Area
    EXPORTING
         I_BKKRS = lv_i_bkkrs
    IMPORTING
         E_WAERS = lv_e_waers
         E_CUR_DEFAULT = lv_e_cur_default
         E_CUR_OLD = lv_e_cur_old
         E_RATETYPE = lv_e_ratetype
         E_XRELEASE = lv_e_xrelease
         E_RC = lv_e_rc
. " BKK_BKKRS_GET_WAERS




ABAP code using 7.40 inline data declarations to call FM BKK_BKKRS_GET_WAERS

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 TBKK01 INTO @DATA(ld_e_waers).
 
"SELECT single BKKRS FROM TBKK01 INTO @DATA(ld_i_bkkrs).
 
"SELECT single CUR_DFLT FROM TBKK01 INTO @DATA(ld_e_cur_default).
 
"SELECT single CUR_OLD FROM TBKK01 INTO @DATA(ld_e_cur_old).
 
"SELECT single RATETYPE FROM TBKK01 INTO @DATA(ld_e_ratetype).
 
"SELECT single XRELEASE FROM TBKK01 INTO @DATA(ld_e_xrelease).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_rc).
 


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!