SAP Reports / Programs

RFFMCOMPARE_STRATEGY SAP ABAP Report - Compare Derivation Strategy across Systems/Clients







RFFMCOMPARE_STRATEGY is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report enables the comparison of derivation strategy tables across clients via RFC...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RFFMCOMPARE_STRATEGY into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

FMCOMPARESTRATEGY - Compare Derivation Strategy


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RFFMCOMPARE_STRATEGY. "Basic submit
SUBMIT RFFMCOMPARE_STRATEGY AND RETURN. "Return to original report after report execution complete
SUBMIT RFFMCOMPARE_STRATEGY VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_T7 = Step Rules Detail
Selection Text: P_T6 = Step Texts (TABADRST)
Selection Text: P_T5 = Step Fields (TABADRSF)
Selection Text: P_T4 = Steps (TABADRS)
Selection Text: P_T3 = Strategy Texts (TABADRT)
Selection Text: P_T2 = Strategy List (TABADR)
Selection Text: P_T1 = Strategy Header (TABADRH)
Selection Text: P_SUBC = D .
Selection Text: P_STRA = D .
Selection Text: P_RFC = D .
Selection Text: P_ENV = D .
Selection Text: P_APPL = D .
Title: Compare Derivation Strategy across Systems/Clients
Text Symbol: 029 = Equivalent
Text Symbol: 030 = Missing table Name - Parameter param_1
Text Symbol: 031 = List of fields from the selected step rule
Text Symbol: 032 = Detail step field definition
Text Symbol: 100 = Select List to display
Text Symbol: 101 = Records equivalent in Logon and Remote systems
Text Symbol: 102 = Records only available in the Logon system
Text Symbol: 103 = Records only available in the Remote system
Text Symbol: 104 = All records from the Logon system
Text Symbol: 105 = All records from the Remote system
Text Symbol: KEY = Derivation Strategy Parameters
Text Symbol: LOG = Logon system
Text Symbol: RFC = Remote system
Text Symbol: TBL = List of Tables to be evaluated
Text Symbol: 028 = Different feld assignment
Text Symbol: 001 = Link to Derivation Tool
Text Symbol: 002 = Show Derivation Tool in Logon system
Text Symbol: 003 = Derivation Tool
Text Symbol: 004 = Link to FINBASIS
Text Symbol: 005 = Execute FINBASIS
Text Symbol: 006 = FINBASIS
Text Symbol: 007 = Flds
Text Symbol: 008 = Data
Text Symbol: 009 = Stat
Text Symbol: 010 = Detail





Text Symbol: 011 = List of step rules in Logon and Remote systems
Text Symbol: 012 = Both step rules must be defined as Method DRULE
Text Symbol: 013 = No table name defined in the Logon/Remote systems
Text Symbol: 014 = No table name defined in the Logon system
Text Symbol: 015 = No table name defined in the Remote system
Text Symbol: 016 = Both step rules (local/remote) must be defined
Text Symbol: 017 = Missing matching step rule definition
Text Symbol: 018 = Different values in the step rule definition
Text Symbol: 019 = Different structure definition
Text Symbol: 020 = Different assignment entries
Text Symbol: 021 = No entries found
Text Symbol: 022 = Version
Text Symbol: 023 = Is Deleted
Text Symbol: 024 = GUID
Text Symbol: 025 = Step fields from the selected step rule
Text Symbol: 026 = Detail step rule definition
Text Symbol: 027 = Missing field assignment


INCLUDES used within this REPORT RFFMCOMPARE_STRATEGY

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ABADR_STRATEGY_MAINTAIN CALL FUNCTION 'ABADR_STRATEGY_MAINTAIN' EXPORTING i_appl = p_appl i_subclass = p_subc i_strategy_id = p_stra i_env = p_env.

SCT2_GET_RFC_DESTINATION_F4 CALL FUNCTION 'SCT2_GET_RFC_DESTINATION_F4' EXPORTING iv_rfc_dest_type = '3' iv_proof_only = u_check iv_popup_start_x = 5 iv_popup_start_y = 5 CHANGING cv_rfc_dest = c_rfc EXCEPTIONS rfc_dest_not_found = 1 cancel_button_pressed = 2 others = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TABADRH' CHANGING ct_fieldcat = l_t_fcat EXCEPTIONS inconsistent_interface = 0 program_error = 0 others = 0.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_zebra = 'X' it_fieldcat = l_t_fcat i_title = SPACE i_tabname = 'L_T_TABADRH' IMPORTING es_selfield = l_slis_selfield TABLES t_outtab = l_t_tabadrh EXCEPTIONS program_error = 1 others = 2.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = l_dynpfields.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = l_dynpfields.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TABADRH' CHANGING ct_fieldcat = l_t_fcat EXCEPTIONS inconsistent_interface = 0 program_error = 0 others = 0.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_zebra = 'X' it_fieldcat = l_t_fcat i_title = SPACE i_tabname = 'L_T_TABADRH' IMPORTING es_selfield = l_slis_selfield TABLES t_outtab = l_t_tabadrh EXCEPTIONS program_error = 1 others = 2.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = l_dynpfields.

DYNP_VALUES_READ





CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = l_dynpfields.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TABADRH' CHANGING ct_fieldcat = l_t_fcat EXCEPTIONS inconsistent_interface = 0 program_error = 0 others = 0.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_zebra = 'X' it_fieldcat = l_t_fcat i_title = SPACE i_tabname = 'L_T_TABADRH' IMPORTING es_selfield = l_slis_selfield TABLES t_outtab = l_t_tabadrh EXCEPTIONS program_error = 1 others = 2.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = l_dynpfields.

