SAP Function Modules

SCT4_EXTENDED_COMPARE_SETTINGS SAP Function module - Extended comparison settings







SCT4_EXTENDED_COMPARE_SETTINGS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SCT4_EXTENDED_COMPARE_SETTINGS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SCT4
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SCT4_EXTENDED_COMPARE_SETTINGS - SCT4 EXTENDED COMPARE SETTINGS





CALL FUNCTION 'SCT4_EXTENDED_COMPARE_SETTINGS' "Extended comparison settings
* EXPORTING
*   iv_maintain = 'X'           " c
* CHANGING
*   cv_select_type =            " c
*   cv_insert_cmpwlk =          " c
*   cv_no_img_relation =        " c
*   cv_img_relation =           " c
*   cv_cmp_table_level =        " c
*   cv_no_sm30_objects =        " c
*   cv_cmp_transl =             " c
*   cv_cmp_logon_lang_only =    " c
*   cv_cmp_system_tables =      " c
  EXCEPTIONS
    CANCELED = 1                "
    .  "  SCT4_EXTENDED_COMPARE_SETTINGS

ABAP code example for Function Module SCT4_EXTENDED_COMPARE_SETTINGS





The ABAP code below is a full code listing to execute function module SCT4_EXTENDED_COMPARE_SETTINGS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).


DATA(ld_cv_select_type) = 'Check type of data required'.
DATA(ld_cv_insert_cmpwlk) = 'Check type of data required'.
DATA(ld_cv_no_img_relation) = 'Check type of data required'.
DATA(ld_cv_img_relation) = 'Check type of data required'.
DATA(ld_cv_cmp_table_level) = 'Check type of data required'.
DATA(ld_cv_no_sm30_objects) = 'Check type of data required'.
DATA(ld_cv_cmp_transl) = 'Check type of data required'.
DATA(ld_cv_cmp_logon_lang_only) = 'Check type of data required'.
DATA(ld_cv_cmp_system_tables) = 'Check type of data required'.
DATA(ld_iv_maintain) = 'Check type of data required'. . CALL FUNCTION 'SCT4_EXTENDED_COMPARE_SETTINGS' * EXPORTING * iv_maintain = ld_iv_maintain * CHANGING * cv_select_type = ld_cv_select_type * cv_insert_cmpwlk = ld_cv_insert_cmpwlk * cv_no_img_relation = ld_cv_no_img_relation * cv_img_relation = ld_cv_img_relation * cv_cmp_table_level = ld_cv_cmp_table_level * cv_no_sm30_objects = ld_cv_no_sm30_objects * cv_cmp_transl = ld_cv_cmp_transl * cv_cmp_logon_lang_only = ld_cv_cmp_logon_lang_only * cv_cmp_system_tables = ld_cv_cmp_system_tables EXCEPTIONS CANCELED = 1 . " SCT4_EXTENDED_COMPARE_SETTINGS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_cv_select_type  TYPE C ,
ld_iv_maintain  TYPE C ,
ld_cv_insert_cmpwlk  TYPE C ,
ld_cv_no_img_relation  TYPE C ,
ld_cv_img_relation  TYPE C ,
ld_cv_cmp_table_level  TYPE C ,
ld_cv_no_sm30_objects  TYPE C ,
ld_cv_cmp_transl  TYPE C ,
ld_cv_cmp_logon_lang_only  TYPE C ,
ld_cv_cmp_system_tables  TYPE C .

ld_cv_select_type = 'Check type of data required'.
ld_iv_maintain = 'Check type of data required'.
ld_cv_insert_cmpwlk = 'Check type of data required'.
ld_cv_no_img_relation = 'Check type of data required'.
ld_cv_img_relation = 'Check type of data required'.
ld_cv_cmp_table_level = 'Check type of data required'.
ld_cv_no_sm30_objects = 'Check type of data required'.
ld_cv_cmp_transl = 'Check type of data required'.
ld_cv_cmp_logon_lang_only = 'Check type of data required'.
ld_cv_cmp_system_tables = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SCT4_EXTENDED_COMPARE_SETTINGS or its description.