SAP Function Modules

FKK_COLL_BILL_ITEMS_READ SAP Function module







FKK_COLL_BILL_ITEMS_READ 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_COLL_BILL_ITEMS_READ into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FKK_COLL_BILL_ITEMS_READ - FKK COLL BILL ITEMS READ





CALL FUNCTION 'FKK_COLL_BILL_ITEMS_READ' "
  EXPORTING
*   x_gpart =                   " gpart_kk      Business Partner Number
*   x_vkont =                   " vkont_kk      Contract Account Number
*   x_skont =                   " vkont_kk      Contract Account Number
*   x_abwbl =                   " fkkop-abwbl   Category of Substitute Document in FI-CA
    x_applk =                   " applk_kk      Application Area
*   x_only_open_items = SPACE   " boole-boole
*   x_only_clrd_items = SPACE   " boole-boole
  TABLES
    t_fkkop_c =                 " fkkop         Business Partner Items in Contract Account Document
    parent_fkkop =              " fkkop         Business Partner Items in Contract Account Document
    t_fkkvkp =                  " fkkvkp        Contract Account Partner-Specific
  EXCEPTIONS
    NO_DATA_FOUND = 1           "
    .  "  FKK_COLL_BILL_ITEMS_READ

ABAP code example for Function Module FKK_COLL_BILL_ITEMS_READ





The ABAP code below is a full code listing to execute function module FKK_COLL_BILL_ITEMS_READ 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_fkkop_c  TYPE STANDARD TABLE OF FKKOP,"TABLES PARAM
wa_t_fkkop_c  LIKE LINE OF it_t_fkkop_c ,
it_parent_fkkop  TYPE STANDARD TABLE OF FKKOP,"TABLES PARAM
wa_parent_fkkop  LIKE LINE OF it_parent_fkkop ,
it_t_fkkvkp  TYPE STANDARD TABLE OF FKKVKP,"TABLES PARAM
wa_t_fkkvkp  LIKE LINE OF it_t_fkkvkp .

DATA(ld_x_gpart) = 'Check type of data required'.
DATA(ld_x_vkont) = 'Check type of data required'.
DATA(ld_x_skont) = 'Check type of data required'.

DATA(ld_x_abwbl) = some text here
DATA(ld_x_applk) = 'Check type of data required'.

DATA(ld_x_only_open_items) = some text here

DATA(ld_x_only_clrd_items) = some text here

"populate fields of struture and append to itab
append wa_t_fkkop_c to it_t_fkkop_c.

"populate fields of struture and append to itab
append wa_parent_fkkop to it_parent_fkkop.

"populate fields of struture and append to itab
append wa_t_fkkvkp to it_t_fkkvkp. . CALL FUNCTION 'FKK_COLL_BILL_ITEMS_READ' EXPORTING * x_gpart = ld_x_gpart * x_vkont = ld_x_vkont * x_skont = ld_x_skont * x_abwbl = ld_x_abwbl x_applk = ld_x_applk * x_only_open_items = ld_x_only_open_items * x_only_clrd_items = ld_x_only_clrd_items TABLES t_fkkop_c = it_t_fkkop_c parent_fkkop = it_parent_fkkop t_fkkvkp = it_t_fkkvkp EXCEPTIONS NO_DATA_FOUND = 1 . " FKK_COLL_BILL_ITEMS_READ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_x_gpart  TYPE GPART_KK ,
it_t_fkkop_c  TYPE STANDARD TABLE OF FKKOP ,
wa_t_fkkop_c  LIKE LINE OF it_t_fkkop_c,
ld_x_vkont  TYPE VKONT_KK ,
it_parent_fkkop  TYPE STANDARD TABLE OF FKKOP ,
wa_parent_fkkop  LIKE LINE OF it_parent_fkkop,
ld_x_skont  TYPE VKONT_KK ,
it_t_fkkvkp  TYPE STANDARD TABLE OF FKKVKP ,
wa_t_fkkvkp  LIKE LINE OF it_t_fkkvkp,
ld_x_abwbl  TYPE FKKOP-ABWBL ,
ld_x_applk  TYPE APPLK_KK ,
ld_x_only_open_items  TYPE BOOLE-BOOLE ,
ld_x_only_clrd_items  TYPE BOOLE-BOOLE .

ld_x_gpart = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_fkkop_c to it_t_fkkop_c.
ld_x_vkont = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_parent_fkkop to it_parent_fkkop.
ld_x_skont = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_fkkvkp to it_t_fkkvkp.

ld_x_abwbl = some text here
ld_x_applk = 'Check type of data required'.

ld_x_only_open_items = some text here

ld_x_only_clrd_items = some text here

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_COLL_BILL_ITEMS_READ or its description.