SAP BKK_CHEQUE_NO_BLOCK Function Module for Unlock Checks
BKK_CHEQUE_NO_BLOCK is a standard bkk cheque no block SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Unlock Checks 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 cheque no block FM, simply by entering the name BKK_CHEQUE_NO_BLOCK into the relevant SAP transaction such as SE37 or SE38.
Function Group: FBA7
Program Name: SAPLFBA7
Main Program: SAPLFBA7
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BKK_CHEQUE_NO_BLOCK 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_CHEQUE_NO_BLOCK'"Unlock Checks.
EXPORTING
* I_DATE = SY-DATUM "Date of Lock Removal
* I_TIME = SY-UZEIT "Time of Lock Removal
* I_USERNAME = SY-UNAME "User Name
I_TAB_TO_REL_LOCK = "Checks to Be Unlocked
IMPORTING
E_RC = "Return Code: (=0:Everything OK, <>0:Errors)
E_TAB_LOCK_RELEASED = "Successfully Locked Checks
IMPORTING Parameters details for BKK_CHEQUE_NO_BLOCK
I_DATE - Date of Lock Removal
Data type: IBKKASTAT-CASHB_SDATDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TIME - Time of Lock Removal
Data type: IBKKASTAT-CASHB_STIMDefault: SY-UZEIT
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_USERNAME - User Name
Data type: IBKKASTAT-UNAME_SDATDefault: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_TO_REL_LOCK - Checks to Be Unlocked
Data type: BKKS_TAB_CASHB_EXT_KEYOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BKK_CHEQUE_NO_BLOCK
E_RC - Return Code: (=0:Everything OK, <>0:Errors)
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
E_TAB_LOCK_RELEASED - Successfully Locked Checks
Data type: BKKS_TAB_CASHB_EXT_KEYOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BKK_CHEQUE_NO_BLOCK 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_date | TYPE IBKKASTAT-CASHB_SDAT, " SY-DATUM | |||
| lv_i_time | TYPE IBKKASTAT-CASHB_STIM, " SY-UZEIT | |||
| lv_e_tab_lock_released | TYPE BKKS_TAB_CASHB_EXT_KEY, " | |||
| lv_i_username | TYPE IBKKASTAT-UNAME_SDAT, " SY-UNAME | |||
| lv_i_tab_to_rel_lock | TYPE BKKS_TAB_CASHB_EXT_KEY. " |
|   CALL FUNCTION 'BKK_CHEQUE_NO_BLOCK' "Unlock Checks |
| EXPORTING | ||
| I_DATE | = lv_i_date | |
| I_TIME | = lv_i_time | |
| I_USERNAME | = lv_i_username | |
| I_TAB_TO_REL_LOCK | = lv_i_tab_to_rel_lock | |
| IMPORTING | ||
| E_RC | = lv_e_rc | |
| E_TAB_LOCK_RELEASED | = lv_e_tab_lock_released | |
| . " BKK_CHEQUE_NO_BLOCK | ||
ABAP code using 7.40 inline data declarations to call FM BKK_CHEQUE_NO_BLOCK
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 CASHB_SDAT FROM IBKKASTAT INTO @DATA(ld_i_date). | ||||
| DATA(ld_i_date) | = SY-DATUM. | |||
| "SELECT single CASHB_STIM FROM IBKKASTAT INTO @DATA(ld_i_time). | ||||
| DATA(ld_i_time) | = SY-UZEIT. | |||
| "SELECT single UNAME_SDAT FROM IBKKASTAT INTO @DATA(ld_i_username). | ||||
| DATA(ld_i_username) | = SY-UNAME. | |||
Search for further information about these or an SAP related objects