SAP FKK_OPEN_ITEM_SELECT Function Module for
FKK_OPEN_ITEM_SELECT is a standard fkk open item select 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 select FM, simply by entering the name FKK_OPEN_ITEM_SELECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKB2
Program Name: SAPLFKB2
Main Program: SAPLFKB2
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function FKK_OPEN_ITEM_SELECT 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_SELECT'".
EXPORTING
I_APPLK = "
* I_ENQ_SCOPE = '3' "
* I_AUTH_ACTVT = '01' "Activity for authorization check
* I_ALL_PYORD_STATES = ' ' "
* I_ALL_PDKEY_STATES = ' ' "
* I_BOLETO_HBKID = ' ' "
* I_BOLETO_HKTID = ' ' "
* I_IGNORE_LOCKS = ' ' "
* I_CLEARED_ITEMS = ' ' "
* I_LATE_PAY = "Interface for Determining Surcharges on Payment
* I_FOR_PROMISE = ' ' "
* I_CONTINUE = ' ' "
* I_PROMISE_TO_REPLACE = ' ' "
* I_ADD_CHECKFUN = ' ' "
* I_LEDGER_GROUP = ' ' "
* I_NO_COLL_BILL_ITEMS = ' ' "
* I_NO_ENQUEUE = ' ' "
* I_PAYMENT_DATE = SY-DATUM "
* I_PAYMENT_CURR = "
* I_PAYMENT_AMOUNT = "Payment Amount
* I_WITHHTAX_OUT = 'X' "
* I_WITHHTAX_IN = 'X' "
IMPORTING
E_AVKEY = "
E_PYORD = "
E_PDKEY = "
E_MISSING_AUTH = "
TABLES
T_SELTAB = "Table with Selection Conditions ->
* T_IGNTAB = "
* T_ENQTAB = "
* T_FKKCL = "
* T_BUKTAB = "Table of Company Codes ->
* T_AGRTAB = "Table of Permitted Clearing Restrictions
* T_FIELDS = "Table of Errors to be Selected
* T_ITEM_LOCKS = "
EXCEPTIONS
CONCURRENT_CLEARING = 1 PAYMENT_ORDERS = 2
IMPORTING Parameters details for FKK_OPEN_ITEM_SELECT
I_APPLK -
Data type: FKKOP-APPLKOptional: No
Call by Reference: No ( called with pass by value option)
I_ENQ_SCOPE -
Data type: CDefault: '3'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AUTH_ACTVT - Activity for authorization check
Data type: ACTIV_AUTHDefault: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ALL_PYORD_STATES -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ALL_PDKEY_STATES -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BOLETO_HBKID -
Data type: HBKIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BOLETO_HKTID -
Data type: HKTIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_IGNORE_LOCKS -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CLEARED_ITEMS -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LATE_PAY - Interface for Determining Surcharges on Payment
Data type: FKK_LATE_PAYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FOR_PROMISE -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CONTINUE -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PROMISE_TO_REPLACE -
Data type: PPKEY_KKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ADD_CHECKFUN -
Data type: FUNCNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LEDGER_GROUP -
Data type: LDGRP_KKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_COLL_BILL_ITEMS -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_ENQUEUE -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PAYMENT_DATE -
Data type: FKKOP-FAEDSDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PAYMENT_CURR -
Data type: FKKOP-WAERSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PAYMENT_AMOUNT - Payment Amount
Data type: FKKOP-BETRWOptional: Yes
Call by Reference: No ( called with pass by value option)
I_WITHHTAX_OUT -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WITHHTAX_IN -
Data type: BOOLE-BOOLEDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_OPEN_ITEM_SELECT
E_AVKEY -
Data type: DFKKAVK-AVKEYOptional: No
Call by Reference: No ( called with pass by value option)
E_PYORD -
Data type: DFKKPOH-PYORDOptional: No
Call by Reference: No ( called with pass by value option)
E_PDKEY -
Data type: PDKEY_KKOptional: No
Call by Reference: No ( called with pass by value option)
E_MISSING_AUTH -
Data type: XFELDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKK_OPEN_ITEM_SELECT
T_SELTAB - Table with Selection Conditions ->
Data type: ISELTABOptional: No
Call by Reference: No ( called with pass by value option)
T_IGNTAB -
Data type: IIGNTABOptional: Yes
Call by Reference: Yes
T_ENQTAB -
Data type: IENQTABOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FKKCL -
Data type: FKKCLOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BUKTAB - Table of Company Codes ->
Data type: IBUKTABOptional: Yes
Call by Reference: No ( called with pass by value option)
T_AGRTAB - Table of Permitted Clearing Restrictions
Data type: IAGRTABOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FIELDS - Table of Errors to be Selected
Data type: FKKFLDTABOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ITEM_LOCKS -
Data type: FKK_ITEM_LOCKSOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
CONCURRENT_CLEARING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PAYMENT_ORDERS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_OPEN_ITEM_SELECT 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_avkey | TYPE DFKKAVK-AVKEY, " | |||
lv_i_applk | TYPE FKKOP-APPLK, " | |||
lt_t_seltab | TYPE STANDARD TABLE OF ISELTAB, " | |||
lv_concurrent_clearing | TYPE ISELTAB, " | |||
lv_i_enq_scope | TYPE C, " '3' | |||
lv_i_auth_actvt | TYPE ACTIV_AUTH, " '01' | |||
lv_i_all_pyord_states | TYPE XFELD, " SPACE | |||
lv_i_all_pdkey_states | TYPE XFELD, " SPACE | |||
lv_i_boleto_hbkid | TYPE HBKID, " SPACE | |||
lv_i_boleto_hktid | TYPE HKTID, " SPACE | |||
lv_i_ignore_locks | TYPE XFELD, " SPACE | |||
lv_i_cleared_items | TYPE XFELD, " SPACE | |||
lv_i_late_pay | TYPE FKK_LATE_PAY, " | |||
lv_i_for_promise | TYPE XFELD, " SPACE | |||
lv_e_pyord | TYPE DFKKPOH-PYORD, " | |||
lt_t_igntab | TYPE STANDARD TABLE OF IIGNTAB, " | |||
lv_i_continue | TYPE BOOLE-BOOLE, " SPACE | |||
lv_payment_orders | TYPE BOOLE, " | |||
lv_i_promise_to_replace | TYPE PPKEY_KK, " SPACE | |||
lv_i_add_checkfun | TYPE FUNCNAME, " SPACE | |||
lv_i_ledger_group | TYPE LDGRP_KK, " SPACE | |||
lv_e_pdkey | TYPE PDKEY_KK, " | |||
lt_t_enqtab | TYPE STANDARD TABLE OF IENQTAB, " | |||
lv_i_no_coll_bill_items | TYPE BOOLE-BOOLE, " SPACE | |||
lt_t_fkkcl | TYPE STANDARD TABLE OF FKKCL, " | |||
lv_i_no_enqueue | TYPE BOOLE-BOOLE, " SPACE | |||
lv_e_missing_auth | TYPE XFELD, " | |||
lt_t_buktab | TYPE STANDARD TABLE OF IBUKTAB, " | |||
lv_i_payment_date | TYPE FKKOP-FAEDS, " SY-DATUM | |||
lt_t_agrtab | TYPE STANDARD TABLE OF IAGRTAB, " | |||
lv_i_payment_curr | TYPE FKKOP-WAERS, " | |||
lt_t_fields | TYPE STANDARD TABLE OF FKKFLDTAB, " | |||
lv_i_payment_amount | TYPE FKKOP-BETRW, " | |||
lt_t_item_locks | TYPE STANDARD TABLE OF FKK_ITEM_LOCKS, " | |||
lv_i_withhtax_out | TYPE BOOLE-BOOLE, " 'X' | |||
lv_i_withhtax_in | TYPE BOOLE-BOOLE. " 'X' |
  CALL FUNCTION 'FKK_OPEN_ITEM_SELECT' " |
