SAP FKK_OPEN_ITEM_MAINTAIN Function Module for









FKK_OPEN_ITEM_MAINTAIN is a standard fkk 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 fkk open item maintain FM, simply by entering the name FKK_OPEN_ITEM_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

Function Group: FKB4
Program Name: SAPLFKB4
Main Program: SAPLFKB4
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FKK_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 'FKK_OPEN_ITEM_MAINTAIN'"
EXPORTING
I_FKKKO = "
* I_AUGRD = ' ' "
* I_NO_BALANCE_CHECK = ' ' "
* I_NO_PARTIAL_CLEARING = ' ' "
* I_NO_CHANGES = ' ' "
* I_NO_ADDITIONAL_ITEMS = ' ' "
* I_NO_POSTING = ' ' "
* I_NO_TOLERANCE = ' ' "
* I_OBJBEZ = ' ' "
* I_OBJBEZN = ' ' "
* I_KEEP_DATA_ON_RW = ' ' "
* I_FKKCLAMTS = "
* I_PROPOSAL = ' ' "
* I_DETAILITEM = ' ' "
* I_NO_CASHDISC = ' ' "
* I_GOTO_POS_ACTIVE = ' ' "
* I_CONFIRM_BACK = ' ' "
* I_WITHHTAX_OUT = 'X' "
* I_WITHHTAX_IN = 'X' "
* I_POST_ON_ACCT = "
* I_SHORT_ACCT = "
* I_PROGN_SELMORE = "
* I_CONTINUE = ' ' "
* I_ANWND_SELMORE = "
* I_DATVZ = "
* I_TXTVW = "
* I_ADD_FUNC = "Additional Functions in Account Maintenance
* I_TEXT_FOR_RW = "
* I_LDGRP = "
* I_USING_SUBSCREEN = ' ' "
* I_ITEMS_PREPARED = ' ' "
* I_CALLER = ' ' "ID of User Who Called Up Transaction
* I_HEADERTEXT = ' ' "
* I_AUTOAMOUNT = ' ' "
* I_ONLYCLEAR = ' ' "

IMPORTING
E_SUBSCREEN = "
E_OKCOD = "Triggered Function Code
E_DIFFB = "
E_FKKAKONTO = "Transfer Fields for Posting on Account

TABLES
T_FKKCL = "
* T_SELTAB = "
* T_AGRTAB = "
* T_IGNTAB = "
* T_PUSH_INACTIVE = "
* 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 FKK_OPEN_ITEM_MAINTAIN

I_FKKKO -

Data type: FKKKO
Optional: No
Call by Reference: No ( called with pass by value option)

I_AUGRD -

Data type: AUGRD_KK
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_BALANCE_CHECK -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_PARTIAL_CLEARING -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_CHANGES -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_ADDITIONAL_ITEMS -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_POSTING -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_TOLERANCE -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OBJBEZ -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OBJBEZN -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KEEP_DATA_ON_RW -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FKKCLAMTS -

Data type: FKKCLAMTS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROPOSAL -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DETAILITEM -

Data type: FKKOP-ABWTP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NO_CASHDISC -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GOTO_POS_ACTIVE -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CONFIRM_BACK -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WITHHTAX_OUT -

Data type: BOOLE-BOOLE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_WITHHTAX_IN -

Data type: BOOLE-BOOLE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_POST_ON_ACCT -

Data type: BOOLE-BOOLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SHORT_ACCT -

Data type: BOOLE-BOOLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROGN_SELMORE -

Data type: TFK021K-PROGN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CONTINUE -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ANWND_SELMORE -

Data type: TFK021K-ANWND
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATVZ -

Data type: DATVZ_KK
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TXTVW -

Data type: TXTVW_KK
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ADD_FUNC - Additional Functions in Account Maintenance

Data type: FKK_ADD_FUNC
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TEXT_FOR_RW -

Data type: C
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LDGRP -

Data type: LDGRP_KK
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_USING_SUBSCREEN -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ITEMS_PREPARED -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CALLER - ID of User Who Called Up Transaction

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_HEADERTEXT -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AUTOAMOUNT -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ONLYCLEAR -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FKK_OPEN_ITEM_MAINTAIN

E_SUBSCREEN -

Data type: SY-DYNNR
Optional: No
Call by Reference: No ( called with pass by value option)

E_OKCOD - Triggered Function Code

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

E_DIFFB -

Data type: RFKB4-DIFFB
Optional: No
Call by Reference: No ( called with pass by value option)

E_FKKAKONTO - Transfer Fields for Posting on Account

Data type: FKKAKONTO
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for FKK_OPEN_ITEM_MAINTAIN

T_FKKCL -

Data type: FKKCL
Optional: No
Call by Reference: No ( called with pass by value option)

T_SELTAB -

Data type: ISELTAB
Optional: Yes
Call by Reference: Yes

T_AGRTAB -

Data type: IAGRTAB
Optional: Yes
Call by Reference: Yes

