SAP SCT1_DISPLAY_DIFFERENCES Function Module for Display differences
SCT1_DISPLAY_DIFFERENCES is a standard sct1 display differences SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display differences 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 sct1 display differences FM, simply by entering the name SCT1_DISPLAY_DIFFERENCES into the relevant SAP transaction such as SE37 or SE38.
Function Group: SCT1
Program Name: SAPLSCT1
Main Program: SAPLSCT1
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SCT1_DISPLAY_DIFFERENCES 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 'SCT1_DISPLAY_DIFFERENCES'"Display differences.
EXPORTING
* IV_CLIENT_REMOTE = "
* IV_CONV_EXIT_FLAG = "
* IV_NAMTAB_SORT_INDEX = "
* IV_NO_COMPARE = "
* IV_CALLED_FROM_SM30 = "
* IV_ADJ_000 = "
* IV_DISPLAY_ENTRY_TYPES = "L=local R=remote M=modified E=equal
* IV_BATCH_MODE = "
* IV_DISP_UPDT_BUTTON = ' ' "
* IV_BCSET_OFFSET = 0 "
* IS_WORK_LIST_HEADER = "
* IV_SYSTEM_NAME_REMOTE = "
* IV_DATA_ACCESS_RESTR_LOCAL = ' ' "
* IV_DATA_ACCESS_RESTR_REMOTE = ' ' "
* IV_SAP_RELEASE_REMOTE = "
* IV_LANGU_REMOTE = "
* IV_KIND_OF_DISPLAY = "
* IV_DISPLAY_MODE = "L=local R=remote C=compare A=adjust
* IV_COMPARE_ADJUST_FLAG = "C=only compare A=only adjust possible
* IV_WORK_LIST_INDEX = "
* IV_SORT_MODE = "A=ascending D=descending
IMPORTING
EV_UPDATE = "
EV_MARK_ENTRIES = "
EV_SUBRC = "
TABLES
* IT_BOX_LOCAL = "
* IT_KEYLIST = "
* IT_VIEW_KEYS_CMP = "
* IT_TEMPLATE_ATTR = "
* IT_ADDRESS = "
* IT_NAMTAB_STORED = "Nametab of View or Table for Nametab Comparison
* IT_NAMTAB_SINDEX = "Nametab of View or Table: Index of Two Nametabs
* IT_BOX_REMOTE = "
* IT_NAMTAB_LOCAL = "
* IT_NAMTAB_REMOTE = "
* IT_NAMTAB_INDEX = "
* IT_HEADER_LOCAL = "
* IT_HEADER_VIEW_LOCAL = "
* IT_HEADER_REMOTE = "
* IT_WORK_LIST = "
IMPORTING Parameters details for SCT1_DISPLAY_DIFFERENCES
IV_CLIENT_REMOTE -
Data type: SY-MANDTOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CONV_EXIT_FLAG -
Data type: NTAB_CMP-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_NAMTAB_SORT_INDEX -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_NO_COMPARE -
Data type: NTAB_CMP-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CALLED_FROM_SM30 -
Data type: NTAB_CMP-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_ADJ_000 -
Data type: NTAB_CMP-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DISPLAY_ENTRY_TYPES - L=local R=remote M=modified E=equal
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
IV_BATCH_MODE -
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DISP_UPDT_BUTTON -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_BCSET_OFFSET -
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_WORK_LIST_HEADER -
Data type: CMPWL_S_CMPWLH_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_SYSTEM_NAME_REMOTE -
Data type: SY-SYSIDOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DATA_ACCESS_RESTR_LOCAL -
Data type: NTAB_CMP-FLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_DATA_ACCESS_RESTR_REMOTE -
Data type: NTAB_CMP-FLAGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SAP_RELEASE_REMOTE -
Data type: SY-SAPRLOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LANGU_REMOTE -
Data type: SY-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_KIND_OF_DISPLAY -
Data type: NTAB_CMP-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_DISPLAY_MODE - L=local R=remote C=compare A=adjust
Data type: NTAB_CMP-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_COMPARE_ADJUST_FLAG - C=only compare A=only adjust possible
Data type: NTAB_CMP-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_WORK_LIST_INDEX -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_SORT_MODE - A=ascending D=descending
Data type: NTAB_CMP-FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SCT1_DISPLAY_DIFFERENCES
EV_UPDATE -
Data type: NTAB_CMP-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
EV_MARK_ENTRIES -
Data type: NTAB_CMP-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
EV_SUBRC -
Data type: NTAB_CMP-CMP_FLAGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SCT1_DISPLAY_DIFFERENCES
IT_BOX_LOCAL -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_KEYLIST -
Data type: E071KOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_VIEW_KEYS_CMP -
Data type: VIEW_CMPOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_TEMPLATE_ATTR -
Data type: SCPRVALSOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ADDRESS -
Data type: CMPWL_T_ADDRESS_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_NAMTAB_STORED - Nametab of View or Table for Nametab Comparison
Data type: NTAB_CMPOptional: Yes
Call by Reference: Yes
IT_NAMTAB_SINDEX - Nametab of View or Table: Index of Two Nametabs
Data type: NTAB_IDXOptional: Yes
Call by Reference: Yes
IT_BOX_REMOTE -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_NAMTAB_LOCAL -
Data type: NTAB_CMPOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_NAMTAB_REMOTE -
Data type: NTAB_CMPOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_NAMTAB_INDEX -
Data type: NTAB_IDXOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_HEADER_LOCAL -
Data type: NTAB_HDROptional: Yes
Call by Reference: No ( called with pass by value option)
IT_HEADER_VIEW_LOCAL -
Data type: VIMDESCOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_HEADER_REMOTE -
Data type: NTAB_HDROptional: Yes
Call by Reference: No ( called with pass by value option)
IT_WORK_LIST -
Data type: CMPWL_T_CMPWL_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SCT1_DISPLAY_DIFFERENCES 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_ev_update | TYPE NTAB_CMP-FLAG, " | |||
| lt_it_box_local | TYPE STANDARD TABLE OF NTAB_CMP, " | |||
| lv_iv_client_remote | TYPE SY-MANDT, " | |||
| lt_it_keylist | TYPE STANDARD TABLE OF E071K, " | |||
| lv_iv_conv_exit_flag | TYPE NTAB_CMP-FLAG, " | |||
| lt_it_view_keys_cmp | TYPE STANDARD TABLE OF VIEW_CMP, " | |||
| lv_iv_namtab_sort_index | TYPE SY-TABIX, " | |||
| lv_iv_no_compare | TYPE NTAB_CMP-FLAG, " | |||
| lt_it_template_attr | TYPE STANDARD TABLE OF SCPRVALS, " | |||
| lt_it_address | TYPE STANDARD TABLE OF CMPWL_T_ADDRESS_TYPE, " | |||
| lv_iv_called_from_sm30 | TYPE NTAB_CMP-FLAG, " | |||
| lv_iv_adj_000 | TYPE NTAB_CMP-FLAG, " | |||
| lt_it_namtab_stored | TYPE STANDARD TABLE OF NTAB_CMP, " | |||
| lt_it_namtab_sindex | TYPE STANDARD TABLE OF NTAB_IDX, " | |||
| lv_iv_display_entry_types | TYPE C, " | |||
| lv_iv_batch_mode | TYPE C, " | |||
| lv_iv_disp_updt_button | TYPE C, " ' ' | |||
| lv_iv_bcset_offset | TYPE I, " 0 | |||
| lv_is_work_list_header | TYPE CMPWL_S_CMPWLH_TYPE, " | |||
| lt_it_box_remote | TYPE STANDARD TABLE OF CMPWL_S_CMPWLH_TYPE, " | |||
| lv_ev_mark_entries | TYPE NTAB_CMP-FLAG, " | |||
| lv_iv_system_name_remote | TYPE SY-SYSID, " | |||
| lv_iv_data_access_restr_local | TYPE NTAB_CMP-FLAG, " ' ' | |||
| lv_iv_data_access_restr_remote | TYPE NTAB_CMP-FLAG, " ' ' | |||
| lv_ev_subrc | TYPE NTAB_CMP-CMP_FLAG, " | |||
| lt_it_namtab_local | TYPE STANDARD TABLE OF NTAB_CMP, " | |||
| lv_iv_sap_release_remote | TYPE SY-SAPRL, " | |||
| lv_iv_langu_remote | TYPE SY-LANGU, " | |||
| lt_it_namtab_remote | TYPE STANDARD TABLE OF NTAB_CMP, " | |||
| lt_it_namtab_index | TYPE STANDARD TABLE OF NTAB_IDX, " | |||
| lv_iv_kind_of_display | TYPE NTAB_CMP-FLAG, " | |||
| lt_it_header_local | TYPE STANDARD TABLE OF NTAB_HDR, " | |||
| lv_iv_display_mode | TYPE NTAB_CMP-FLAG, " | |||
| lt_it_header_view_local | TYPE STANDARD TABLE OF VIMDESC, " | |||
| lv_iv_compare_adjust_flag | TYPE NTAB_CMP-FLAG, " | |||
| lt_it_header_remote | TYPE STANDARD TABLE OF NTAB_HDR, " | |||
| lv_iv_work_list_index | TYPE SY-TABIX, " | |||
| lt_it_work_list | TYPE STANDARD TABLE OF CMPWL_T_CMPWL_TYPE, " | |||
| lv_iv_sort_mode | TYPE NTAB_CMP-FLAG. " |
|   CALL FUNCTION 'SCT1_DISPLAY_DIFFERENCES' "Display differences |
| EXPORTING | ||
| IV_CLIENT_REMOTE | = lv_iv_client_remote | |
| IV_CONV_EXIT_FLAG | = lv_iv_conv_exit_flag | |
| IV_NAMTAB_SORT_INDEX | = lv_iv_namtab_sort_index | |
| IV_NO_COMPARE | = lv_iv_no_compare | |
| IV_CALLED_FROM_SM30 | = lv_iv_called_from_sm30 | |
| IV_ADJ_000 | = lv_iv_adj_000 | |
| IV_DISPLAY_ENTRY_TYPES | = lv_iv_display_entry_types | |
| IV_BATCH_MODE | = lv_iv_batch_mode | |
| IV_DISP_UPDT_BUTTON | = lv_iv_disp_updt_button | |
| IV_BCSET_OFFSET | = lv_iv_bcset_offset | |
| IS_WORK_LIST_HEADER | = lv_is_work_list_header | |
| IV_SYSTEM_NAME_REMOTE | = lv_iv_system_name_remote | |
| IV_DATA_ACCESS_RESTR_LOCAL | = lv_iv_data_access_restr_local | |
| IV_DATA_ACCESS_RESTR_REMOTE | = lv_iv_data_access_restr_remote | |
| IV_SAP_RELEASE_REMOTE | = lv_iv_sap_release_remote | |
| IV_LANGU_REMOTE | = lv_iv_langu_remote | |
| IV_KIND_OF_DISPLAY | = lv_iv_kind_of_display | |
| IV_DISPLAY_MODE | = lv_iv_display_mode | |
| IV_COMPARE_ADJUST_FLAG | = lv_iv_compare_adjust_flag | |
| IV_WORK_LIST_INDEX | = lv_iv_work_list_index | |
| IV_SORT_MODE | = lv_iv_sort_mode | |
| IMPORTING | ||
| EV_UPDATE | = lv_ev_update | |
| EV_MARK_ENTRIES | = lv_ev_mark_entries | |
| EV_SUBRC | = lv_ev_subrc | |
| TABLES | ||
| IT_BOX_LOCAL | = lt_it_box_local | |
| IT_KEYLIST | = lt_it_keylist | |
| IT_VIEW_KEYS_CMP | = lt_it_view_keys_cmp | |
| IT_TEMPLATE_ATTR | = lt_it_template_attr | |
| IT_ADDRESS | = lt_it_address | |
| IT_NAMTAB_STORED | = lt_it_namtab_stored | |
| IT_NAMTAB_SINDEX | = lt_it_namtab_sindex | |
| IT_BOX_REMOTE | = lt_it_box_remote | |
| IT_NAMTAB_LOCAL | = lt_it_namtab_local | |
| IT_NAMTAB_REMOTE | = lt_it_namtab_remote | |
| IT_NAMTAB_INDEX | = lt_it_namtab_index | |
| IT_HEADER_LOCAL | = lt_it_header_local | |
| IT_HEADER_VIEW_LOCAL | = lt_it_header_view_local | |
| IT_HEADER_REMOTE | = lt_it_header_remote | |
| IT_WORK_LIST | = lt_it_work_list | |
| . " SCT1_DISPLAY_DIFFERENCES | ||
ABAP code using 7.40 inline data declarations to call FM SCT1_DISPLAY_DIFFERENCES
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 FLAG FROM NTAB_CMP INTO @DATA(ld_ev_update). | ||||
| "SELECT single MANDT FROM SY INTO @DATA(ld_iv_client_remote). | ||||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_iv_conv_exit_flag). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_iv_namtab_sort_index). | ||||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_iv_no_compare). | ||||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_iv_called_from_sm30). | ||||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_iv_adj_000). | ||||
| DATA(ld_iv_disp_updt_button) | = ' '. | |||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_ev_mark_entries). | ||||
| "SELECT single SYSID FROM SY INTO @DATA(ld_iv_system_name_remote). | ||||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_iv_data_access_restr_local). | ||||
| DATA(ld_iv_data_access_restr_local) | = ' '. | |||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_iv_data_access_restr_remote). | ||||
| DATA(ld_iv_data_access_restr_remote) | = ' '. | |||
| "SELECT single CMP_FLAG FROM NTAB_CMP INTO @DATA(ld_ev_subrc). | ||||
| "SELECT single SAPRL FROM SY INTO @DATA(ld_iv_sap_release_remote). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_iv_langu_remote). | ||||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_iv_kind_of_display). | ||||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_iv_display_mode). | ||||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_iv_compare_adjust_flag). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_iv_work_list_index). | ||||
| "SELECT single FLAG FROM NTAB_CMP INTO @DATA(ld_iv_sort_mode). | ||||
Search for further information about these or an SAP related objects