SAP Reports / Programs

RFTBARC3 SAP ABAP Report - Limit Archiving: Reload Program







RFTBARC3 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Reloads limits, utilizations and dependent limit management data previously archived and deleted...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 RFTBARC3 into the relevant SAP transactions such as SE38 or SE80


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 RFTBARC3. "Basic submit
SUBMIT RFTBARC3 AND RETURN. "Return to original report after report execution complete
SUBMIT RFTBARC3 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: TESTRUN = Test Run
Selection Text: S_SLI = D Limit Utilization Status
Selection Text: S_SLA = D Limit Type
Selection Text: S_DLVE = D Valid To
Selection Text: S_DLVB = D Valid From
Selection Text: S_DLI = D Determination Date
Selection Text: R_WAERS = D Currency as Limit Char.
Selection Text: R_SLPG = D Limit Product Group
Selection Text: R_SECTOR = D Industry
Selection Text: R_RPORTB = D Portfolio
Selection Text: R_RDEAL = D Trader
Selection Text: R_RCID10 = D Free Characteristic 10
Selection Text: R_RCID09 = D Free Characteristic 09
Selection Text: R_RCID08 = D Free Characteristic 08
Selection Text: R_RCID07 = D Free Characteristic 07
Selection Text: R_RCID06 = D Free Characteristic 06
Selection Text: R_RCID05 = D Free Characteristic 05
Selection Text: R_RCID04 = D Free Characteristic 04
Selection Text: R_RCID03 = D Free Characteristic 03
Selection Text: R_RCID02 = D Free Characteristic 02
Selection Text: R_RCID01 = D Free Characteristic 01
Selection Text: R_RATING = D Rating
Selection Text: R_PARTNR = D Business Partner
Selection Text: R_COUNT = D Country
Selection Text: R_CONTRO = D Monitoring Unit
Selection Text: R_BUKRS = D Company Code
Selection Text: P_V3 = Limits and Util. Calculations
Selection Text: P_V2 = Utilization Calculations Only
Selection Text: P_V1 = Limits Only
Selection Text: P_ARKEY = D Archive File
Title: Limit Archiving: Reload Program
Text Symbol: M03 = Selection of Free Characteristics
Text Symbol: M02 = Selection of Derived Characteristics
Text Symbol: M01 = Selection of Direct Characteristics
Text Symbol: ERR = Lock Conflicts
Text Symbol: C03 = Selection of Characteristics for Limits and Utilizations:
Text Symbol: C02 = Archive File
Text Symbol: C01 = Test Run





Text Symbol: B03 = Selections for Utilization Determination
Text Symbol: B02 = Selection of Limits
Text Symbol: B01 = Selection of Limit Types
Text Symbol: B00 = Reload Mode


INCLUDES used within this REPORT RFTBARC3

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:

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING * ARCHIVE_DOCUMENT = '000000' archive_name = p_arkey object = con_arc_object * MAINTAIN_INDEX = ' ' IMPORTING archive_handle = g_handle TABLES * ARCHIVE_FILES = selected_files = gt_sel_files EXCEPTIONS file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 OTHERS = 8.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = g_handle.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' IMPORTING e_identification = g_message_handle EXCEPTIONS OTHERS = 1.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING * CORRECTIONS_OPTION = ' ' * CORRECTIONS_FUNC_TEXT = ' ' * LINE_FROM = ' ' * LINE_TO = ' ' object = text-err * SEND_IF_ONE = ' ' * BATCH_LIST_TYPE = 'J' * SHOW_LINNO = 'X' * SHOW_LINNO_TEXT = ' ' * SHOW_LINNO_TEXT_LEN = '3' * IMPORTING * CORRECTIONS_WANTED = EXCEPTIONS inconsistent_range = 1 no_messages = 2 OTHERS = 3.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = u_handle IMPORTING object_id = g_object_id object_offset = g_offset archive_name = p_arkey EXCEPTIONS end_of_file = 1 file_io_error = 2 internal_error = 3 open_error = 4 wrong_access_to_archive = 5 OTHERS = 6.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = g_handle IMPORTING record_ref = buffer_ref * record = arc_buffer-segment record_structure = arc_buffer-rname EXCEPTIONS end_of_object = 01 internal_error = 02 wrong_access_to_archive = 03 OTHERS = 04.