T_IGNTAB -

Data type: IIGNTAB
Optional: Yes
Call by Reference: Yes

T_PUSH_INACTIVE -

Data type: FKK_OI_PUSH_INACTIVE
Optional: Yes
Call by Reference: Yes

T_FKKOP_OLD -

Data type: FKKOP
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FKKOPK_OLD -

Data type: FKKOPK
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FKKOP_NEW -

Data type: FKKOP
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FKKOPK_NEW -

Data type: FKKOPK
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FKKBUPASEL -

Data type: FKKBUPASEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_CHANGES -

Data type: FKKOP_CHG_INT
Optional: Yes
Call by Reference: Yes

T_LOCK_CHANGES - Locks for Open Items (Posting Interface) Change

Data type: FKKOPCHL2
Optional: Yes
Call by Reference: Yes

T_ITEM_LOCKS -

Data type: FKK_ITEM_LOCKS
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for FKK_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_e_subscreen  TYPE SY-DYNNR, "   
lv_i_augrd  TYPE AUGRD_KK, "   SPACE
lt_t_seltab  TYPE STANDARD TABLE OF ISELTAB, "   
lt_t_agrtab  TYPE STANDARD TABLE OF IAGRTAB, "   
lv_i_no_balance_check  TYPE BOOLE-BOOLE, "   SPACE
lt_t_igntab  TYPE STANDARD TABLE OF IIGNTAB, "   
lv_i_no_partial_clearing  TYPE BOOLE-BOOLE, "   SPACE
lv_i_no_changes  TYPE BOOLE-BOOLE, "   SPACE
lt_t_push_inactive  TYPE STANDARD TABLE OF FKK_OI_PUSH_INACTIVE, "   
lv_i_no_additional_items  TYPE BOOLE-BOOLE, "   SPACE
lv_i_no_posting  TYPE BOOLE-BOOLE, "   SPACE
lv_i_no_tolerance  TYPE XFELD, "   SPACE
lv_i_objbez  TYPE C, "   SPACE
lv_i_objbezn  TYPE C, "   SPACE
lv_i_keep_data_on_rw  TYPE BOOLE-BOOLE, "   SPACE
lv_e_okcod  TYPE C, "   
lv_i_fkkclamts  TYPE FKKCLAMTS, "   
lt_t_fkkop_old  TYPE STANDARD TABLE OF FKKOP, "   
lv_i_proposal  TYPE BOOLE-BOOLE, "   SPACE
lv_i_detailitem  TYPE FKKOP-ABWTP, "   SPACE
lv_i_no_cashdisc  TYPE BOOLE-BOOLE, "   SPACE
lv_i_goto_pos_active  TYPE BOOLE-BOOLE, "   SPACE
lv_i_confirm_back  TYPE C, "   SPACE
lv_i_withhtax_out  TYPE BOOLE-BOOLE, "   'X'
lv_i_withhtax_in  TYPE BOOLE-BOOLE, "   'X'
lv_i_post_on_acct  TYPE BOOLE-BOOLE, "   
lv_i_short_acct  TYPE BOOLE-BOOLE, "   
lv_i_progn_selmore  TYPE TFK021K-PROGN, "   
lv_e_diffb  TYPE RFKB4-DIFFB, "   
lv_i_continue  TYPE BOOLE-BOOLE, "   SPACE
lt_t_fkkopk_old  TYPE STANDARD TABLE OF FKKOPK, "   
lv_i_anwnd_selmore  TYPE TFK021K-ANWND, "   
lv_i_datvz  TYPE DATVZ_KK, "   
lv_i_txtvw  TYPE TXTVW_KK, "   
lv_i_add_func  TYPE FKK_ADD_FUNC, "   
lv_i_text_for_rw  TYPE C, "   
lv_i_ldgrp  TYPE LDGRP_KK, "   
lv_e_fkkakonto  TYPE FKKAKONTO, "   
lt_t_fkkop_new  TYPE STANDARD TABLE OF FKKOP, "   
lv_i_using_subscreen  TYPE BOOLE-BOOLE, "   SPACE
lt_t_fkkopk_new  TYPE STANDARD TABLE OF FKKOPK, "   
lv_i_items_prepared  TYPE BOOLE-BOOLE, "   SPACE
lv_i_caller  TYPE C, "   SPACE
lt_t_fkkbupasel  TYPE STANDARD TABLE OF FKKBUPASEL, "   
lt_t_changes  TYPE STANDARD TABLE OF FKKOP_CHG_INT, "   
lv_i_headertext  TYPE C, "   SPACE
lv_i_autoamount  TYPE BOOLE-BOOLE, "   SPACE
lt_t_lock_changes  TYPE STANDARD TABLE OF FKKOPCHL2, "   
lv_i_onlyclear  TYPE BOOLE-BOOLE, "   SPACE
lt_t_item_locks  TYPE STANDARD TABLE OF FKK_ITEM_LOCKS. "   

  CALL FUNCTION 'FKK_OPEN_ITEM_MAINTAIN'  "
    EXPORTING
         I_FKKKO = lv_i_fkkko
         I_AUGRD = lv_i_augrd
         I_NO_BALANCE_CHECK = lv_i_no_balance_check
         I_NO_PARTIAL_CLEARING = lv_i_no_partial_clearing
         I_NO_CHANGES = lv_i_no_changes
         I_NO_ADDITIONAL_ITEMS = lv_i_no_additional_items
         I_NO_POSTING = lv_i_no_posting
         I_NO_TOLERANCE = lv_i_no_tolerance
         I_OBJBEZ = lv_i_objbez
         I_OBJBEZN = lv_i_objbezn
         I_KEEP_DATA_ON_RW = lv_i_keep_data_on_rw
         I_FKKCLAMTS = lv_i_fkkclamts
         I_PROPOSAL = lv_i_proposal
         I_DETAILITEM = lv_i_detailitem
         I_NO_CASHDISC = lv_i_no_cashdisc
         I_GOTO_POS_ACTIVE = lv_i_goto_pos_active
         I_CONFIRM_BACK = lv_i_confirm_back
         I_WITHHTAX_OUT = lv_i_withhtax_out
         I_WITHHTAX_IN = lv_i_withhtax_in
         I_POST_ON_ACCT = lv_i_post_on_acct
         I_SHORT_ACCT = lv_i_short_acct
         I_PROGN_SELMORE = lv_i_progn_selmore
         I_CONTINUE = lv_i_continue
         I_ANWND_SELMORE = lv_i_anwnd_selmore
         I_DATVZ = lv_i_datvz
         I_TXTVW = lv_i_txtvw
         I_ADD_FUNC = lv_i_add_func
         I_TEXT_FOR_RW = lv_i_text_for_rw
         I_LDGRP = lv_i_ldgrp
         I_USING_SUBSCREEN = lv_i_using_subscreen
         I_ITEMS_PREPARED = lv_i_items_prepared
         I_CALLER = lv_i_caller
         I_HEADERTEXT = lv_i_headertext
         I_AUTOAMOUNT = lv_i_autoamount
         I_ONLYCLEAR = lv_i_onlyclear
    IMPORTING
         E_SUBSCREEN = lv_e_subscreen
         E_OKCOD = lv_e_okcod
         E_DIFFB = lv_e_diffb
         E_FKKAKONTO = lv_e_fkkakonto
    TABLES
         T_FKKCL = lt_t_fkkcl
         T_SELTAB = lt_t_seltab
         T_AGRTAB = lt_t_agrtab
         T_IGNTAB = lt_t_igntab
         T_PUSH_INACTIVE = lt_t_push_inactive
         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
