SAP Reports / Programs

TFC_COMPARE_VZ SAP ABAP Report - Comparison: Documents / Transaction Figures







TFC_COMPARE_VZ is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report compares the transaction figures with the total of the single documents...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 TFC_COMPARE_VZ 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

FAGLF03 - Reconciliation


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 TFC_COMPARE_VZ. "Basic submit
SUBMIT TFC_COMPARE_VZ AND RETURN. "Return to original report after report execution complete
SUBMIT TFC_COMPARE_VZ 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: PBLK = Package Size
Selection Text: PCNT = Number of Parallel Steps
Selection Text: PGRP = Server Group
Selection Text: PROTNAME = Log Name
Selection Text: XARCH = Read Archives
Selection Text: XCHCK = Make Comparison
Selection Text: XREAD = Display Log
Selection Text: PBUKRS = D .
Selection Text: PGJAHR = D .
Selection Text: PMONAT = D .
Selection Text: PRLDNR = D .
Selection Text: XBSEG = D .
Selection Text: XCOMP = D .
Selection Text: XFLEX = D .
Title: Comparison: Documents / Transaction Figures
Text Symbol: 208 = Differences per Account
Text Symbol: 209 = Messages
Text Symbol: 210 = Log
Text Symbol: F01 = Do you really want to delete the log?
Text Symbol: S01 = OK
Text Symbol: S02 = Error
Text Symbol: S03 = Adjusted
Text Symbol: T01 = The differences for the selected data records are:
Text Symbol: T02 = Display Related Totals Records
Text Symbol: T03 = Display Related Line Items
Text Symbol: T04 = Success/Error Messages
Text Symbol: T05 = G/L Accts/Subledger Accts
Text Symbol: T10 = Period Shift > 2 Years, otherwise posting periods are incorrect
Text Symbol: T11 = No company code found
Text Symbol: T12 = Split Active, Comparison Only Possible with G/L View
Text Symbol: T13 = No combination of company code and ledger could be determined
Text Symbol: 207 = Differences per Ledger
Text Symbol: 002 = Differences in individual dimensions
Text Symbol: 004 = Account
Text Symbol: 006 = in
Text Symbol: 008 = Period
Text Symbol: 010 = No Differences
Text Symbol: 011 = No differences occurred





Text Symbol: 012 = Ledger
Text Symbol: 013 = Balance Zero Clearing Account
Text Symbol: 100 = Start of Run
Text Symbol: 101 = End of Run
Text Symbol: 102 = No. Docs
Text Symbol: 103 = PackageSize
Text Symbol: 104 = Serial read mode is used
Text Symbol: 105 = Data received
Text Symbol: 110 = Acct
Text Symbol: 111 = Docs - Dr
Text Symbol: 112 = Balances-Dr
Text Symbol: 113 = Difference- Dr
Text Symbol: 114 = Docs - Cr
Text Symbol: 115 = Balances- Cr
Text Symbol: 116 = Difference- Cr
Text Symbol: 117 = Difference found
Text Symbol: 118 = Description
Text Symbol: 119 = Messages
Text Symbol: 120 = Posted during the run
Text Symbol: 201 = Gen. Data Selection
Text Symbol: 202 = Accts
Text Symbol: 203 = Data for Parallel Processing
Text Symbol: 204 = Options
Text Symbol: 205 = Comparison of Transactions Figures with Documents of:
Text Symbol: 206 = Options


INCLUDES used within this REPORT TFC_COMPARE_VZ

INCLUDE TFC_VZ_TOP.
INCLUDE TFC_COMPARE_VZ_SCHED.


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:

FAGL_VZ_FROM_BSEG CALL FUNCTION 'FAGL_VZ_FROM_BSEG' EXPORTING it_bkpf = cs_package-bkpfs it_lbkpf = cs_package-lbkpf it_arch = cs_package-arptr i_flexgl_mode = xflex it_excluded_ledgers = lt_excluded_ledgers i_single_compare = xcomp it_fields = gt_si_fields it_groupinfo = gt_groupinfo it_perivinfo = gt_perivinfo it_poper = pmonat[] i_gjahr = pgjahr IMPORTING et_coll = lt_coll et_message = lt_messages CHANGING cs_coll = ct_coll = .

