SAP BKK_COND_CLOSE_CORRECT_BAL Function Module for Correction of Last Balancing Balance
BKK_COND_CLOSE_CORRECT_BAL is a standard bkk cond close correct bal SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Correction of Last Balancing Balance 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 cond close correct bal FM, simply by entering the name BKK_COND_CLOSE_CORRECT_BAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: FB96
Program Name: SAPLFB96
Main Program: SAPLFB96
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BKK_COND_CLOSE_CORRECT_BAL 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_COND_CLOSE_CORRECT_BAL'"Correction of Last Balancing Balance.
EXPORTING
I_BKKRS = "
I_ACNUM_INT = "
* I_CLOS_TYP = G_CON_CONDITION "
I_ACCT_AMOUNT = "
I_AMOUNT_TYPE = "One-Character Indicator
* I_DATE = "Date for Amount Field (I_ACCT_AMOUNT)
* I_FLG_IN_UPDATE_TASK = ' ' "
IMPORTING
E_RC = "
EXCEPTIONS
WRONG_DATE = 1
IMPORTING Parameters details for BKK_COND_CLOSE_CORRECT_BAL
I_BKKRS -
Data type: BKK92-BKKRSOptional: No
Call by Reference: Yes
I_ACNUM_INT -
Data type: BKK92-ACNUM_INTOptional: No
Call by Reference: Yes
I_CLOS_TYP -
Data type: BKK92-CLOS_TYPDefault: G_CON_CONDITION
Optional: Yes
Call by Reference: Yes
I_ACCT_AMOUNT -
Data type: BKK92-BALANCEOptional: No
Call by Reference: Yes
I_AMOUNT_TYPE - One-Character Indicator
Data type: CHAR1Optional: No
Call by Reference: Yes
I_DATE - Date for Amount Field (I_ACCT_AMOUNT)
Data type: DATSOptional: Yes
Call by Reference: Yes
I_FLG_IN_UPDATE_TASK -
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for BKK_COND_CLOSE_CORRECT_BAL
E_RC -
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
EXCEPTIONS details
WRONG_DATE - Settlement Date is not the Date of the Last Settlement
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BKK_COND_CLOSE_CORRECT_BAL 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_rc | TYPE SY-SUBRC, " | |||
| lv_i_bkkrs | TYPE BKK92-BKKRS, " | |||
| lv_wrong_date | TYPE BKK92, " | |||
| lv_i_acnum_int | TYPE BKK92-ACNUM_INT, " | |||
| lv_i_clos_typ | TYPE BKK92-CLOS_TYP, " G_CON_CONDITION | |||
| lv_i_acct_amount | TYPE BKK92-BALANCE, " | |||
| lv_i_amount_type | TYPE CHAR1, " | |||
| lv_i_date | TYPE DATS, " | |||
| lv_i_flg_in_update_task | TYPE XFELD. " ' ' |
|   CALL FUNCTION 'BKK_COND_CLOSE_CORRECT_BAL' "Correction of Last Balancing Balance |
| EXPORTING | ||
| I_BKKRS | = lv_i_bkkrs | |
| I_ACNUM_INT | = lv_i_acnum_int | |
| I_CLOS_TYP | = lv_i_clos_typ | |
| I_ACCT_AMOUNT | = lv_i_acct_amount | |
| I_AMOUNT_TYPE | = lv_i_amount_type | |
| I_DATE | = lv_i_date | |
| I_FLG_IN_UPDATE_TASK | = lv_i_flg_in_update_task | |
| IMPORTING | ||
| E_RC | = lv_e_rc | |
| EXCEPTIONS | ||
| WRONG_DATE = 1 | ||
| . " BKK_COND_CLOSE_CORRECT_BAL | ||
ABAP code using 7.40 inline data declarations to call FM BKK_COND_CLOSE_CORRECT_BAL
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 SUBRC FROM SY INTO @DATA(ld_e_rc). | ||||
| "SELECT single BKKRS FROM BKK92 INTO @DATA(ld_i_bkkrs). | ||||
| "SELECT single ACNUM_INT FROM BKK92 INTO @DATA(ld_i_acnum_int). | ||||
| "SELECT single CLOS_TYP FROM BKK92 INTO @DATA(ld_i_clos_typ). | ||||
| DATA(ld_i_clos_typ) | = G_CON_CONDITION. | |||
| "SELECT single BALANCE FROM BKK92 INTO @DATA(ld_i_acct_amount). | ||||
| DATA(ld_i_flg_in_update_task) | = ' '. | |||
Search for further information about these or an SAP related objects