SAP FKK_SAMPLE_0493 Function Module for Event 0493: Document Validation
FKK_SAMPLE_0493 is a standard fkk sample 0493 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 0493: Document Validation 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 0493 FM, simply by entering the name FKK_SAMPLE_0493 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_0493 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_0493'"Event 0493: Document Validation.
EXPORTING
IV_COLIO_GUID = "Collaborative Liability GUID
IV_COLIO_TYPE = "Collaborative Liability Type
IS_DFKKOP = "Items in Contract Account Document
IS_DFKKKO = "Header Data in Open Item Accounting Document
IMPORTING
EV_DFKKOP_VALID = "
ET_MESSAGE = "Return Parameter Table
EV_TRACE_GUID = "UUID in X form (binary)
IMPORTING Parameters details for FKK_SAMPLE_0493
IV_COLIO_GUID - Collaborative Liability GUID
Data type: /BOBF/CONF_KEYOptional: No
Call by Reference: No ( called with pass by value option)
IV_COLIO_TYPE - Collaborative Liability Type
Data type: COL_OBJ_TYPE_KKOptional: No
Call by Reference: No ( called with pass by value option)
IS_DFKKOP - Items in Contract Account Document
Data type: DFKKOPOptional: No
Call by Reference: No ( called with pass by value option)
IS_DFKKKO - Header Data in Open Item Accounting Document
Data type: DFKKKOOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_SAMPLE_0493
EV_DFKKOP_VALID -
Data type: BOOLE_DOptional: No
Call by Reference: No ( called with pass by value option)
ET_MESSAGE - Return Parameter Table
Data type: BAPIRET2_TOptional: No
Call by Reference: No ( called with pass by value option)
EV_TRACE_GUID - UUID in X form (binary)
Data type: SYSUUID_XOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FKK_SAMPLE_0493 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_iv_colio_guid | TYPE /BOBF/CONF_KEY, " | |||
| lv_ev_dfkkop_valid | TYPE BOOLE_D, " | |||
| lv_et_message | TYPE BAPIRET2_T, " | |||
| lv_iv_colio_type | TYPE COL_OBJ_TYPE_KK, " | |||
| lv_is_dfkkop | TYPE DFKKOP, " | |||
| lv_ev_trace_guid | TYPE SYSUUID_X, " | |||
| lv_is_dfkkko | TYPE DFKKKO. " |
|   CALL FUNCTION 'FKK_SAMPLE_0493' "Event 0493: Document Validation |
| EXPORTING | ||
| IV_COLIO_GUID | = lv_iv_colio_guid | |
| IV_COLIO_TYPE | = lv_iv_colio_type | |
| IS_DFKKOP | = lv_is_dfkkop | |
| IS_DFKKKO | = lv_is_dfkkko | |
| IMPORTING | ||
| EV_DFKKOP_VALID | = lv_ev_dfkkop_valid | |
| ET_MESSAGE | = lv_et_message | |
| EV_TRACE_GUID | = lv_ev_trace_guid | |
| . " FKK_SAMPLE_0493 | ||
ABAP code using 7.40 inline data declarations to call FM FKK_SAMPLE_0493
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