RFINDEX is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Consistency check of index tables against document table BSEG The report can check the consistency of the index tables (BSIS, BSAS, BSID, BSAD, BSIK and BSAK ) with the line items in table BSEG...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 RFINDEX into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: X_OPDATE = Open Items vs Financial State.
Selection Text: X_MATNR = Check Material
Selection Text: X_KREDI = Check Vendors
Selection Text: X_INDEX = Indexes vs Documents
Selection Text: X_HEADE = Find Missing BSEG
Selection Text: X_F190 = Indexes - Transaction Figures
Selection Text: X_F070 = Documents-Transaction Figures
Selection Text: X_DUPLIC = Find Duplicate Index
Selection Text: X_DELIND = Delete Index without BSEG
Selection Text: X_DELHD = Delete BKPF without BSEG
Selection Text: X_DEBI = Check Customers
Selection Text: X_CLEAR = Check Clearing
Selection Text: X_BSEG = Documents vs Indexes
Selection Text: X_BILA = Check Financial Statements
Selection Text: REPAIR = Create/Repair Index
Selection Text: P_OI = Open Items Only
Selection Text: P_CL = Only Cleared Items
Selection Text: P_ANY = Cleared and Open Items
Selection Text: PROTOX = More Detailed
Selection Text: PROTOS = Summary
Selection Text: PROTOC = Detailed
Selection Text: C_BSEG = Check BSEG for Clearng Info
Selection Text: P_XBLNR = D .
Selection Text: P_WAERS = D .
Selection Text: P_UMSKZ = D .
Selection Text: P_UMSKS = D .
Selection Text: P_PSWSL = D .
Selection Text: P_MONAT = D .
Selection Text: P_MATNR = D .
Selection Text: P_LIFNR = D .
Selection Text: P_KUNNR = D .
Selection Text: P_HKONT = D .
Selection Text: P_GSBER = D .
Selection Text: P_GJAHR = D .
Selection Text: P_CPUDT = D .
Selection Text: P_BUKRS = D .
Selection Text: P_BUDAT = D .
Selection Text: P_BLART = D .
INCLUDE RFINDEX_SCHED.
No SAP DATABASE tables are accessed within this REPORT code!
FAGL_GET_GLT0 CALL FUNCTION 'FAGL_GET_GLT0' EXPORTING i_glt0_rldnr = curtab-rldnr i_rrcty = '0' i_rvers = '001' i_bukrs = bkrs i_rpmax = '016' i_range_ryear = lt_ryear i_range_racct = lt_racct IMPORTING et_glt0 = lt_fagl_t_glt0.
POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING titel = 'Es wird kein Konto geprüft'(370) textline1 = 'Es muß mindestens ein Konto selektiert werden'(371) textline2 = 'Bitte nicht vergessen eine Kontoart auszuwählen'(372).
POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING titel = 'Bestätigen'(373) textline1 = 'Neues Hauptbuch ist aktiv'(374) textline2 = 'GLT0 kann nicht angepasst werden'(375).
POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING titel = 'Es wird kein Konto geprüft'(370) textline1 = 'Es muß mindestens ein Konto selektiert werden'(371) textline2 = 'Bitte nicht vergessen eine Kontoart auszuwählen'(372).
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.
G_GIVE_LEDGERS_FOR_GLT0 CALL FUNCTION 'G_GIVE_LEDGERS_FOR_GLT0' EXPORTING bukrs = pit001-bukrs curtp = ls_x001-curt2 TABLES ledtab = xgledtab.
G_GIVE_LEDGERS_FOR_GLT0 CALL FUNCTION 'G_GIVE_LEDGERS_FOR_GLT0' EXPORTING bukrs = pit001-bukrs curtp = ls_x001-curt3 TABLES ledtab = xgledtab.
G_GIVE_LEDGERS_FOR_GLT0 * CALL FUNCTION 'G_GIVE_LEDGERS_FOR_GLT0' * EXPORTING * bukrs = pit001-bukrs * curtp = curt * TABLES * ledtab = xgledtab.
G_GIVE_LEDGERS_FOR_GLT0 * CALL FUNCTION 'G_GIVE_LEDGERS_FOR_GLT0' * EXPORTING * bukrs = pit001-bukrs * curtp = curt * TABLES * ledtab = xgledtab.
FI_CURRENCY_INFORMATION * CALL FUNCTION 'FI_CURRENCY_INFORMATION' * EXPORTING * i_bukrs = pit001-bukrs ** I_LAND1 = ' ' ** I_RCOMP = ' ' * IMPORTING * E_X001 = ls_x001 * EXCEPTIONS * CURRENCY_2_NOT_DEFINED = 1 * CURRENCY_3_NOT_DEFINED = 2 * OTHERS = 3 * .
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'OPEN_FI_PERFORM_00005012_P' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
OPEN_FI_PERFORM_00005012_P CALL FUNCTION 'OPEN_FI_PERFORM_00005012_P' EXPORTING i_chgtype = 'D' i_origin = 'RFINDEX AVOID_ZERO_AMOUNT' i_tabname = 'GLT0' i_structure = bw_glt0 * TABLES * T_STRUCTURE = EXCEPTIONS error = 0 OTHERS = 0.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = '0_PERFORM_00005012_P' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
OPEN_FI_PERFORM_00005012_P CALL FUNCTION 'OPEN_FI_PERFORM_00005012_P' EXPORTING i_chgtype = 'D' i_origin = 'RFINDEX AVOID_ZERO_AMOUNT' i_tabname = 'KNC1' i_structure = bw_knc1 * TABLES * T_STRUCTURE = EXCEPTIONS error = 0 OTHERS = 0.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'OPEN_FI_PERFORM_00005012_P' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
OPEN_FI_PERFORM_00005012_P CALL FUNCTION 'OPEN_FI_PERFORM_00005012_P' EXPORTING i_chgtype = 'D' i_origin = 'RFINDEX AVOID_ZERO_AMOUNT' i_tabname = 'LFC1' i_structure = bw_lfc1 * TABLES * T_STRUCTURE = EXCEPTIONS error = 0 OTHERS = 0.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'OPEN_FI_PERFORM_00005012_P' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
OPEN_FI_PERFORM_00005012_P CALL FUNCTION 'OPEN_FI_PERFORM_00005012_P' EXPORTING i_chgtype = 'D' i_origin = 'RFINDEX AVOID_ZERO_AMOUNT' i_tabname = 'KNC3' i_structure = bw_knc3 * TABLES * T_STRUCTURE = EXCEPTIONS error = 0 OTHERS = 0.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'OPEN_FI_PERFORM_00005012_P' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
OPEN_FI_PERFORM_00005012_P CALL FUNCTION 'OPEN_FI_PERFORM_00005012_P' EXPORTING i_chgtype = 'D' i_origin = 'RFINDEX AVOID_ZERO_AMOUNT' i_tabname = 'LFC3' i_structure = bw_lfc3 * TABLES * T_STRUCTURE = EXCEPTIONS error = 0 OTHERS = 0.
FAGL_GET_GLT0 CALL FUNCTION 'FAGL_GET_GLT0' EXPORTING i_glt0_rldnr = tdelta-rldnr i_rrcty = '0' i_rvers = '001' i_bukrs = tdelta-bukrs i_ryear = tdelta-gjahr i_racct = tdelta-accnt i_rbusa = tdelta-gsber i_rtcur = tdelta-pswsl i_drcrk = tdelta-shkzg i_rpmax = '016' IMPORTING et_glt0 = lt_fagl_t_glt0.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'OPEN_FI_PERFORM_00005012_P' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
OPEN_FI_PERFORM_00005012_P CALL FUNCTION 'OPEN_FI_PERFORM_00005012_P' EXPORTING i_chgtype = 'M' i_origin = 'RFINDEX VZ_KORRIGIEREN' i_tabname = 'GLT0' i_structure = glt0 * TABLES * T_STRUCTURE = EXCEPTIONS error = 0 OTHERS = 0.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'OPEN_FI_PERFORM_00005012_P' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
OPEN_FI_PERFORM_00005012_P CALL FUNCTION 'OPEN_FI_PERFORM_00005012_P' EXPORTING i_chgtype = 'M' i_origin = 'RFINDEX VZ_KORRIGIEREN' i_tabname = 'KNC1' i_structure = knc1 * TABLES * T_STRUCTURE = EXCEPTIONS error = 0 OTHERS = 0.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'OPEN_FI_PERFORM_00005012_P' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
OPEN_FI_PERFORM_00005012_P CALL FUNCTION 'OPEN_FI_PERFORM_00005012_P' EXPORTING i_chgtype = 'M' i_origin = 'RFINDEX VZ_KORRIGIEREN' i_tabname = 'LFC1' i_structure = lfc1 * TABLES * T_STRUCTURE = EXCEPTIONS error = 0 OTHERS = 0.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'OPEN_FI_PERFORM_00005012_P' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
OPEN_FI_PERFORM_00005012_P CALL FUNCTION 'OPEN_FI_PERFORM_00005012_P' EXPORTING i_chgtype = 'M' i_origin = 'RFINDEX VZ_KORRIGIEREN' i_tabname = 'KNC3' i_structure = knc3 * TABLES * T_STRUCTURE = EXCEPTIONS error = 0 OTHERS = 0.
FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'OPEN_FI_PERFORM_00005012_P' EXCEPTIONS function_not_exist = 1 OTHERS = 2.
OPEN_FI_PERFORM_00005012_P CALL FUNCTION 'OPEN_FI_PERFORM_00005012_P' EXPORTING i_chgtype = 'M' i_origin = 'RFINDEX VZ_KORRIGIEREN' i_tabname = 'LFC3' i_structure = lfc3 * TABLES * T_STRUCTURE = EXCEPTIONS error = 0 OTHERS = 0.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
POPUP_TO_DISPLAY_TEXT * CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' * EXPORTING * titel = 'Table to count entries' * textline1 = sy-ucomm.
POPUP_TO_DISPLAY_TEXT * CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' * EXPORTING * titel = 'Table to count entries' * textline1 = 'RFBLG'.
POPUP_TO_DISPLAY_TEXT * CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' * EXPORTING * titel = 'Table to count entries' * textline1 = sy-ucomm.
POPUP_TO_DISPLAY_TEXT * CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' * EXPORTING * titel = 'Table to count entries' * textline1 = sy-ucomm.
POPUP_TO_DISPLAY_TEXT * CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' * EXPORTING * titel = 'Table to count entries' * textline1 = sy-ucomm.
POPUP_TO_DISPLAY_TEXT * CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' * EXPORTING * titel = 'Table to count entries' * textline1 = sy-ucomm.
POPUP_TO_DISPLAY_TEXT * CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' * EXPORTING * titel = 'Table to count entries' * textline1 = sy-ucomm.
POPUP_TO_DISPLAY_TEXT * CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' * EXPORTING * titel = 'Table to count entries' * textline1 = sy-ucomm.
POPUP_TO_DISPLAY_TEXT * call function 'POPUP_TO_DISPLAY_TEXT' * exporting * titel = 'Unknown user command' * textline1 = Sy-ucomm.
POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING titel = 'Sie haben keine Abstimmungsart angegeben'(376) textline1 = 'Bitte geben Sie mindestens eine Abstimmungsart an'(377) textline2 = ''.
POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING titel = 'Sie haben keine Kontoart ausgewählt'(378) textline1 = 'Wählen Sie mindestens eine Kontoart aus'(379) textline2 = ''.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' "#EC * EXPORTING defaultoption = 'N' textline1 = rrr titel = 'Bestätigen'(373) cancel_display = '' IMPORTING answer = rr.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' "#EC * EXPORTING defaultoption = 'N' textline1 = rrr titel = 'Bestätigen'(373) cancel_display = '' IMPORTING answer = rr.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text percentage = outperc.
GET_CURRENT_YEAR CALL FUNCTION 'GET_CURRENT_YEAR' EXPORTING bukrs = p_bukrs date = sy-datum IMPORTING curry = yea_end prevy = yea_start.
PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = iperiv-gjahr i_monat = iperiv-monat i_periv = p_periv IMPORTING e_fday = iperiv-fiday e_lday = iperiv-laday EXCEPTIONS error_period = 1 error_period_version = 2 firstday_not_defined = 3 period_not_defined = 4 year_invalid = 5 OTHERS = 6.
PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = miny i_monat = min i_periv = pt001-periv IMPORTING e_fday = minday * E_LDAY = mayday EXCEPTIONS error_period = 1 error_period_version = 2 firstday_not_defined = 3 period_not_defined = 4 year_invalid = 5 OTHERS = 6.
PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = maxy i_monat = max i_periv = pt001-periv IMPORTING * E_FDAY = minday e_lday = maxday EXCEPTIONS error_period = 1 error_period_version = 2 firstday_not_defined = 3 period_not_defined = 4 year_invalid = 5 OTHERS = 6.
POPUP_TO_DISPLAY_TEXT CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' EXPORTING titel = 'Sie haben keine Geschäftjahr angegeben!'(381) textline1 = 'Bitte geben Sie ein Geschäftjahr an'(382).
FAGL_GET_GLT0 CALL FUNCTION 'FAGL_GET_GLT0' EXPORTING i_glt0_rldnr = curtab-rldnr i_rrcty = '0' i_rvers = '001' i_bukrs = pit001-bukrs i_ryear = p_gjahr-low i_rpmax = '016' IMPORTING et_glt0 = lt_fagl_t_glt0.
RH_FUNCTION_EXIST CALL FUNCTION 'RH_FUNCTION_EXIST' EXPORTING name = ld_name EXCEPTIONS function_not_found = 1 OTHERS = 2.
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_GET_GLT0_SETTING CALL FUNCTION 'FAGL_GET_GLT0_SETTING' IMPORTING ed_read_glt0_user = ld_read_glt0_user.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = gc_pf_status i_callback_user_command = gc_user_command i_default = gc_checked is_layout = is_layo_list it_fieldcat = it_fcat_list it_events = it_evts_list it_sort = it_sort_list is_print = is_prnt_list TABLES t_outtab = it_table EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = gv_repid i_callback_pf_status_set = gc_pf_status i_callback_user_command = gc_user_command is_layout = is_layo_list it_fieldcat = it_fcat_list * IT_EXCLUDING = * IT_SPECIAL_GROUPS = it_sort = it_sort_list it_events = it_evts_list * IT_EVENT_EXIT = i_tabname_header = iv_header i_tabname_item = iv_item * I_STRUCTURE_NAME_HEADER = * I_STRUCTURE_NAME_ITEM = is_keyinfo = is_keyinfo is_print = is_prnt_list TABLES t_outtab_header = it_alv_table1 t_outtab_item = it_alv_table2 EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_internal_tabname = iv_header_name i_structure_name = iv_structure_name1 CHANGING ct_fieldcat = xt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_internal_tabname = iv_item_name i_structure_name = iv_structure_name2 CHANGING ct_fieldcat = xt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = iv_structure_name1 CHANGING ct_fieldcat = xt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
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 RFINDEX or its description.