SAP FKK_SAMPLE_0498 Function Module for Event 0498: Trigger Table Handling
FKK_SAMPLE_0498 is a standard fkk sample 0498 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Event 0498: Trigger Table Handling 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 0498 FM, simply by entering the name FKK_SAMPLE_0498 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKK_COL_EVENTS
Program Name: SAPLFKK_COL_EVENTS
Main Program: SAPLFKK_COL_EVENTS
Appliation area:
Release date: 07-Mar-2016
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_SAMPLE_0498 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_0498'"Event 0498: Trigger Table Handling.
EXPORTING
IS_FKKKO = "Header Data In Open Item Accounting Document
IS_FKKKO_REV = "Header Data In Open Item Accounting Document
IV_AUGRD = "Clearing Reason
* IV_AUGVD = "Value date for clearing
* IV_PROCESS = "
IV_PARTIAL_RESET = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IV_ADD_DOC = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
CHANGING
CT_FKKCL_TRIGGER = "Table Type for FKKCL Trigger
CT_RAP_DETAIL_TRIGGER = "Table Type for Rap Detail Trigger
CV_WRITE_TRIGGER = "Flag to decide if trigger entries are created
CT_FKKOP = "Business Partner Items in Contract Account Document
CT_FKKOPK = "G/L Account Items in Open Item Account Document
CT_FKKRAP = "Clearing/Reversal History (Line Item Level)
IMPORTING Parameters details for FKK_SAMPLE_0498
IS_FKKKO - Header Data In Open Item Accounting Document
Data type: FKKKOOptional: No
Call by Reference: No ( called with pass by value option)
IS_FKKKO_REV - Header Data In Open Item Accounting Document
Data type: FKKKOOptional: No
Call by Reference: No ( called with pass by value option)
IV_AUGRD - Clearing Reason
Data type: FKKOP-AUGRDOptional: No
Call by Reference: No ( called with pass by value option)
IV_AUGVD - Value date for clearing
Data type: AUGVD_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PROCESS -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PARTIAL_RESET - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: No
Call by Reference: No ( called with pass by value option)
IV_ADD_DOC - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for FKK_SAMPLE_0498
CT_FKKCL_TRIGGER - Table Type for FKKCL Trigger
Data type: FKK_COL_T_FKKCL_TRIGGEROptional: No
Call by Reference: Yes
CT_RAP_DETAIL_TRIGGER - Table Type for Rap Detail Trigger
Data type: FKK_COL_T_RAP_DETAIL_TRIGGEROptional: No
Call by Reference: Yes
CV_WRITE_TRIGGER - Flag to decide if trigger entries are created
Data type: COL_WRITE_TRIGGER_KKOptional: No
Call by Reference: Yes
CT_FKKOP - Business Partner Items in Contract Account Document
Data type: FKKOP_TOptional: No
Call by Reference: Yes
CT_FKKOPK - G/L Account Items in Open Item Account Document
Data type: FKKOPK_TOptional: No
Call by Reference: Yes
CT_FKKRAP - Clearing/Reversal History (Line Item Level)
Data type: FKK_COL_T_FKKRAPOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_SAMPLE_0498 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_is_fkkko | TYPE FKKKO, " | |||
| lv_ct_fkkcl_trigger | TYPE FKK_COL_T_FKKCL_TRIGGER, " | |||
| lv_is_fkkko_rev | TYPE FKKKO, " | |||
| lv_ct_rap_detail_trigger | TYPE FKK_COL_T_RAP_DETAIL_TRIGGER, " | |||
| lv_iv_augrd | TYPE FKKOP-AUGRD, " | |||
| lv_cv_write_trigger | TYPE COL_WRITE_TRIGGER_KK, " | |||
| lv_ct_fkkop | TYPE FKKOP_T, " | |||
| lv_iv_augvd | TYPE AUGVD_KK, " | |||
| lv_ct_fkkopk | TYPE FKKOPK_T, " | |||
| lv_iv_process | TYPE C, " | |||
| lv_ct_fkkrap | TYPE FKK_COL_T_FKKRAP, " | |||
| lv_iv_partial_reset | TYPE BOOLE_D, " | |||
| lv_iv_add_doc | TYPE BOOLE_D. " |
|   CALL FUNCTION 'FKK_SAMPLE_0498' "Event 0498: Trigger Table Handling |
| EXPORTING | ||
| IS_FKKKO | = lv_is_fkkko | |
| IS_FKKKO_REV | = lv_is_fkkko_rev | |
| IV_AUGRD | = lv_iv_augrd | |
| IV_AUGVD | = lv_iv_augvd | |
| IV_PROCESS | = lv_iv_process | |
| IV_PARTIAL_RESET | = lv_iv_partial_reset | |
| IV_ADD_DOC | = lv_iv_add_doc | |
| CHANGING | ||
| CT_FKKCL_TRIGGER | = lv_ct_fkkcl_trigger | |
| CT_RAP_DETAIL_TRIGGER | = lv_ct_rap_detail_trigger | |
| CV_WRITE_TRIGGER | = lv_cv_write_trigger | |
| CT_FKKOP | = lv_ct_fkkop | |
| CT_FKKOPK | = lv_ct_fkkopk | |
| CT_FKKRAP | = lv_ct_fkkrap | |
| . " FKK_SAMPLE_0498 | ||
ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_0498
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 AUGRD FROM FKKOP INTO @DATA(ld_iv_augrd). | ||||
Search for further information about these or an SAP related objects