SAP Function Modules

FKK_OPEN_ITEM_SELECT_WITH_DATE SAP Function module







FKK_OPEN_ITEM_SELECT_WITH_DATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FKK_OPEN_ITEM_SELECT_WITH_DATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FKKOP03
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FKK_OPEN_ITEM_SELECT_WITH_DATE - FKK OPEN ITEM SELECT WITH DATE





CALL FUNCTION 'FKK_OPEN_ITEM_SELECT_WITH_DATE' "
  EXPORTING
    i_key_date =                " op_keydate_kk  Key Date for Analysis of Open Items
*   i_gpart =                   " fkk_rt_gpart  Range Table GPART
*   i_bukrs =                   " fkk_rt_bukrs  Range Table Company Code
*   i_gsber =                   " fkk_rt_gsber  Range Table GSBER
*   i_segment =                 " fkk_rt_segment  Range Table Segment for Segmental Reporting
*   i_hkont =                   " fkk_rt_hkont  Range Table HKONT
*   i_funcname =                " funcname      Function to Be Executed
*   i_fields =                  " fkk_fields    Field Names
*   i_with_instpln =            " xfeld         Installment Plan has Priority
*   i_with_collbill =           " xfeld         Collective Invoice has Priority
*   i_no_otherstat = 'X'        " xfeld         No Oth. Statistical Items
*   i_no_downpay =              " xfeld
*   i_vkont =                   " fkk_rt_vkont  Range Table VKONT
*   i_vtref =                   " fkk_rt_vtref  Range Table Type VTREF
*   i_with_opbuk =              " xfeld
*   i_no_augh =                 " xfeld         Ignore Clearing History
*   i_allitems =                " xfeld
* TABLES
*   t_op =                      " fkkop_copy
    .  "  FKK_OPEN_ITEM_SELECT_WITH_DATE

ABAP code example for Function Module FKK_OPEN_ITEM_SELECT_WITH_DATE





The ABAP code below is a full code listing to execute function module FKK_OPEN_ITEM_SELECT_WITH_DATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_t_op  TYPE STANDARD TABLE OF FKKOP_COPY,"TABLES PARAM
wa_t_op  LIKE LINE OF it_t_op .

DATA(ld_i_key_date) = 'Check type of data required'.
DATA(ld_i_gpart) = 'Check type of data required'.
DATA(ld_i_bukrs) = 'Check type of data required'.
DATA(ld_i_gsber) = 'Check type of data required'.
DATA(ld_i_segment) = 'Check type of data required'.
DATA(ld_i_hkont) = 'Check type of data required'.
DATA(ld_i_funcname) = 'Check type of data required'.
DATA(ld_i_fields) = 'Check type of data required'.
DATA(ld_i_with_instpln) = 'Check type of data required'.
DATA(ld_i_with_collbill) = 'Check type of data required'.
DATA(ld_i_no_otherstat) = 'Check type of data required'.
DATA(ld_i_no_downpay) = 'Check type of data required'.
DATA(ld_i_vkont) = 'Check type of data required'.
DATA(ld_i_vtref) = 'Check type of data required'.
DATA(ld_i_with_opbuk) = 'Check type of data required'.
DATA(ld_i_no_augh) = 'Check type of data required'.
DATA(ld_i_allitems) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_op to it_t_op. . CALL FUNCTION 'FKK_OPEN_ITEM_SELECT_WITH_DATE' EXPORTING i_key_date = ld_i_key_date * i_gpart = ld_i_gpart * i_bukrs = ld_i_bukrs * i_gsber = ld_i_gsber * i_segment = ld_i_segment * i_hkont = ld_i_hkont * i_funcname = ld_i_funcname * i_fields = ld_i_fields * i_with_instpln = ld_i_with_instpln * i_with_collbill = ld_i_with_collbill * i_no_otherstat = ld_i_no_otherstat * i_no_downpay = ld_i_no_downpay * i_vkont = ld_i_vkont * i_vtref = ld_i_vtref * i_with_opbuk = ld_i_with_opbuk * i_no_augh = ld_i_no_augh * i_allitems = ld_i_allitems * TABLES * t_op = it_t_op . " FKK_OPEN_ITEM_SELECT_WITH_DATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_i_key_date  TYPE OP_KEYDATE_KK ,
it_t_op  TYPE STANDARD TABLE OF FKKOP_COPY ,
wa_t_op  LIKE LINE OF it_t_op,
ld_i_gpart  TYPE FKK_RT_GPART ,
ld_i_bukrs  TYPE FKK_RT_BUKRS ,
ld_i_gsber  TYPE FKK_RT_GSBER ,
ld_i_segment  TYPE FKK_RT_SEGMENT ,
ld_i_hkont  TYPE FKK_RT_HKONT ,
ld_i_funcname  TYPE FUNCNAME ,
ld_i_fields  TYPE FKK_FIELDS ,
ld_i_with_instpln  TYPE XFELD ,
ld_i_with_collbill  TYPE XFELD ,
ld_i_no_otherstat  TYPE XFELD ,
ld_i_no_downpay  TYPE XFELD ,
ld_i_vkont  TYPE FKK_RT_VKONT ,
ld_i_vtref  TYPE FKK_RT_VTREF ,
ld_i_with_opbuk  TYPE XFELD ,
ld_i_no_augh  TYPE XFELD ,
ld_i_allitems  TYPE XFELD .

ld_i_key_date = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_op to it_t_op.
ld_i_gpart = 'Check type of data required'.
ld_i_bukrs = 'Check type of data required'.
ld_i_gsber = 'Check type of data required'.
ld_i_segment = 'Check type of data required'.
ld_i_hkont = 'Check type of data required'.
ld_i_funcname = 'Check type of data required'.
ld_i_fields = 'Check type of data required'.
ld_i_with_instpln = 'Check type of data required'.
ld_i_with_collbill = 'Check type of data required'.
ld_i_no_otherstat = 'Check type of data required'.
ld_i_no_downpay = 'Check type of data required'.
ld_i_vkont = 'Check type of data required'.
ld_i_vtref = 'Check type of data required'.
ld_i_with_opbuk = 'Check type of data required'.
ld_i_no_augh = 'Check type of data required'.
ld_i_allitems = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FKK_OPEN_ITEM_SELECT_WITH_DATE or its description.