FAGL_VZ_FROM_BSEG_RFC CALL FUNCTION 'FAGL_VZ_FROM_BSEG_RFC' STARTING NEW TASK task_name DESTINATION IN GROUP pgrp PERFORMING callback_end ON END OF TASK EXPORTING it_bkpf = cs_package-bkpfs it_lbkpf = cs_package-lbkpf i_flexgl_mode = xflex it_excluded_ledgers = lt_excluded_ledgers i_single_compare = xcomp it_fields = gt_si_fields it_groupinfo = gt_groupinfo it_perivinfo = gt_perivinfo it_poper = pmonat[] i_gjahr = pgjahr EXCEPTIONS system_failure = 1 communication_failure = 2 resource_failure = 3.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = is_t001-bukrs i_land1 = is_t001-land1 i_rcomp = is_t001-rcomp IMPORTING e_x001 = ls_x001 EXCEPTIONS currency_2_not_defined = 1 currency_3_not_defined = 2 OTHERS = 3.

FAGL_INFO_GET CALL FUNCTION 'FAGL_INFO_GET' EXPORTING it_bukrs = lt_bukrs IMPORTING et_clracc = lt_clracc TABLES et_return = lt_return.

FAGL_GET_GLT0 CALL FUNCTION 'FAGL_GET_GLT0' EXPORTING i_glt0_rldnr = -rldnr i_rrcty = '0' i_rvers = '001' i_bukrs = -bukrs i_rpmax = '016' i_range_ryear = gt_ryear i_range_racct = gt_racct IMPORTING et_glt0 = lt_glt0.






FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING i_bukrs = pit001-bukrs i_land1 = pit001-land1 i_rcomp = pit001-rcomp IMPORTING e_x001 = ls_x001 EXCEPTIONS currency_2_not_defined = 1 currency_3_not_defined = 2 OTHERS = 3.

FAGL_GET_LEADING_LEDGER CALL FUNCTION 'FAGL_GET_LEADING_LEDGER' EXPORTING i_client = sy-mandt IMPORTING e_rldnr = g_leading_ledger EXCEPTIONS not_found = 1 more_than_one = 2 OTHERS = 3.

FAGL_GET_ALL_LEDGERS_IN_BUKRS CALL FUNCTION 'FAGL_GET_ALL_LEDGERS_IN_BUKRS' EXPORTING i_bukrs = pit001-bukrs IMPORTING et_ledgers = lt_ledgers.

G_GIVE_LEDGERS_FOR_GLT0 CALL FUNCTION 'G_GIVE_LEDGERS_FOR_GLT0' EXPORTING bukrs = pit001-bukrs curtp = ls_x001-curt2 TABLES ledtab = it_gledtab.

G_GIVE_LEDGERS_FOR_GLT0 CALL FUNCTION 'G_GIVE_LEDGERS_FOR_GLT0' EXPORTING bukrs = pit001-bukrs curtp = ls_x001-curt3 TABLES ledtab = it_gledtab.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = gc_structure_all CHANGING ct_fieldcat = gt_fieldcat_all EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = gc_structure_gl CHANGING ct_fieldcat = gt_fieldcat_gl EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'fagl_cmpmessage' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

RH_FUNCTION_EXIST CALL FUNCTION 'RH_FUNCTION_EXIST' EXPORTING name = 'FAGL_CHECK_GLFLEX_ACTIVE' EXCEPTIONS function_not_found = 1 OTHERS = 2.

FAGL_SET_GLFLEX_ACT_FOR_INTMOD CALL FUNCTION 'FAGL_SET_GLFLEX_ACT_FOR_INTMOD' "1166793 EXPORTING "1166793 id_active = abap_on. "1166793

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' IMPORTING e_glflex_active = ld_glflex_active EXCEPTIONS error_in_setup = 1 OTHERS = 2.

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' EXPORTING id_bukrs = -bukrs IMPORTING e_glflex_active = ld_glflex_active EXCEPTIONS error_in_setup = 1 OTHERS = 2.

FAGL_GET_TABLENAMES CALL FUNCTION 'FAGL_GET_TABLENAMES' EXPORTING i_ledger = -rldnr IMPORTING es_tabnames = ls_tables EXCEPTIONS not_found = 1 configuration_error = 2 OTHERS = 3.