. " FKK_OPEN_ITEM_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM FKK_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.

 
 
"SELECT single DYNNR FROM SY INTO @DATA(ld_e_subscreen).
 
DATA(ld_i_augrd) = ' '.
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_balance_check).
DATA(ld_i_no_balance_check) = ' '.
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_partial_clearing).
DATA(ld_i_no_partial_clearing) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_changes).
DATA(ld_i_no_changes) = ' '.
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_additional_items).
DATA(ld_i_no_additional_items) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_posting).
DATA(ld_i_no_posting) = ' '.
 
DATA(ld_i_no_tolerance) = ' '.
 
DATA(ld_i_objbez) = ' '.
 
DATA(ld_i_objbezn) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_keep_data_on_rw).
DATA(ld_i_keep_data_on_rw) = ' '.
 
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_proposal).
DATA(ld_i_proposal) = ' '.
 
"SELECT single ABWTP FROM FKKOP INTO @DATA(ld_i_detailitem).
DATA(ld_i_detailitem) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_cashdisc).
DATA(ld_i_no_cashdisc) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_goto_pos_active).
DATA(ld_i_goto_pos_active) = ' '.
 
DATA(ld_i_confirm_back) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_withhtax_out).
DATA(ld_i_withhtax_out) = 'X'.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_withhtax_in).
DATA(ld_i_withhtax_in) = 'X'.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_post_on_acct).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_short_acct).
 
"SELECT single PROGN FROM TFK021K INTO @DATA(ld_i_progn_selmore).
 
"SELECT single DIFFB FROM RFKB4 INTO @DATA(ld_e_diffb).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_continue).
DATA(ld_i_continue) = ' '.
 
 
"SELECT single ANWND FROM TFK021K INTO @DATA(ld_i_anwnd_selmore).
 
 
 
 
 
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_using_subscreen).
DATA(ld_i_using_subscreen) = ' '.
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_items_prepared).
DATA(ld_i_items_prepared) = ' '.
 
DATA(ld_i_caller) = ' '.
 
 
 
DATA(ld_i_headertext) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_autoamount).
DATA(ld_i_autoamount) = ' '.
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_onlyclear).
DATA(ld_i_onlyclear) = ' '.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!