SAP SCTC_REFRESH_IMPORT_TAB_COMP Function Module for Refresh scenario: import tables from files
SCTC_REFRESH_IMPORT_TAB_COMP is a standard sctc refresh import tab comp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Refresh scenario: import tables from files 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 sctc refresh import tab comp FM, simply by entering the name SCTC_REFRESH_IMPORT_TAB_COMP into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCTC_SC_EXEC
Program Name: SAPLSCTC_SC_EXEC
Main Program: SAPLSCTC_SC_EXEC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SCTC_REFRESH_IMPORT_TAB_COMP 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 'SCTC_REFRESH_IMPORT_TAB_COMP'"Refresh scenario: import tables from files.
EXPORTING
* RUN_R3TRANS = 'YES' "BDC-FieldValue
* CHECK_IMPORT = 'YES' "BDC-FieldValue
* DIR_IMPORT = 'DIR_GLOBAL' "BDC-FieldValue
* COMPONENT = 'CUSTOMER' "BDC-FieldValue
* IV_CUST_INFO = "
* COMPONENT_INFO = "
* POST_OPERATION = 'YES' "'YES' or 'NO'
IMPORTING
SUBRC = "Rückgabewert von ABAP-Anweisungen
TABLES
* MESSTAB = "Sammeln von Meldungen im SAP-System
* RETURN = "Returnparameter
IMPORTING Parameters details for SCTC_REFRESH_IMPORT_TAB_COMP
RUN_R3TRANS - BDC-FieldValue
Data type: BDCDATA-FVALDefault: 'YES'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_IMPORT - BDC-FieldValue
Data type: BDCDATA-FVALDefault: 'YES'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIR_IMPORT - BDC-FieldValue
Data type: BDCDATA-FVALDefault: 'DIR_GLOBAL'
Optional: Yes
Call by Reference: No ( called with pass by value option)
COMPONENT - BDC-FieldValue
Data type: BDCDATA-FVALDefault: 'CUSTOMER'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CUST_INFO -
Data type: STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
COMPONENT_INFO -
Data type: STRINGOptional: Yes
Call by Reference: No ( called with pass by value option)
POST_OPERATION - 'YES' or 'NO'
Data type: BDCDATA-FVALDefault: 'YES'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SCTC_REFRESH_IMPORT_TAB_COMP
SUBRC - Rückgabewert von ABAP-Anweisungen
Data type: SYST-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SCTC_REFRESH_IMPORT_TAB_COMP
MESSTAB - Sammeln von Meldungen im SAP-System
Data type: BDCMSGCOLLOptional: Yes
Call by Reference: Yes
RETURN - Returnparameter
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for SCTC_REFRESH_IMPORT_TAB_COMP 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_subrc | TYPE SYST-SUBRC, " | |||
| lt_messtab | TYPE STANDARD TABLE OF BDCMSGCOLL, " | |||
| lv_run_r3trans | TYPE BDCDATA-FVAL, " 'YES' | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_check_import | TYPE BDCDATA-FVAL, " 'YES' | |||
| lv_dir_import | TYPE BDCDATA-FVAL, " 'DIR_GLOBAL' | |||
| lv_component | TYPE BDCDATA-FVAL, " 'CUSTOMER' | |||
| lv_iv_cust_info | TYPE STRING, " | |||
| lv_component_info | TYPE STRING, " | |||
| lv_post_operation | TYPE BDCDATA-FVAL. " 'YES' |
|   CALL FUNCTION 'SCTC_REFRESH_IMPORT_TAB_COMP' "Refresh scenario: import tables from files |
| EXPORTING | ||
| RUN_R3TRANS | = lv_run_r3trans | |
| CHECK_IMPORT | = lv_check_import | |
| DIR_IMPORT | = lv_dir_import | |
| COMPONENT | = lv_component | |
| IV_CUST_INFO | = lv_iv_cust_info | |
| COMPONENT_INFO | = lv_component_info | |
| POST_OPERATION | = lv_post_operation | |
| IMPORTING | ||
| SUBRC | = lv_subrc | |
| TABLES | ||
| MESSTAB | = lt_messtab | |
| RETURN | = lt_return | |
| . " SCTC_REFRESH_IMPORT_TAB_COMP | ||
ABAP code using 7.40 inline data declarations to call FM SCTC_REFRESH_IMPORT_TAB_COMP
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 SUBRC FROM SYST INTO @DATA(ld_subrc). | ||||
| "SELECT single FVAL FROM BDCDATA INTO @DATA(ld_run_r3trans). | ||||
| DATA(ld_run_r3trans) | = 'YES'. | |||
| "SELECT single FVAL FROM BDCDATA INTO @DATA(ld_check_import). | ||||
| DATA(ld_check_import) | = 'YES'. | |||
| "SELECT single FVAL FROM BDCDATA INTO @DATA(ld_dir_import). | ||||
| DATA(ld_dir_import) | = 'DIR_GLOBAL'. | |||
| "SELECT single FVAL FROM BDCDATA INTO @DATA(ld_component). | ||||
| DATA(ld_component) | = 'CUSTOMER'. | |||
| "SELECT single FVAL FROM BDCDATA INTO @DATA(ld_post_operation). | ||||
| DATA(ld_post_operation) | = 'YES'. | |||
Search for further information about these or an SAP related objects