TB_LIMIT_CHARS_CREA_GEN_NAME CALL FUNCTION 'TB_LIMIT_CHARS_CREA_GEN_NAME' EXPORTING i_sla = u_atla-sla * I_SLH = 00 * I_MANDT = IMPORTING * E_NAME = e_entry_exists = l_entry_exists.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = l_msgid * EXCEPTION_IF_NOT_ACTIVE = E02 msgty = l_msgty msgv1 = l_msgv1 msgv2 = l_msgv2 msgv3 = l_msgv3 msgv4 = l_msgv4 txtnr = l_msgno zeile = g_message_count * IMPORTING * ACT_SEVERITY = I01 * MAX_SEVERITY = I02 EXCEPTIONS message_type_not_valid = 01 not_active = 02.

TB_LIMIT_CHARS_MAIN * CALL FUNCTION 'TB_LIMIT_CHARS_MAIN' * EXPORTING * I_ACCESS_MODE = '4' * I_ROWS = 1 * I_LS = L_VTBLS3 * CHANGING * CT_VTBLS = LT_VTBLS[].

TB_LIMIT_LSTRUC_2_RCHAR CALL FUNCTION 'TB_LIMIT_LSTRUC_2_RCHAR' EXPORTING i_ls = l_vtbls3 IMPORTING er_char = l_t_r_char.

TB_LIMIT_CHARS_MAIN_GEN CALL FUNCTION 'TB_LIMIT_CHARS_MAIN_GEN' EXPORTING i_access_mode = '1' i_rows = 1 ir_char = l_t_r_char CHANGING ct_vtbls = lt_vtbls[].

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = g_handle TABLES table = lt_arch_stat EXCEPTIONS internal_error = 1 OTHERS = 2.

TB_LIMIT_RELOAD_ARCHIVED_RECS CALL FUNCTION 'TB_LIMIT_RELOAD_ARCHIVED_RECS' TABLES tt_ttxob = gt_ttxob tt_ttxid = gt_ttxid tt_atla = gt_atla tt_atlat = gt_atlat tt_atlam = gt_atlam tt_atlar = gt_atlar tt_vtbls = gt_vtbls tt_vtblp = gt_vtblp tt_vtblv = gt_vtblv tt_vtblvil = gt_vtblvil tt_cdhdr = gt_cdhdr tt_cdpos = gt_cdpos tt_vtblii = gt_vtblii tt_vtblsi = gt_vtblsi tt_vtblie = gt_vtblie tt_vtblid = gt_vtblid tt_vtblse = gt_vtblse tt_vtblsd = gt_vtblsd "#EC ENHOK tt_vtblis = gt_vtblis tt_vtblil = gt_vtblil tt_vtbllh = gt_vtbllh tt_vtbllp = gt_vtbllp tt_stxh = gt_stxh tt_stxl = gt_stxl tt_stxb = gt_stxb EXCEPTIONS OTHERS = 1.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = g_handle statistics_only_per_run = 'X' EXCEPTIONS internal_error = 1 OTHERS = 2.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = g_handle IMPORTING record_ref = buffer_ref * record = arc_buffer-segment record_structure = arc_buffer-rname EXCEPTIONS end_of_object = 01 internal_error = 02 wrong_access_to_archive = 03 OTHERS = 04.

ENQUEUE_E_VTBLIL CALL FUNCTION 'ENQUEUE_E_VTBLIL' EXPORTING * MODE_VTBLIL = 'E' * MANDT = SY-MANDT sla = u_sla sle = u_sle * dli = * X_SLA = ' ' * X_SLE = ' ' * X_DLI = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.






ENQUEUE_E_VTBLV CALL FUNCTION 'ENQUEUE_E_VTBLV' EXPORTING sla = u_sla EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_E_VTBLIL CALL FUNCTION 'DEQUEUE_E_VTBLIL' EXPORTING * MODE_VTBLIL = 'E' * MANDT = SY-MANDT sla = l_atla-sla sle = l_atla-sle * DLI = * X_SLA = ' ' * X_SLE = ' ' * X_DLI = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' EXCEPTIONS OTHERS = 1.

DEQUEUE_E_VTBLV CALL FUNCTION 'DEQUEUE_E_VTBLV' EXPORTING sla = l_atla-sla EXCEPTIONS OTHERS = 1.



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