SAP Reports / Programs | Financials | Strategic Enterprise Management | Business Consolidation(FIN-SEM-BCS) SAP FIN

UC_CUST_COMPARE SAP ABAP Report - Customizing Comparison







UC_CUST_COMPARE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter UC_CUST_COMPARE 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

UCCC0 - SAP Cons: Customizing Comparison


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 UC_CUST_COMPARE. "Basic submit
SUBMIT UC_CUST_COMPARE AND RETURN. "Return to original report after report execution complete
SUBMIT UC_CUST_COMPARE 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_AREAL = D Consolidation Area
Selection Text: P_AREAR = D Consolidation Area
Selection Text: P_CROSS = Compare Systems
Selection Text: P_DEPTH = Search Depth
Selection Text: P_DEST = D RFC Destination
Selection Text: P_FNAM = Field Name for Comparison
Selection Text: P_LOCAL = Local Comparison
Selection Text: P_NOCMP = D Do Not Select Comparison Data
Title: Customizing Comparison
Text Symbol: B01 = Parameters
Text Symbol: B02 = Compare (Local Only)
Text Symbol: B03 = Fields for Comparison
Text Symbol: B04 = Technical Settings


INCLUDES used within this REPORT UC_CUST_COMPARE

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:

UC_REQUEST_PARAMETER CALL FUNCTION 'UC_REQUEST_PARAMETER' EXPORTING i_username = sy-uname if_display_only = space.

UC_GET_SCREEN_NUMBER CALL FUNCTION 'UC_GET_SCREEN_NUMBER' EXPORTING i_area = g_area i_scrid = ucs0_c_scrid_csc IMPORTING e_repid = area-prog e_dnum = area-dynnr EXCEPTIONS not_found = 1 OTHERS = 2.

UGMD_SCDT_CHECK_RFCDEST CALL FUNCTION 'UGMD_SCDT_CHECK_RFCDEST' EXPORTING i_rfcdest = p_dest EXCEPTIONS failure = 1 OTHERS = 2.

UGMD_SCDT_PROCESS_FIELDS CALL FUNCTION 'UGMD_SCDT_PROCESS_FIELDS' EXPORTING it_fieldname = gt_fieldname it_sel_source = gt_sel it_sel_target = gt_sel2 i_rfcdest = p_dest if_no_target = p_nocmp i_max_recdepth = p_depth IMPORTING et_ovw = gt_ovw et_ovw_data = gt_ovw_data.

UGMD_SCDT_DISPLAY_TABLES CALL FUNCTION 'UGMD_SCDT_DISPLAY_TABLES' EXPORTING * I_FIELDNAME = * I_STRUCNAME = it_ovw = gt_ovw it_ovw_data = gt_ovw_data it_sel_source = gt_sel it_sel_target = gt_sel2 i_rfcdest = p_dest EXCEPTIONS exit_alv = 1 OTHERS = 2 .

RS_VARIANT_SAVE_FROM_SELSCREEN CALL FUNCTION 'RS_VARIANT_SAVE_FROM_SELSCREEN' EXPORTING curr_report = l_repid * USER_VARI = * VARI_REPORT = IMPORTING variant = l_vari_new function = l_function TABLES * P_SSCR = * P_VARI = * P_VARIVDAT = * P_VARIDYN = * P_VDATDYN = * P_DYNSFIELDS = p_screens = lt_screen EXCEPTIONS illegal_variant_name = 1 not_authorized = 2 no_report = 3 report_not_existent = 4 report_not_supplied = 5 OTHERS = 6 .

RS_VARIANT_EXISTS CALL FUNCTION 'RS_VARIANT_EXISTS' EXPORTING report = ls_screen-program variant = l_vari_new IMPORTING r_c = l_subrc EXCEPTIONS not_authorized = 1 no_report = 2 report_not_existent = 3 report_not_supplied = 4 OTHERS = 5.

RS_VARIANT_DELETE CALL FUNCTION 'RS_VARIANT_DELETE' EXPORTING report = ls_screen-program variant = l_vari_new flag_confirmscreen = 'X' "no popup! flag_delallclient = 'X' * IMPORTING * VARIANT = EXCEPTIONS not_authorized = 1 not_executed = 2 no_report = 3 report_not_existent = 4 report_not_supplied = 5 variant_locked = 6 variant_not_existent = 7 no_corr_insert = 8 variant_protected = 9 OTHERS = 10 .

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = ls_screen-program * IMPORTING * SP = TABLES selection_table = lt_selc EXCEPTIONS not_found = 1 no_report = 2 OTHERS = 3 .

RS_CREATE_VARIANT CALL FUNCTION 'RS_CREATE_VARIANT' EXPORTING curr_report = ls_screen-program curr_variant = l_vari_new vari_desc = ls_varid TABLES vari_contents = lt_selc vari_text = lt_varit * VSCREENS = EXCEPTIONS illegal_report_or_variant = 1 illegal_variantname = 2 not_authorized = 3 not_executed = 4 report_not_existent = 5 report_not_supplied = 6 variant_exists = 7 variant_locked = 8 OTHERS = 9 .

