SAP FKKBOL_OPEN_ITEM_MAINTAIN Function Module for
FKKBOL_OPEN_ITEM_MAINTAIN is a standard fkkbol open item maintain 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 fkkbol open item maintain FM, simply by entering the name FKKBOL_OPEN_ITEM_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKB4_BOL
Program Name: SAPLFKB4_BOL
Main Program: SAPLFKB4_BOL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function FKKBOL_OPEN_ITEM_MAINTAIN 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 'FKKBOL_OPEN_ITEM_MAINTAIN'".
EXPORTING
I_FKKKO = "Header Data for Open Item Accounting Document
* I_WITHHTAX_OUT = 'X' "
* I_WITHHTAX_IN = 'X' "
* I_DATVZ = "
* I_ADD_FUNC = "Additional Functions in Account Maintenance
* I_FKKCLAMTS = "
* I_CONTINUE = ' ' "
* I_CALLER = ' ' "ID of User Who Called Up Transaction
* I_ONLYCLEAR = 'X' "
* I_AUGRD = ' ' "
* I_NO_CHANGES = ' ' "
* I_DETAILITEM = ' ' "
* I_NO_CASHDISC = ' ' "
IMPORTING
ET_FKKCL = "Table with Clearing Information
E_DIFFB = "
E_FKKAKONTO = "Transfer Fields for Posting on Account
E_RFKB4 = "
TABLES
T_FKKCL = "
T_YFKKCL = "
* T_BOL_REL = "OI Processing: Relations Between Items in List
* T_FKKOP_OLD = "
* T_FKKOPK_OLD = "
* T_FKKOP_NEW = "
* T_FKKOPK_NEW = "
* T_FKKBUPASEL = "
* T_CHANGES = "
* T_LOCK_CHANGES = "Locks for Open Items (Posting Interface) Change
* T_ITEM_LOCKS = "
IMPORTING Parameters details for FKKBOL_OPEN_ITEM_MAINTAIN
I_FKKKO - Header Data for Open Item Accounting Document
Data type: FKKKOOptional: No
Call by Reference: No ( called with pass by value option)
I_WITHHTAX_OUT -
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WITHHTAX_IN -
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DATVZ -
Data type: DATVZ_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ADD_FUNC - Additional Functions in Account Maintenance
Data type: FKK_ADD_FUNCOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FKKCLAMTS -
Data type: FKKCLAMTSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CONTINUE -
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CALLER - ID of User Who Called Up Transaction
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ONLYCLEAR -
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AUGRD -
Data type: AUGRD_KKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_CHANGES -
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DETAILITEM -
Data type: FKKOP-ABWTPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_CASHDISC -
Data type: BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKKBOL_OPEN_ITEM_MAINTAIN
ET_FKKCL - Table with Clearing Information
Data type: FKKCL_TOptional: No
Call by Reference: No ( called with pass by value option)
E_DIFFB -
Data type: RFKB4-DIFFBOptional: No
Call by Reference: No ( called with pass by value option)
E_FKKAKONTO - Transfer Fields for Posting on Account
Data type: FKKAKONTOOptional: No
Call by Reference: No ( called with pass by value option)
E_RFKB4 -
Data type: RFKB4Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKKBOL_OPEN_ITEM_MAINTAIN
T_FKKCL -
Data type: FKKCLOptional: No
Call by Reference: Yes
T_YFKKCL -
Data type: FKKCLOptional: No
Call by Reference: Yes
T_BOL_REL - OI Processing: Relations Between Items in List
Data type: RFKB4_BOL_RELOptional: Yes
Call by Reference: Yes
T_FKKOP_OLD -
Data type: FKKOPOptional: Yes
Call by Reference: Yes
T_FKKOPK_OLD -
Data type: FKKOPKOptional: Yes
Call by Reference: Yes
T_FKKOP_NEW -
Data type: FKKOPOptional: Yes
Call by Reference: Yes
T_FKKOPK_NEW -
Data type: FKKOPKOptional: Yes
Call by Reference: Yes
T_FKKBUPASEL -
Data type: FKKBUPASELOptional: Yes
Call by Reference: Yes
T_CHANGES -
Data type: FKKOP_CHG_INTOptional: Yes
Call by Reference: Yes
T_LOCK_CHANGES - Locks for Open Items (Posting Interface) Change
Data type: FKKOPCHL2Optional: Yes
Call by Reference: Yes
T_ITEM_LOCKS -
Data type: FKK_ITEM_LOCKSOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FKKBOL_OPEN_ITEM_MAINTAIN 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_fkkko | TYPE FKKKO, " | |||
lt_t_fkkcl | TYPE STANDARD TABLE OF FKKCL, " | |||
lv_et_fkkcl | TYPE FKKCL_T, " | |||
lt_t_yfkkcl | TYPE STANDARD TABLE OF FKKCL, " | |||
lv_i_withhtax_out | TYPE BOOLEAN, " 'X' | |||
lt_t_bol_rel | TYPE STANDARD TABLE OF RFKB4_BOL_REL, " | |||
lv_i_withhtax_in | TYPE BOOLEAN, " 'X' | |||
lv_i_datvz | TYPE DATVZ_KK, " | |||
lv_i_add_func | TYPE FKK_ADD_FUNC, " | |||
lv_e_diffb | TYPE RFKB4-DIFFB, " | |||
lv_i_fkkclamts | TYPE FKKCLAMTS, " | |||
lt_t_fkkop_old | TYPE STANDARD TABLE OF FKKOP, " | |||
lv_i_continue | TYPE BOOLEAN, " SPACE | |||
lv_e_fkkakonto | TYPE FKKAKONTO, " | |||
lt_t_fkkopk_old | TYPE STANDARD TABLE OF FKKOPK, " | |||
lv_e_rfkb4 | TYPE RFKB4, " | |||
lv_i_caller | TYPE C, " SPACE | |||
lt_t_fkkop_new | TYPE STANDARD TABLE OF FKKOP, " | |||
lv_i_onlyclear | TYPE BOOLEAN, " 'X' | |||
lt_t_fkkopk_new | TYPE STANDARD TABLE OF FKKOPK, " | |||
lv_i_augrd | TYPE AUGRD_KK, " SPACE | |||
lt_t_fkkbupasel | TYPE STANDARD TABLE OF FKKBUPASEL, " | |||
lt_t_changes | TYPE STANDARD TABLE OF FKKOP_CHG_INT, " | |||
lv_i_no_changes | TYPE BOOLEAN, " SPACE | |||
lv_i_detailitem | TYPE FKKOP-ABWTP, " SPACE | |||
lt_t_lock_changes | TYPE STANDARD TABLE OF FKKOPCHL2, " | |||
lt_t_item_locks | TYPE STANDARD TABLE OF FKK_ITEM_LOCKS, " | |||
lv_i_no_cashdisc | TYPE BOOLEAN. " SPACE |
  CALL FUNCTION 'FKKBOL_OPEN_ITEM_MAINTAIN' " |