EXPORTING | ||
I_APPLK | = lv_i_applk | |
I_ENQ_SCOPE | = lv_i_enq_scope | |
I_AUTH_ACTVT | = lv_i_auth_actvt | |
I_ALL_PYORD_STATES | = lv_i_all_pyord_states | |
I_ALL_PDKEY_STATES | = lv_i_all_pdkey_states | |
I_BOLETO_HBKID | = lv_i_boleto_hbkid | |
I_BOLETO_HKTID | = lv_i_boleto_hktid | |
I_IGNORE_LOCKS | = lv_i_ignore_locks | |
I_CLEARED_ITEMS | = lv_i_cleared_items | |
I_LATE_PAY | = lv_i_late_pay | |
I_FOR_PROMISE | = lv_i_for_promise | |
I_CONTINUE | = lv_i_continue | |
I_PROMISE_TO_REPLACE | = lv_i_promise_to_replace | |
I_ADD_CHECKFUN | = lv_i_add_checkfun | |
I_LEDGER_GROUP | = lv_i_ledger_group | |
I_NO_COLL_BILL_ITEMS | = lv_i_no_coll_bill_items | |
I_NO_ENQUEUE | = lv_i_no_enqueue | |
I_PAYMENT_DATE | = lv_i_payment_date | |
I_PAYMENT_CURR | = lv_i_payment_curr | |
I_PAYMENT_AMOUNT | = lv_i_payment_amount | |
I_WITHHTAX_OUT | = lv_i_withhtax_out | |
I_WITHHTAX_IN | = lv_i_withhtax_in | |
IMPORTING | ||
E_AVKEY | = lv_e_avkey | |
E_PYORD | = lv_e_pyord | |
E_PDKEY | = lv_e_pdkey | |
E_MISSING_AUTH | = lv_e_missing_auth | |
TABLES | ||
T_SELTAB | = lt_t_seltab | |
T_IGNTAB | = lt_t_igntab | |
T_ENQTAB | = lt_t_enqtab | |
T_FKKCL | = lt_t_fkkcl | |
T_BUKTAB | = lt_t_buktab | |
T_AGRTAB | = lt_t_agrtab | |
T_FIELDS | = lt_t_fields | |
T_ITEM_LOCKS | = lt_t_item_locks | |
EXCEPTIONS | ||
CONCURRENT_CLEARING = 1 | ||
PAYMENT_ORDERS = 2 | ||
. " FKK_OPEN_ITEM_SELECT |
ABAP code using 7.40 inline data declarations to call FM FKK_OPEN_ITEM_SELECT
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 AVKEY FROM DFKKAVK INTO @DATA(ld_e_avkey). | ||||
"SELECT single APPLK FROM FKKOP INTO @DATA(ld_i_applk). | ||||
DATA(ld_i_enq_scope) | = '3'. | |||
DATA(ld_i_auth_actvt) | = '01'. | |||
DATA(ld_i_all_pyord_states) | = ' '. | |||
DATA(ld_i_all_pdkey_states) | = ' '. | |||
DATA(ld_i_boleto_hbkid) | = ' '. | |||
DATA(ld_i_boleto_hktid) | = ' '. | |||
DATA(ld_i_ignore_locks) | = ' '. | |||
DATA(ld_i_cleared_items) | = ' '. | |||
DATA(ld_i_for_promise) | = ' '. | |||
"SELECT single PYORD FROM DFKKPOH INTO @DATA(ld_e_pyord). | ||||
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_continue). | ||||
DATA(ld_i_continue) | = ' '. | |||
DATA(ld_i_promise_to_replace) | = ' '. | |||
DATA(ld_i_add_checkfun) | = ' '. | |||
DATA(ld_i_ledger_group) | = ' '. | |||
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_coll_bill_items). | ||||
DATA(ld_i_no_coll_bill_items) | = ' '. | |||
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_no_enqueue). | ||||
DATA(ld_i_no_enqueue) | = ' '. | |||
"SELECT single FAEDS FROM FKKOP INTO @DATA(ld_i_payment_date). | ||||
DATA(ld_i_payment_date) | = SY-DATUM. | |||
"SELECT single WAERS FROM FKKOP INTO @DATA(ld_i_payment_curr). | ||||
"SELECT single BETRW FROM FKKOP INTO @DATA(ld_i_payment_amount). | ||||
"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'. | |||
Search for further information about these or an SAP related objects