SAP Function Modules

SVRS_MASSCOMPARE_ACT_OBJECTS SAP Function module - Compare active objects on two systems







SVRS_MASSCOMPARE_ACT_OBJECTS 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 SVRS_MASSCOMPARE_ACT_OBJECTS into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM SVRS_MASSCOMPARE_ACT_OBJECTS - SVRS MASSCOMPARE ACT OBJECTS





CALL FUNCTION 'SVRS_MASSCOMPARE_ACT_OBJECTS' "Compare active objects on two systems
  EXPORTING
    it_e071 =                   " scwb_t_e071   CTS: Table Type for E071
*   iv_rfcdest_a =              " rfcdest
    iv_rfcdest_b =              " rfcdest
*   iv_filter_lang = 'X'        " svrs_bool     Boolean
*   iv_delete_lang = ' '        " svrs_bool     Boolean
*   iv_abap_ignore_case = 'X'   " svrs_bool     Boolean
*   iv_abap_condense = 'X'      " svrs_bool     Boolean
*   iv_abap_ignore_comments = 'X'  " svrs_bool  Boolean
*   iv_abap_equivalence = 'X'   " svrs_bool     Boolean
*   iv_with_gui_progress = 'X'  " svrs_bool     Boolean
  IMPORTING
    et_compare_items =          " vrs_compare_item_tab  Version Comparision: Table Info of objects for comparison
    es_rfcsi_a =                " rfcsi         RFC System Information (See RFC_SYSTEM_INFO Function Module)
    es_rfcsi_b =                " rfcsi         RFC System Information (See RFC_SYSTEM_INFO Function Module)
    et_nonversionable_e071 =    " scwb_t_e071   Non-versionable Objects
  EXCEPTIONS
    RFC_ERROR = 1               "               RFC Error
    NOT_SUPPORTED = 2           "               Not supported in remote system
    .  "  SVRS_MASSCOMPARE_ACT_OBJECTS

ABAP code example for Function Module SVRS_MASSCOMPARE_ACT_OBJECTS





The ABAP code below is a full code listing to execute function module SVRS_MASSCOMPARE_ACT_OBJECTS 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_et_compare_items  TYPE VRS_COMPARE_ITEM_TAB ,
ld_es_rfcsi_a  TYPE RFCSI ,
ld_es_rfcsi_b  TYPE RFCSI ,
ld_et_nonversionable_e071  TYPE SCWB_T_E071 .

DATA(ld_it_e071) = 'Check type of data required'.
DATA(ld_iv_rfcdest_a) = 'Check type of data required'.
DATA(ld_iv_rfcdest_b) = 'Check type of data required'.
DATA(ld_iv_filter_lang) = 'Check type of data required'.
DATA(ld_iv_delete_lang) = 'Check type of data required'.
DATA(ld_iv_abap_ignore_case) = 'Check type of data required'.
DATA(ld_iv_abap_condense) = 'Check type of data required'.
DATA(ld_iv_abap_ignore_comments) = 'Check type of data required'.
DATA(ld_iv_abap_equivalence) = 'Check type of data required'.
DATA(ld_iv_with_gui_progress) = 'Check type of data required'. . CALL FUNCTION 'SVRS_MASSCOMPARE_ACT_OBJECTS' EXPORTING it_e071 = ld_it_e071 * iv_rfcdest_a = ld_iv_rfcdest_a iv_rfcdest_b = ld_iv_rfcdest_b * iv_filter_lang = ld_iv_filter_lang * iv_delete_lang = ld_iv_delete_lang * iv_abap_ignore_case = ld_iv_abap_ignore_case * iv_abap_condense = ld_iv_abap_condense * iv_abap_ignore_comments = ld_iv_abap_ignore_comments * iv_abap_equivalence = ld_iv_abap_equivalence * iv_with_gui_progress = ld_iv_with_gui_progress IMPORTING et_compare_items = ld_et_compare_items es_rfcsi_a = ld_es_rfcsi_a es_rfcsi_b = ld_es_rfcsi_b et_nonversionable_e071 = ld_et_nonversionable_e071 EXCEPTIONS RFC_ERROR = 1 NOT_SUPPORTED = 2 . " SVRS_MASSCOMPARE_ACT_OBJECTS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_et_compare_items  TYPE VRS_COMPARE_ITEM_TAB ,
ld_it_e071  TYPE SCWB_T_E071 ,
ld_es_rfcsi_a  TYPE RFCSI ,
ld_iv_rfcdest_a  TYPE RFCDEST ,
ld_es_rfcsi_b  TYPE RFCSI ,
ld_iv_rfcdest_b  TYPE RFCDEST ,
ld_et_nonversionable_e071  TYPE SCWB_T_E071 ,
ld_iv_filter_lang  TYPE SVRS_BOOL ,
ld_iv_delete_lang  TYPE SVRS_BOOL ,
ld_iv_abap_ignore_case  TYPE SVRS_BOOL ,
ld_iv_abap_condense  TYPE SVRS_BOOL ,
ld_iv_abap_ignore_comments  TYPE SVRS_BOOL ,
ld_iv_abap_equivalence  TYPE SVRS_BOOL ,
ld_iv_with_gui_progress  TYPE SVRS_BOOL .

ld_it_e071 = 'Check type of data required'.
ld_iv_rfcdest_a = 'Check type of data required'.
ld_iv_rfcdest_b = 'Check type of data required'.
ld_iv_filter_lang = 'Check type of data required'.
ld_iv_delete_lang = 'Check type of data required'.
ld_iv_abap_ignore_case = 'Check type of data required'.
ld_iv_abap_condense = 'Check type of data required'.
ld_iv_abap_ignore_comments = 'Check type of data required'.
ld_iv_abap_equivalence = 'Check type of data required'.
ld_iv_with_gui_progress = '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 SVRS_MASSCOMPARE_ACT_OBJECTS or its description.