SAP FKK_READ_FOREIGN_CURR_VAL_RUN Function Module for
FKK_READ_FOREIGN_CURR_VAL_RUN is a standard fkk read foreign curr val run 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 fkk read foreign curr val run FM, simply by entering the name FKK_READ_FOREIGN_CURR_VAL_RUN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKOP
Program Name: SAPLFKOP
Main Program: SAPLFKOP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function FKK_READ_FOREIGN_CURR_VAL_RUN 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 'FKK_READ_FOREIGN_CURR_VAL_RUN'".
EXPORTING
* I_BWVAR = "
* I_BWBER = "
* I_LDGRP = "Ledger Group
* I_CANC = "
* I_RLDNR = ' ' "
TABLES
* IT_BWDAT = "
* IT_BUKRS = "Range Structure for Company Codes
* IT_CURTP = "Ranges Structure for Currency Types
* ET_PROTDAT = "Management Data for Foreign Currency Valuations
EXCEPTIONS
WRONG_INPUT = 1 NOT_FOUND = 2
IMPORTING Parameters details for FKK_READ_FOREIGN_CURR_VAL_RUN
I_BWVAR -
Data type: DFKKFWBEW-BWVAROptional: Yes
Call by Reference: Yes
I_BWBER -
Data type: DFKKFWBEW-BWBEROptional: Yes
Call by Reference: Yes
I_LDGRP - Ledger Group
Data type: DFKKFWBEW-LDGRPOptional: Yes
Call by Reference: Yes
I_CANC -
Data type: STOFLG_KKOptional: Yes
Call by Reference: Yes
I_RLDNR -
Data type: DFKKFWBEW-RLDNRDefault: SPACE
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for FKK_READ_FOREIGN_CURR_VAL_RUN
IT_BWDAT -
Data type: FKKR_BWDATOptional: Yes
Call by Reference: Yes
IT_BUKRS - Range Structure for Company Codes
Data type: FKKR_BUKRSOptional: Yes
Call by Reference: Yes
IT_CURTP - Ranges Structure for Currency Types
Data type: FKKR_CURTPOptional: Yes
Call by Reference: Yes
ET_PROTDAT - Management Data for Foreign Currency Valuations
Data type: DFKKFWBEWOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
WRONG_INPUT - Wrong Input Parameter
Data type:Optional: No
Call by Reference: Yes
NOT_FOUND - Record Not Found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_READ_FOREIGN_CURR_VAL_RUN 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_i_bwvar | TYPE DFKKFWBEW-BWVAR, " | |||
lt_it_bwdat | TYPE STANDARD TABLE OF FKKR_BWDAT, " | |||
lv_wrong_input | TYPE FKKR_BWDAT, " | |||
lv_i_bwber | TYPE DFKKFWBEW-BWBER, " | |||
lt_it_bukrs | TYPE STANDARD TABLE OF FKKR_BUKRS, " | |||
lv_not_found | TYPE FKKR_BUKRS, " | |||
lv_i_ldgrp | TYPE DFKKFWBEW-LDGRP, " | |||
lt_it_curtp | TYPE STANDARD TABLE OF FKKR_CURTP, " | |||
lv_i_canc | TYPE STOFLG_KK, " | |||
lt_et_protdat | TYPE STANDARD TABLE OF DFKKFWBEW, " | |||
lv_i_rldnr | TYPE DFKKFWBEW-RLDNR. " SPACE |
  CALL FUNCTION 'FKK_READ_FOREIGN_CURR_VAL_RUN' " |
EXPORTING | ||
I_BWVAR | = lv_i_bwvar | |
I_BWBER | = lv_i_bwber | |
I_LDGRP | = lv_i_ldgrp | |
I_CANC | = lv_i_canc | |
I_RLDNR | = lv_i_rldnr | |
TABLES | ||
IT_BWDAT | = lt_it_bwdat | |
IT_BUKRS | = lt_it_bukrs | |
IT_CURTP | = lt_it_curtp | |
ET_PROTDAT | = lt_et_protdat | |
EXCEPTIONS | ||
WRONG_INPUT = 1 | ||
NOT_FOUND = 2 | ||
. " FKK_READ_FOREIGN_CURR_VAL_RUN |
ABAP code using 7.40 inline data declarations to call FM FKK_READ_FOREIGN_CURR_VAL_RUN
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 BWVAR FROM DFKKFWBEW INTO @DATA(ld_i_bwvar). | ||||
"SELECT single BWBER FROM DFKKFWBEW INTO @DATA(ld_i_bwber). | ||||
"SELECT single LDGRP FROM DFKKFWBEW INTO @DATA(ld_i_ldgrp). | ||||
"SELECT single RLDNR FROM DFKKFWBEW INTO @DATA(ld_i_rldnr). | ||||
DATA(ld_i_rldnr) | = ' '. | |||
Search for further information about these or an SAP related objects