G_FIELDTAB_GET CALL FUNCTION 'G_FIELDTAB_GET' EXPORTING table = ls_tables-tot_table ftype = 'A' TABLES t_fieldtab = lt_dfies_totfix.

G_FIELDTAB_GET CALL FUNCTION 'G_FIELDTAB_GET' EXPORTING table = ls_tables-si_table ftype = 'A' TABLES t_fieldtab = lt_dfies_sifix.

FAGL_GET_TOT_FIELDS_FOR_DOCSUM CALL FUNCTION 'FAGL_GET_TOT_FIELDS_FOR_DOCSUM' EXPORTING i_rldnr = -rldnr IMPORTING et_dfies = lt_dfies_dim.

FAGL_GET_GROUPS_WITH_LEDGER CALL FUNCTION 'FAGL_GET_GROUPS_WITH_LEDGER' EXPORTING i_rldnr = -rldnr TABLES et_ldgrp = lt_ldgrp.

G_GET_ORGANIZATIONAL_DATA CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = -rldnr i_orgunit = -bukrs IMPORTING organizational_info = ls_oinfo EXCEPTIONS no_info_found = 1 error_in_setup = 2 OTHERS = 4.

G_TOTALS_GLU1_LIST_DISPLAY CALL FUNCTION 'G_TOTALS_GLU1_LIST_DISPLAY' EXPORTING i_buffer_active = space i_drill_down = 'X' i_ledger = -rldnr i_totals = lt_glu1 i_cwcode = 'X' i_zscode = ' ' i_text = text-t01 i_text2 = text-t02 i_text3 = text-t03 i_ledgerfield = lt_fieldcat i_prompt = ' ' i_user_specific = 'FI_SL_SHOW_TOT_LIST' EXCEPTIONS internal_error = 1 OTHERS = 2.

G_GET_ORGANIZATIONAL_DATA



CALL FUNCTION 'G_GET_ORGANIZATIONAL_DATA' EXPORTING i_rldnr = -rldnr i_orgunit = -bukrs IMPORTING organizational_info = ls_info EXCEPTIONS no_info_found = 1 error_in_setup = 2 error_in_depld = 3 OTHERS = 4.

FAGL_GET_GROUPS_WITH_LEDGER CALL FUNCTION 'FAGL_GET_GROUPS_WITH_LEDGER' EXPORTING i_rldnr = -rldnr TABLES et_ldgrp = lt_ldgrp.

G_PERIODS_OF_YEAR_GET CALL FUNCTION 'G_PERIODS_OF_YEAR_GET' EXPORTING variant = year = pgjahr * IMPORTING * LAST_NORMAL_PERIOD = TABLES i_periods = lt_periods EXCEPTIONS variant_not_defined = 1 year_not_defined = 2 OTHERS = 3.

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

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = l_repid i_callback_pf_status_set = 'SET_STATE' i_callback_user_command = 'USER_COMMAND' it_fieldcat = lt_fieldcat it_events = lt_event TABLES t_outtab = gt_outtab EXCEPTIONS program_error = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-f01 display_cancel_button = ' ' IMPORTING answer = l_answer.

AS_API_SYSTEM_SELECT CALL FUNCTION 'AS_API_SYSTEM_SELECT' EXPORTING i_infostruc = lv_infostruc i_selections = it_selections IMPORTING e_result = lt_result EXCEPTIONS * parameters_invalid = 1 infostruc_not_found = 2. "#EC *

AS_API_COMPLETENESS_CHECK CALL FUNCTION 'AS_API_COMPLETENESS_CHECK' EXPORTING i_infostruc = lv_infostruc * I_FROM_DATE = 00010101 IMPORTING e_compl_indexed_runs = lt_indexed_sessions EXCEPTIONS infostruc_not_found = 1 infostruc_inactive = 2.

AS_API_INFOSTRUC_FIND CALL FUNCTION 'AS_API_INFOSTRUC_FIND' EXPORTING i_fieldcat = lv_fieldcat i_fields = it_fields i_obligatory_fields = it_obligatory_fields IMPORTING e_infostruc = lv_infostruc EXCEPTIONS no_infostruc_found = 1. "#EC *



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