RFBNUM00N is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for trados = fi You can use this report to find gaps in the document number assignment across several ledgers...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 RFBNUM00N 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: TITLE = D .
Selection Text: SO_NUMKR = D .
Selection Text: SO_BUKRS = D .
Selection Text: SO_BLART = D .
Selection Text: PA_GJAHR = D .
Selection Text: PA_RYEAR = Gaps Starting in Fiscal Year
Selection Text: PA_GONLY = Display Gaps Only
Selection Text: PA_BYEAR = Document No. Buffer for Year
Selection Text: PA_BUFF = Check Document Number Buffer
Selection Text: PA_ARCH = Check Document Archive
Title: Gaps in Document Number Assignment
Text Symbol: S04 = Document number buffer relates to a range of years
Text Symbol: S03 = Document number buffer relates to a single year
Text Symbol: S02 = Check Document Number Buffer Only for Specified Fiscal Year
Text Symbol: S01 = Display Numbering Gaps Starting with Specified Fiscal Year Only
Text Symbol: H01 = Filter '&1' Active
Text Symbol: 039 = Document Number Buffer Details
Text Symbol: 038 = Number Range Object
Text Symbol: 037 = Output Parameters
Text Symbol: 036 = or document types
Text Symbol: 035 = Additional Selection Criteria
Text Symbol: 018 = Missing Document Number To
Text Symbol: 017 = Missing Document Number From
Text Symbol: 016 = Company Code
Text Symbol: 015 = Document Numbers Assigned More Than Once
Text Symbol: 014 = Missing Document Numbers
Text Symbol: 013 = Interval
Text Symbol: 012 = No Gaps
Text Symbol: 011 = To Year
Text Symbol: 010 = Number Range
Text Symbol: 005 = External
Text Symbol: 004 = Number
Text Symbol: 003 = To
Text Symbol: 002 = Year
Text Symbol: 001 = Either number ranges
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FI_CHECK_DATE CALL FUNCTION 'FI_CHECK_DATE' EXPORTING i_bukrs = ld_bukrs i_user = sy-uname i_program = 'RFBNUM00N' i_from_year = pa_gjahr IMPORTING e_return = ld_return EXCEPTIONS no_authority_prog = 1 no_authority_date = 2 wrong_parameter = 3 OTHERS = 4.
FAGL_CHECK_GLFLEX_ACTIV_CLIENT CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIV_CLIENT' "N972706 EXPORTING "N972706 client = sy-mandt "N972706 IMPORTING "N972706 e_glflex_active = gd_fagl_active. "N972706
FAGL_GET_ALL_LEDGERS_IN_BUKRS CALL FUNCTION 'FAGL_GET_ALL_LEDGERS_IN_BUKRS' EXPORTING i_bukrs = wa_bukrs-bukrs IMPORTING et_ledgers = gt_ledger.
FI_CHECK_DATE CALL FUNCTION 'FI_CHECK_DATE' EXPORTING i_bukrs =
-bukrs i_user = sy-uname i_program = 'RFBNUM00N' i_from_year = -gjahr EXCEPTIONS OTHERS = 4.
POPUP_NO_LIST * CALL FUNCTION 'POPUP_NO_LIST'.
NUMBER_RANGE_INTERVAL_LIST CALL FUNCTION 'NUMBER_RANGE_INTERVAL_LIST' EXPORTING nr_range_nr1 = p_numkr object = 'RF_BELEG' subobject = p_bukrs TABLES interval = lt_xnriv EXCEPTIONS OTHERS = 1.
READ_CUSTOMIZED_MESSAGE CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE' "begin note 1179646 EXPORTING i_arbgb = 'FR' i_dtype = 'E' i_msgnr = '781' IMPORTING e_msgty = ld_msgty.
READ_CUSTOMIZED_MESSAGE CALL FUNCTION 'READ_CUSTOMIZED_MESSAGE' "begin note 1179646 EXPORTING i_arbgb = 'FR' i_dtype = 'E' i_msgnr = '781' IMPORTING e_msgty = ld_msgty.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = g_tabname_header i_structure_name = gc_structname_header CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_internal_tabname = g_tabname_item i_structure_name = gc_structname_item CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING e_width = lv_width EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.
FAGL_BATCH_HEADING_PERFORM CALL FUNCTION 'FAGL_BATCH_HEADING_PERFORM' EXPORTING is_bhdgd = bhdgd.
REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid * i_callback_pf_status_set = 'PF_STATUS' "n1293028 it_fieldcat = gt_fieldcat it_events = gt_eventstab i_tabname_header = g_tabname_header i_tabname_item = g_tabname_item is_keyinfo = gs_keyinfo it_sort = gt_sorttab i_save = 'A' is_variant = ls_variant TABLES t_outtab_header = gt_output_header t_outtab_item = gt_output_item EXCEPTIONS program_error = 1 OTHERS = 2.
AS_API_READ CALL FUNCTION 'AS_API_READ' "#EC * EXPORTING i_fieldcat = ld_fcat i_selections = ltx_range i_obligatory_fields = lt_fields[] IMPORTING e_result = lt_result EXCEPTIONS no_infostruc_found = 2 field_missing_in_fieldcat = 3.
NUMBER_RANGE_INTERVAL_LOCAL CALL FUNCTION 'NUMBER_RANGE_INTERVAL_LOCAL' EXPORTING object = 'RF_BELEG' subobject = id_ccode TABLES interval = lt_interval.
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = ls_doc-belnr IMPORTING output = ls_doc-belnr.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.