SAP FKK_SAMPLE_1704 Function Module for Create Balanced Consecutive Account Statements for a Particular Interval
FKK_SAMPLE_1704 is a standard fkk sample 1704 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Balanced Consecutive Account Statements for a Particular Interval processing and below is the pattern details for this FM, 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 sample 1704 FM, simply by entering the name FKK_SAMPLE_1704 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKK4
Program Name: SAPLFKK4
Main Program: SAPLFKK4
Appliation area: F
Release date: 30-Nov-1998
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function FKK_SAMPLE_1704 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_SAMPLE_1704'"Create Balanced Consecutive Account Statements for a Particular Interval.
EXPORTING
I_LOW = "Lower Limit for Contract Accounts
I_HIGH = "Upper Limit for Contract Accounts
* I_FKKCOCC = "Run Parameters
* I_FKK_PROT = "Additional Log: Parameters
* I_BASICS = "Base parameters
CHANGING
C_TEST_NUM = "Tested Attempts
C_SUCCESS_NUM = "Successful Attempts
TABLES
* T_FIMSG = "FI Message Table
* T_BUKRS = "Company Code Restriction
* T_GPART = "Business Partner Restriction
* T_VKONT = "Contract Account Restriction
* T_FKKCOINFO = "Required Periods
* T_PROT_GPART = "Additional Log: Business Partner
* T_PROT_VKONT = "Additional Log: Contract Account
IMPORTING Parameters details for FKK_SAMPLE_1704
I_LOW - Lower Limit for Contract Accounts
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_HIGH - Upper Limit for Contract Accounts
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
I_FKKCOCC - Run Parameters
Data type: FKKCOCCOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FKK_PROT - Additional Log: Parameters
Data type: FKKPROTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BASICS - Base parameters
Data type: FKK_MAD_BASICSOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for FKK_SAMPLE_1704
C_TEST_NUM - Tested Attempts
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
C_SUCCESS_NUM - Successful Attempts
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKK_SAMPLE_1704
T_FIMSG - FI Message Table
Data type: FIMSGOptional: Yes
Call by Reference: No ( called with pass by value option)
T_BUKRS - Company Code Restriction
Data type: FKKR_BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
T_GPART - Business Partner Restriction
Data type: FKKR_GPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_VKONT - Contract Account Restriction
Data type: FKKR_VKONTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FKKCOINFO - Required Periods
Data type: FKKCOINFOOptional: Yes
Call by Reference: No ( called with pass by value option)
T_PROT_GPART - Additional Log: Business Partner
Data type: FKKR_GPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_PROT_VKONT - Additional Log: Contract Account
Data type: FKKR_VKONTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FKK_SAMPLE_1704 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_low | TYPE C, " | |||
lt_t_fimsg | TYPE STANDARD TABLE OF FIMSG, " | |||
lv_c_test_num | TYPE I, " | |||
lv_i_high | TYPE C, " | |||
lt_t_bukrs | TYPE STANDARD TABLE OF FKKR_BUKRS, " | |||
lv_c_success_num | TYPE I, " | |||
lt_t_gpart | TYPE STANDARD TABLE OF FKKR_GPART, " | |||
lv_i_fkkcocc | TYPE FKKCOCC, " | |||
lt_t_vkont | TYPE STANDARD TABLE OF FKKR_VKONT, " | |||
lv_i_fkk_prot | TYPE FKKPROT, " | |||
lv_i_basics | TYPE FKK_MAD_BASICS, " | |||
lt_t_fkkcoinfo | TYPE STANDARD TABLE OF FKKCOINFO, " | |||
lt_t_prot_gpart | TYPE STANDARD TABLE OF FKKR_GPART, " | |||
lt_t_prot_vkont | TYPE STANDARD TABLE OF FKKR_VKONT. " |
  CALL FUNCTION 'FKK_SAMPLE_1704' "Create Balanced Consecutive Account Statements for a Particular Interval |
EXPORTING | ||
I_LOW | = lv_i_low | |
I_HIGH | = lv_i_high | |
I_FKKCOCC | = lv_i_fkkcocc | |
I_FKK_PROT | = lv_i_fkk_prot | |
I_BASICS | = lv_i_basics | |
CHANGING | ||
C_TEST_NUM | = lv_c_test_num | |
C_SUCCESS_NUM | = lv_c_success_num | |
TABLES | ||
T_FIMSG | = lt_t_fimsg | |
T_BUKRS | = lt_t_bukrs | |
T_GPART | = lt_t_gpart | |
T_VKONT | = lt_t_vkont | |
T_FKKCOINFO | = lt_t_fkkcoinfo | |
T_PROT_GPART | = lt_t_prot_gpart | |
T_PROT_VKONT | = lt_t_prot_vkont | |
. " FKK_SAMPLE_1704 |
ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_1704
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.Search for further information about these or an SAP related objects