SAP FKR2_HIST_BANK_CHANGED Function Module for
FKR2_HIST_BANK_CHANGED is a standard fkr2 hist bank changed 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 fkr2 hist bank changed FM, simply by entering the name FKR2_HIST_BANK_CHANGED into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKR2
Program Name: SAPLFKR2
Main Program: SAPLFKR2
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKR2_HIST_BANK_CHANGED 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 'FKR2_HIST_BANK_CHANGED'".
EXPORTING
I_GPART = "Business Partner Number
* I_CCARD_ID = ' ' "Payment Card ID
I_DAYS_PAST = "Number of Days in the Past
* I_TEST_MODE = ' ' "
* I_LAST_ONLY = ' ' "
I_AUSBGRD = "Write-Off Reason
* I_CHARGES_CREATE = ' ' "Credit Cleared Charges
* I_FIKEY = "Reconciliation Key for General Ledger
* I_FPRID = "Follow-Up Actions: Process ID
* I_BKVID = ' ' "Bank Details ID
IMPORTING
E_ERROR = "Error Indicator
TABLES
ET_MESSAGES = "Status Messages
IT_VKONTS = "
* T_DFKKRP = "Returns Lot: Data for Payment
IMPORTING Parameters details for FKR2_HIST_BANK_CHANGED
I_GPART - Business Partner Number
Data type: FKKVKP-GPARTOptional: No
Call by Reference: No ( called with pass by value option)
I_CCARD_ID - Payment Card ID
Data type: BUT0CC-CCARD_IDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DAYS_PAST - Number of Days in the Past
Data type: DPAST_KKOptional: No
Call by Reference: No ( called with pass by value option)
I_TEST_MODE -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LAST_ONLY -
Data type: XLAST_KKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AUSBGRD - Write-Off Reason
Data type: ABGRD_KKOptional: No
Call by Reference: No ( called with pass by value option)
I_CHARGES_CREATE - Credit Cleared Charges
Data type: XCRDT_KKDefault: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FIKEY - Reconciliation Key for General Ledger
Data type: FIKEY_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FPRID - Follow-Up Actions: Process ID
Data type: FPRID_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BKVID - Bank Details ID
Data type: BUT0BK-BKVIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKR2_HIST_BANK_CHANGED
E_ERROR - Error Indicator
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKR2_HIST_BANK_CHANGED
ET_MESSAGES - Status Messages
Data type: FKK_T_MSG_TEXTOptional: No
Call by Reference: Yes
IT_VKONTS -
Data type: FKK_T_GPVKVTOptional: No
Call by Reference: Yes
T_DFKKRP - Returns Lot: Data for Payment
Data type: DFKKRPOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FKR2_HIST_BANK_CHANGED 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_error | TYPE BOOLE-BOOLE, " | |||
| lv_i_gpart | TYPE FKKVKP-GPART, " | |||
| lt_et_messages | TYPE STANDARD TABLE OF FKK_T_MSG_TEXT, " | |||
| lv_i_ccard_id | TYPE BUT0CC-CCARD_ID, " SPACE | |||
| lt_it_vkonts | TYPE STANDARD TABLE OF FKK_T_GPVKVT, " | |||
| lv_i_days_past | TYPE DPAST_KK, " | |||
| lt_t_dfkkrp | TYPE STANDARD TABLE OF DFKKRP, " | |||
| lv_i_test_mode | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_last_only | TYPE XLAST_KK, " SPACE | |||
| lv_i_ausbgrd | TYPE ABGRD_KK, " | |||
| lv_i_charges_create | TYPE XCRDT_KK, " SPACE | |||
| lv_i_fikey | TYPE FIKEY_KK, " | |||
| lv_i_fprid | TYPE FPRID_KK, " | |||
| lv_i_bkvid | TYPE BUT0BK-BKVID. " SPACE |
|   CALL FUNCTION 'FKR2_HIST_BANK_CHANGED' " |
| EXPORTING | ||
| I_GPART | = lv_i_gpart | |
| I_CCARD_ID | = lv_i_ccard_id | |
| I_DAYS_PAST | = lv_i_days_past | |
| I_TEST_MODE | = lv_i_test_mode | |
| I_LAST_ONLY | = lv_i_last_only | |
| I_AUSBGRD | = lv_i_ausbgrd | |
| I_CHARGES_CREATE | = lv_i_charges_create | |
| I_FIKEY | = lv_i_fikey | |
| I_FPRID | = lv_i_fprid | |
| I_BKVID | = lv_i_bkvid | |
| IMPORTING | ||
| E_ERROR | = lv_e_error | |
| TABLES | ||
| ET_MESSAGES | = lt_et_messages | |
| IT_VKONTS | = lt_it_vkonts | |
| T_DFKKRP | = lt_t_dfkkrp | |
| . " FKR2_HIST_BANK_CHANGED | ||
ABAP code using 7.40 inline data declarations to call FM FKR2_HIST_BANK_CHANGED
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 BOOLE FROM BOOLE INTO @DATA(ld_e_error). | ||||
| "SELECT single GPART FROM FKKVKP INTO @DATA(ld_i_gpart). | ||||
| "SELECT single CCARD_ID FROM BUT0CC INTO @DATA(ld_i_ccard_id). | ||||
| DATA(ld_i_ccard_id) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_test_mode). | ||||
| DATA(ld_i_test_mode) | = ' '. | |||
| DATA(ld_i_last_only) | = ' '. | |||
| DATA(ld_i_charges_create) | = ' '. | |||
| "SELECT single BKVID FROM BUT0BK INTO @DATA(ld_i_bkvid). | ||||
| DATA(ld_i_bkvid) | = ' '. | |||
Search for further information about these or an SAP related objects