SCT2_GET_T000_ENTRY_RFC CALL FUNCTION 'SCT2_GET_T000_ENTRY_RFC' IMPORTING ES_T000 = L_T000_RFC EXCEPTIONS OTHERS = 1.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TABADRS' CHANGING ct_fieldcat = l_t_fcat EXCEPTIONS inconsistent_interface = 0 program_error = 0 others = 0.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RFFMCOMPARE_STRATEGY' i_callback_user_command = 'STRATEGY_USER_COMMAND' i_callback_top_of_page = 'HEADER_PAGE' i_callback_html_top_of_page = 'HEADER_PAGE_HTML' it_fieldcat = l_t_fcatm is_layout = l_layout i_save = 'A' TABLES t_outtab = g_t_tabadrs EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TABADRS' CHANGING ct_fieldcat = l_t_fcat EXCEPTIONS inconsistent_interface = 0 program_error = 0 others = 0.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TABADRS' CHANGING ct_fieldcat = l_t_fcat EXCEPTIONS inconsistent_interface = 0 program_error = 0 others = 0.

RFC_GET_TABLE_ENTRIES CALL FUNCTION 'RFC_GET_TABLE_ENTRIES' destination p_rfc EXPORTING gen_key = l_key table_name = 'TABADRS' TABLES entries = lt_tabadrs EXCEPTIONS internal_error = 1 table_empty = 2 table_not_found = 3 others = 4.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = l_tbl_local all_types = 'X' TABLES dfies_tab = l_t_dfies_loc EXCEPTIONS not_found = 0 OTHERS = 0.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' destination p_rfc EXPORTING tabname = l_tbl_remote all_types = 'X' TABLES dfies_tab = l_t_dfies_rfc EXCEPTIONS not_found = 0 OTHERS = 0.

ABADRRFC_RULE_GET_VALUES CALL FUNCTION 'ABADRRFC_RULE_GET_VALUES' EXPORTING rule_id = u_tabadrs-LOGON-INTID TABLES rule_values = lt_logon.

ABADRRFC_RULE_GET_VALUES CALL FUNCTION 'ABADRRFC_RULE_GET_VALUES' destination p_rfc EXPORTING rule_id = u_tabadrs-REMOTE-INTID TABLES rule_values = lt_remote.

ABADRRFC_RULE_GET_DETAIL CALL FUNCTION 'ABADRRFC_RULE_GET_DETAIL' EXPORTING RULE_ID = u_tabadrs-LOGON-INTID TABLES SOURCE_FIELDS = t_source_loc TARGET_FIELDS = t_target_loc.

ABADRRFC_RULE_GET_DETAIL CALL FUNCTION 'ABADRRFC_RULE_GET_DETAIL' destination p_rfc EXPORTING RULE_ID = u_tabadrs-REMOTE-INTID TABLES SOURCE_FIELDS = t_source_rfc TARGET_FIELDS = t_target_rfc.

POPUP_TO_DECIDE_LIST CALL FUNCTION 'POPUP_TO_DECIDE_LIST' EXPORTING MARK_MAX = 0 START_COL = 20 START_ROW = 10 textline1 = '' titel = l_grid_title IMPORTING ANSWER = L_ANSWER TABLES t_spopli = lt_spopli EXCEPTIONS not_enough_answers = 1 too_much_answers = 2 too_much_marks = 3 OTHERS = 4.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = l_tabname CHANGING ct_fieldcat = l_t_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RFFMCOMPARE_STRATEGY' i_callback_top_of_page = 'HEADER_PAGE' i_callback_html_top_of_page = 'HEADER_PAGE_HTML' it_fieldcat = l_t_fcat i_structure_name = l_tabname is_layout = l_layout i_save = 'A' I_DEFAULT = SPACE TABLES t_outtab = u_table EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TABADRSF' CHANGING ct_fieldcat = l_t_fcat EXCEPTIONS inconsistent_interface = 0 program_error = 0 others = 0.




REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RFFMCOMPARE_STRATEGY' i_callback_user_command = 'STEP_FIELDS_USER_COMMAND' i_callback_top_of_page = 'HEADER_PAGE' i_callback_html_top_of_page = 'HEADER_PAGE_HTML' it_fieldcat = l_t_fcatm is_layout = l_layout i_save = 'A' TABLES t_outtab = G_T_TABADRSF EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TABADRSF' CHANGING ct_fieldcat = l_t_fcat EXCEPTIONS inconsistent_interface = 0 program_error = 0 others = 0.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RFFMCOMPARE_STRATEGY' i_callback_top_of_page = 'HEADER_PAGE' i_callback_html_top_of_page = 'HEADER_PAGE_HTML' it_fieldcat = l_t_fcat is_layout = l_layout i_save = 'A' TABLES t_outtab = lt_tabadrsf2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TABADRS' CHANGING ct_fieldcat = l_t_fcat EXCEPTIONS inconsistent_interface = 0 program_error = 0 others = 0.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RFFMCOMPARE_STRATEGY' it_fieldcat = l_t_fcat i_callback_top_of_page = 'HEADER_PAGE' i_callback_html_top_of_page = 'HEADER_PAGE_HTML' is_layout = l_layout i_save = 'A' TABLES t_outtab = lt_tabadrs2.

RFC_GET_TABLE_ENTRIES CALL FUNCTION 'RFC_GET_TABLE_ENTRIES' destination p_rfc EXPORTING gen_key = l_key table_name = 'TABADRSF' TABLES entries = l_t_REMOTE EXCEPTIONS internal_error = 1 table_empty = 2 table_not_found = 3 others = 4.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RFFMCOMPARE_STRATEGY or its description.