RS_VARIANT_FETCH CALL FUNCTION 'RS_VARIANT_FETCH' EXPORTING function = 'GET' * report = l_repid rkey = l_rkey submode = dummy dynnr = '1000' * INTERNAL_CALL = ' ' IMPORTING function = l_function variant = l_vari_new TABLES selctab = lt_selctab * P_VARI = * P_VARIVDAT = * P_VARIDYN = * P_VDATDYN = EXCEPTIONS variant_name = 1 no_variants = 2 variant_inconsistent = 3 only_background = 4 OTHERS = 5 .

DDIF_DTEL_GET call function 'DDIF_DTEL_GET' exporting name = 'UC_AREA' langu = sy-langu importing dd04v_wa = ls_dd04v.

UC_GET_SCREEN_NUMBER CALL FUNCTION 'UC_GET_SCREEN_NUMBER' EXPORTING i_area = p_arear i_scrid = ucs0_c_scrid_cs2 IMPORTING e_repid = gs_tab-prog e_dnum = gs_tab-dynnr EXCEPTIONS not_found = 1 OTHERS = 2.

DDIF_DTEL_GET call function 'DDIF_DTEL_GET' exporting name = 'UC_AREA' langu = sy-langu importing dd04v_wa = ls_dd04v.

UC_GET_SCREEN_NUMBER CALL FUNCTION 'UC_GET_SCREEN_NUMBER' EXPORTING i_area = p_areal i_scrid = ucs0_c_scrid_csc IMPORTING e_repid = gs_tab-prog e_dnum = gs_tab-dynnr EXCEPTIONS not_found = 1 OTHERS = 2.

UC_GET_SCREEN_NUMBER CALL FUNCTION 'UC_GET_SCREEN_NUMBER' EXPORTING i_area = p_areal i_scrid = ucs0_c_scrid_cs3 IMPORTING e_repid = field-prog e_dnum = field-dynnr EXCEPTIONS not_found = 1 OTHERS = 2.

UGMD_SCDT_JOB_SCHEDULE CALL FUNCTION 'UGMD_SCDT_JOB_SCHEDULE' EXPORTING it_fieldname = gt_fieldname it_sel_source = gt_sel it_sel_target = gt_sel2 i_rfcdest = p_dest i_recdepth = p_depth "747486 i_nocmp = p_nocmp "747486 EXCEPTIONS failure = 1 OTHERS = 2.

UC_GET_MEMORY_ID CALL FUNCTION 'UC_GET_MEMORY_ID' EXPORTING i_area = p_areal i_scrid = ucs0_c_scrid_csc * I_FIELDNAME = i_repid = gs_tab-prog i_dnum = gs_tab-dynnr * I_MONFLG = IMPORTING e_memory_id1 = memid_sel * E_MEMORY_ID2 = * E_MEMORY_ID3 = * E_MEMORY_ID4 = * E_MEMORY_ID5 = .

UC_GET_MEMORY_ID





CALL FUNCTION 'UC_GET_MEMORY_ID' EXPORTING i_area = p_arear i_scrid = ucs0_c_scrid_cs2 * I_FIELDNAME = i_repid = gs_tab-prog i_dnum = gs_tab-dynnr * I_MONFLG = IMPORTING e_memory_id1 = memid_sel * E_MEMORY_ID2 = * E_MEMORY_ID3 = * E_MEMORY_ID4 = * E_MEMORY_ID5 = .

UC_GET_MEMORY_ID CALL FUNCTION 'UC_GET_MEMORY_ID' EXPORTING i_area = p_areal i_scrid = ucs0_c_scrid_cs3 * I_FIELDNAME = i_repid = gs_tab-prog i_dnum = gs_tab-dynnr * I_MONFLG = IMPORTING * e_memory_id1 = memid_sel * E_MEMORY_ID2 = * E_MEMORY_ID3 = e_memory_id4 = memid_check * E_MEMORY_ID5 = .

UGWB_VARIANT_FETCH CALL FUNCTION 'UGWB_VARIANT_FETCH' EXPORTING function = 'GET' report = gs_tab-prog rkey = g_rkey submode = g_dummy dynnr = gs_tab-dynnr * INTERNAL_CALL = ' ' no_popup = 'X' * IMPORTING * function = l_function * VARIANT = l_vari_new TABLES selctab = gt_selctab * P_VARI = * P_VARIVDAT = * P_VARIDYN = * P_VDATDYN = EXCEPTIONS variant_name = 1 no_variants = 2 variant_inconsistent = 3 only_background = 4 OTHERS = 5 .



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 UC_CUST_COMPARE or its description.