EXPORTING | ||
I_FKKKO | = lv_i_fkkko | |
I_WITHHTAX_OUT | = lv_i_withhtax_out | |
I_WITHHTAX_IN | = lv_i_withhtax_in | |
I_DATVZ | = lv_i_datvz | |
I_ADD_FUNC | = lv_i_add_func | |
I_FKKCLAMTS | = lv_i_fkkclamts | |
I_CONTINUE | = lv_i_continue | |
I_CALLER | = lv_i_caller | |
I_ONLYCLEAR | = lv_i_onlyclear | |
I_AUGRD | = lv_i_augrd | |
I_NO_CHANGES | = lv_i_no_changes | |
I_DETAILITEM | = lv_i_detailitem | |
I_NO_CASHDISC | = lv_i_no_cashdisc | |
IMPORTING | ||
ET_FKKCL | = lv_et_fkkcl | |
E_DIFFB | = lv_e_diffb | |
E_FKKAKONTO | = lv_e_fkkakonto | |
E_RFKB4 | = lv_e_rfkb4 | |
TABLES | ||
T_FKKCL | = lt_t_fkkcl | |
T_YFKKCL | = lt_t_yfkkcl | |
T_BOL_REL | = lt_t_bol_rel | |
T_FKKOP_OLD | = lt_t_fkkop_old | |
T_FKKOPK_OLD | = lt_t_fkkopk_old | |
T_FKKOP_NEW | = lt_t_fkkop_new | |
T_FKKOPK_NEW | = lt_t_fkkopk_new | |
T_FKKBUPASEL | = lt_t_fkkbupasel | |
T_CHANGES | = lt_t_changes | |
T_LOCK_CHANGES | = lt_t_lock_changes | |
T_ITEM_LOCKS | = lt_t_item_locks | |
. " FKKBOL_OPEN_ITEM_MAINTAIN |
ABAP code using 7.40 inline data declarations to call FM FKKBOL_OPEN_ITEM_MAINTAIN
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.DATA(ld_i_withhtax_out) | = 'X'. | |||
DATA(ld_i_withhtax_in) | = 'X'. | |||
"SELECT single DIFFB FROM RFKB4 INTO @DATA(ld_e_diffb). | ||||
DATA(ld_i_continue) | = ' '. | |||
DATA(ld_i_caller) | = ' '. | |||
DATA(ld_i_onlyclear) | = 'X'. | |||
DATA(ld_i_augrd) | = ' '. | |||
DATA(ld_i_no_changes) | = ' '. | |||
"SELECT single ABWTP FROM FKKOP INTO @DATA(ld_i_detailitem). | ||||
DATA(ld_i_detailitem) | = ' '. | |||
DATA(ld_i_no_cashdisc) | = ' '. | |||
Search for further information about these or an SAP related objects