SAP FKK_COLLECT_AGENCY_ITEMS Function Module for
FKK_COLLECT_AGENCY_ITEMS is a standard fkk collect agency items 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 collect agency items FM, simply by entering the name FKK_COLLECT_AGENCY_ITEMS into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKA5
Program Name: SAPLFKA5
Main Program: SAPLFKA5
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_COLLECT_AGENCY_ITEMS 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_COLLECT_AGENCY_ITEMS'".
EXPORTING
* I_GPART = "Business Partner Number
* IX_GPART = "
* I_INKGP = "
* IX_INKGP = "
* I_RVDAT = "Submission Date
* IX_RVDAT = "
* I_PRCST = "Processing Status for Outbound or Inbound
* IX_PRCST = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
IMPORTING
E_COUNT = "
TABLES
* T_GPART_RANGE = "Ranges Structure for Business Partner (FI-CA)
* T_INKGP_RANGE = "
* T_RVDAT_RANGE = "
* T_PRCST_RANGE = "
T_FKKCOLLITEM = "
T_FKKCOLLPAYMLINK = "Assignment of Collection Payments to Collection Units
EXCEPTIONS
INITIAL_VALUES = 1 NOT_FOUND = 2
IMPORTING Parameters details for FKK_COLLECT_AGENCY_ITEMS
I_GPART - Business Partner Number
Data type: FKKOP-GPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
IX_GPART -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_INKGP -
Data type: FKKOP-GPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
IX_INKGP -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RVDAT - Submission Date
Data type: DFKKCOLLITEM-RVDATOptional: Yes
Call by Reference: No ( called with pass by value option)
IX_RVDAT -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PRCST - Processing Status for Outbound or Inbound
Data type: DFKKCOLLITEM-PRCSTOptional: Yes
Call by Reference: No ( called with pass by value option)
IX_PRCST - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_COLLECT_AGENCY_ITEMS
E_COUNT -
Data type: SY-DBCNTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKK_COLLECT_AGENCY_ITEMS
T_GPART_RANGE - Ranges Structure for Business Partner (FI-CA)
Data type: FKKR_GPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_INKGP_RANGE -
Data type: FKKR_GPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RVDAT_RANGE -
Data type: FKKR_RVDATOptional: Yes
Call by Reference: Yes
T_PRCST_RANGE -
Data type: FKKR_PRCSTOptional: Yes
Call by Reference: Yes
T_FKKCOLLITEM -
Data type: DFKKCOLLITEMOptional: No
Call by Reference: Yes
T_FKKCOLLPAYMLINK - Assignment of Collection Payments to Collection Units
Data type: DFKKCOLLPAYMLINKOptional: No
Call by Reference: Yes
EXCEPTIONS details
INITIAL_VALUES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND - No Entry Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FKK_COLLECT_AGENCY_ITEMS 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_count | TYPE SY-DBCNT, " | |||
| lv_i_gpart | TYPE FKKOP-GPART, " | |||
| lt_t_gpart_range | TYPE STANDARD TABLE OF FKKR_GPART, " | |||
| lv_initial_values | TYPE FKKR_GPART, " | |||
| lv_ix_gpart | TYPE BOOLE-BOOLE, " | |||
| lv_not_found | TYPE BOOLE, " | |||
| lt_t_inkgp_range | TYPE STANDARD TABLE OF FKKR_GPART, " | |||
| lv_i_inkgp | TYPE FKKOP-GPART, " | |||
| lt_t_rvdat_range | TYPE STANDARD TABLE OF FKKR_RVDAT, " | |||
| lv_ix_inkgp | TYPE BOOLE-BOOLE, " | |||
| lt_t_prcst_range | TYPE STANDARD TABLE OF FKKR_PRCST, " | |||
| lv_i_rvdat | TYPE DFKKCOLLITEM-RVDAT, " | |||
| lt_t_fkkcollitem | TYPE STANDARD TABLE OF DFKKCOLLITEM, " | |||
| lv_ix_rvdat | TYPE BOOLE-BOOLE, " | |||
| lt_t_fkkcollpaymlink | TYPE STANDARD TABLE OF DFKKCOLLPAYMLINK, " | |||
| lv_i_prcst | TYPE DFKKCOLLITEM-PRCST, " | |||
| lv_ix_prcst | TYPE BOOLE-BOOLE. " |
|   CALL FUNCTION 'FKK_COLLECT_AGENCY_ITEMS' " |
| EXPORTING | ||
| I_GPART | = lv_i_gpart | |
| IX_GPART | = lv_ix_gpart | |
| I_INKGP | = lv_i_inkgp | |
| IX_INKGP | = lv_ix_inkgp | |
| I_RVDAT | = lv_i_rvdat | |
| IX_RVDAT | = lv_ix_rvdat | |
| I_PRCST | = lv_i_prcst | |
| IX_PRCST | = lv_ix_prcst | |
| IMPORTING | ||
| E_COUNT | = lv_e_count | |
| TABLES | ||
| T_GPART_RANGE | = lt_t_gpart_range | |
| T_INKGP_RANGE | = lt_t_inkgp_range | |
| T_RVDAT_RANGE | = lt_t_rvdat_range | |
| T_PRCST_RANGE | = lt_t_prcst_range | |
| T_FKKCOLLITEM | = lt_t_fkkcollitem | |
| T_FKKCOLLPAYMLINK | = lt_t_fkkcollpaymlink | |
| EXCEPTIONS | ||
| INITIAL_VALUES = 1 | ||
| NOT_FOUND = 2 | ||
| . " FKK_COLLECT_AGENCY_ITEMS | ||
ABAP code using 7.40 inline data declarations to call FM FKK_COLLECT_AGENCY_ITEMS
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 DBCNT FROM SY INTO @DATA(ld_e_count). | ||||
| "SELECT single GPART FROM FKKOP INTO @DATA(ld_i_gpart). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ix_gpart). | ||||
| "SELECT single GPART FROM FKKOP INTO @DATA(ld_i_inkgp). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ix_inkgp). | ||||
| "SELECT single RVDAT FROM DFKKCOLLITEM INTO @DATA(ld_i_rvdat). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ix_rvdat). | ||||
| "SELECT single PRCST FROM DFKKCOLLITEM INTO @DATA(ld_i_prcst). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ix_prcst). | ||||
Search for further information about these or an SAP related objects