SAP FC_DATA_CONSISTENCY_CHECK Function Module for
FC_DATA_CONSISTENCY_CHECK is a standard fc data consistency check 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 fc data consistency check FM, simply by entering the name FC_DATA_CONSISTENCY_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: FC01
Program Name: SAPLFC01
Main Program: SAPLFC01
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FC_DATA_CONSISTENCY_CHECK 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 'FC_DATA_CONSISTENCY_CHECK'".
EXPORTING
* DIMEN = "
* FLAG_COMPLETE_SELECT = ' ' "
* FLAG_ECMCT_SELECT = 'X' "
* FLAG_ECMCA_SELECT = 'X' "
* FLAG_TF620_SELECT = 'X' "
* FLAG_TF630_SELECT = 'X' "
IMPORTING
NUM_ENTRIES_ECMCT_EXT_ERR = "
NUM_ENTRIES_TF620_EXT_ERR = "
NUM_ENTRIES_TF630_EXT_ERR = "
NUM_ENTRIES_ECMCT_CMP_ERR = "
NUM_ENTRIES_ECMCA_CMP_ERR = "
NUM_ENTRIES_TF620_CMP_ERR = "
NUM_ENTRIES_TF630_CMP_ERR = "
TABLES
I_SO_ITCLG = "
* E_T_TF620_CMP_ERR = "
* E_T_TF630_CMP_ERR = "
I_SO_ITEM = "
* I_SO_YEAR = "
I_T_ITBD = "
* E_T_ECMCT_EXT_ERR = "
* E_T_TF620_EXT_ERR = "
* E_T_TF630_EXT_ERR = "
* E_T_ECMCT_CMP_ERR = "
* E_T_ECMCA_CMP_ERR = "
IMPORTING Parameters details for FC_DATA_CONSISTENCY_CHECK
DIMEN -
Data type: TF160-DIMENOptional: Yes
Call by Reference: No ( called with pass by value option)
FLAG_COMPLETE_SELECT -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLAG_ECMCT_SELECT -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLAG_ECMCA_SELECT -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLAG_TF620_SELECT -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLAG_TF630_SELECT -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FC_DATA_CONSISTENCY_CHECK
NUM_ENTRIES_ECMCT_EXT_ERR -
Data type: SY-TFILLOptional: No
Call by Reference: Yes
NUM_ENTRIES_TF620_EXT_ERR -
Data type: SY-TFILLOptional: No
Call by Reference: Yes
NUM_ENTRIES_TF630_EXT_ERR -
Data type: SY-TFILLOptional: No
Call by Reference: Yes
NUM_ENTRIES_ECMCT_CMP_ERR -
Data type: SY-TFILLOptional: No
Call by Reference: Yes
NUM_ENTRIES_ECMCA_CMP_ERR -
Data type: SY-TFILLOptional: No
Call by Reference: Yes
NUM_ENTRIES_TF620_CMP_ERR -
Data type: SY-TFILLOptional: No
Call by Reference: Yes
NUM_ENTRIES_TF630_CMP_ERR -
Data type: SY-TFILLOptional: No
Call by Reference: Yes
TABLES Parameters details for FC_DATA_CONSISTENCY_CHECK
I_SO_ITCLG -
Data type: FC00_T_RANGEOptional: No
Call by Reference: No ( called with pass by value option)
E_T_TF620_CMP_ERR -
Data type: TF620Optional: Yes
Call by Reference: No ( called with pass by value option)
E_T_TF630_CMP_ERR -
Data type: TF630Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SO_ITEM -
Data type: FC00_T_RANGEOptional: No
Call by Reference: No ( called with pass by value option)
I_SO_YEAR -
Data type: FC00_T_RANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_T_ITBD -
Data type: FC01_T_ITBDOptional: No
Call by Reference: No ( called with pass by value option)
E_T_ECMCT_EXT_ERR -
Data type: FC01_T_DATA_EXTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_T_TF620_EXT_ERR -
Data type: FC01_T_DATA_EXTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_T_TF630_EXT_ERR -
Data type: FC01_T_DATA_EXTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_T_ECMCT_CMP_ERR -
Data type: ECMCTOptional: Yes
Call by Reference: No ( called with pass by value option)
E_T_ECMCA_CMP_ERR -
Data type: ECMCAOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FC_DATA_CONSISTENCY_CHECK 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_dimen | TYPE TF160-DIMEN, " | |||
| lt_i_so_itclg | TYPE STANDARD TABLE OF FC00_T_RANGE, " | |||
| lv_num_entries_ecmct_ext_err | TYPE SY-TFILL, " | |||
| lt_e_t_tf620_cmp_err | TYPE STANDARD TABLE OF TF620, " | |||
| lt_e_t_tf630_cmp_err | TYPE STANDARD TABLE OF TF630, " | |||
| lt_i_so_item | TYPE STANDARD TABLE OF FC00_T_RANGE, " | |||
| lv_flag_complete_select | TYPE C, " ' ' | |||
| lv_num_entries_tf620_ext_err | TYPE SY-TFILL, " | |||
| lt_i_so_year | TYPE STANDARD TABLE OF FC00_T_RANGE, " | |||
| lv_flag_ecmct_select | TYPE C, " 'X' | |||
| lv_num_entries_tf630_ext_err | TYPE SY-TFILL, " | |||
| lt_i_t_itbd | TYPE STANDARD TABLE OF FC01_T_ITBD, " | |||
| lv_flag_ecmca_select | TYPE C, " 'X' | |||
| lv_num_entries_ecmct_cmp_err | TYPE SY-TFILL, " | |||
| lt_e_t_ecmct_ext_err | TYPE STANDARD TABLE OF FC01_T_DATA_EXT, " | |||
| lv_flag_tf620_select | TYPE C, " 'X' | |||
| lv_num_entries_ecmca_cmp_err | TYPE SY-TFILL, " | |||
| lt_e_t_tf620_ext_err | TYPE STANDARD TABLE OF FC01_T_DATA_EXT, " | |||
| lv_flag_tf630_select | TYPE C, " 'X' | |||
| lv_num_entries_tf620_cmp_err | TYPE SY-TFILL, " | |||
| lt_e_t_tf630_ext_err | TYPE STANDARD TABLE OF FC01_T_DATA_EXT, " | |||
| lv_num_entries_tf630_cmp_err | TYPE SY-TFILL, " | |||
| lt_e_t_ecmct_cmp_err | TYPE STANDARD TABLE OF ECMCT, " | |||
| lt_e_t_ecmca_cmp_err | TYPE STANDARD TABLE OF ECMCA. " |
|   CALL FUNCTION 'FC_DATA_CONSISTENCY_CHECK' " |
| EXPORTING | ||
| DIMEN | = lv_dimen | |
| FLAG_COMPLETE_SELECT | = lv_flag_complete_select | |
| FLAG_ECMCT_SELECT | = lv_flag_ecmct_select | |
| FLAG_ECMCA_SELECT | = lv_flag_ecmca_select | |
| FLAG_TF620_SELECT | = lv_flag_tf620_select | |
| FLAG_TF630_SELECT | = lv_flag_tf630_select | |
| IMPORTING | ||
| NUM_ENTRIES_ECMCT_EXT_ERR | = lv_num_entries_ecmct_ext_err | |
| NUM_ENTRIES_TF620_EXT_ERR | = lv_num_entries_tf620_ext_err | |
| NUM_ENTRIES_TF630_EXT_ERR | = lv_num_entries_tf630_ext_err | |
| NUM_ENTRIES_ECMCT_CMP_ERR | = lv_num_entries_ecmct_cmp_err | |
| NUM_ENTRIES_ECMCA_CMP_ERR | = lv_num_entries_ecmca_cmp_err | |
| NUM_ENTRIES_TF620_CMP_ERR | = lv_num_entries_tf620_cmp_err | |
| NUM_ENTRIES_TF630_CMP_ERR | = lv_num_entries_tf630_cmp_err | |
| TABLES | ||
| I_SO_ITCLG | = lt_i_so_itclg | |
| E_T_TF620_CMP_ERR | = lt_e_t_tf620_cmp_err | |
| E_T_TF630_CMP_ERR | = lt_e_t_tf630_cmp_err | |
| I_SO_ITEM | = lt_i_so_item | |
| I_SO_YEAR | = lt_i_so_year | |
| I_T_ITBD | = lt_i_t_itbd | |
| E_T_ECMCT_EXT_ERR | = lt_e_t_ecmct_ext_err | |
| E_T_TF620_EXT_ERR | = lt_e_t_tf620_ext_err | |
| E_T_TF630_EXT_ERR | = lt_e_t_tf630_ext_err | |
| E_T_ECMCT_CMP_ERR | = lt_e_t_ecmct_cmp_err | |
| E_T_ECMCA_CMP_ERR | = lt_e_t_ecmca_cmp_err | |
| . " FC_DATA_CONSISTENCY_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM FC_DATA_CONSISTENCY_CHECK
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 DIMEN FROM TF160 INTO @DATA(ld_dimen). | ||||
| "SELECT single TFILL FROM SY INTO @DATA(ld_num_entries_ecmct_ext_err). | ||||
| DATA(ld_flag_complete_select) | = ' '. | |||
| "SELECT single TFILL FROM SY INTO @DATA(ld_num_entries_tf620_ext_err). | ||||
| DATA(ld_flag_ecmct_select) | = 'X'. | |||
| "SELECT single TFILL FROM SY INTO @DATA(ld_num_entries_tf630_ext_err). | ||||
| DATA(ld_flag_ecmca_select) | = 'X'. | |||
| "SELECT single TFILL FROM SY INTO @DATA(ld_num_entries_ecmct_cmp_err). | ||||
| DATA(ld_flag_tf620_select) | = 'X'. | |||
| "SELECT single TFILL FROM SY INTO @DATA(ld_num_entries_ecmca_cmp_err). | ||||
| DATA(ld_flag_tf630_select) | = 'X'. | |||
| "SELECT single TFILL FROM SY INTO @DATA(ld_num_entries_tf620_cmp_err). | ||||
| "SELECT single TFILL FROM SY INTO @DATA(ld_num_entries_tf630_cmp_err). | ||||
Search for further information about these or an SAP related objects