SAP Reports / Programs | Financial Accounting | Contract Accounts Receivable and Payable(FI-CA) SAP FI

RFKKAR12 SAP ABAP Report - Archiving of FI-CA Documents: Reload







RFKKAR12 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for trados = fi Report RFKKAR12 reloads a document archive during document archiving in Contract Accounts Receivable and Payable (FI-CA)...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 RFKKAR12 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 RFKKAR12. "Basic submit
SUBMIT RFKKAR12 AND RETURN. "Return to original report after report execution complete
SUBMIT RFKKAR12 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_RELTST = D .
Selection Text: P_RELPRD = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Title: Archiving of FI-CA Documents: Reload
Text Symbol: T01 = Program control
Text Symbol: P01 = Document will be reloaded
Text Symbol: D50 = No. Entries in Archived Tables
Text Symbol: D24 = DFKKOP Copy
Text Symbol: 030 = Overview log - reloaded documents
Text Symbol: 029 = Overview log - documents to be reloaded
Text Symbol: 028 = OI Copy
Text Symbol: 024 = DFKKOP_C
Text Symbol: 014 = No log data available
Text Symbol: 013 = Detail log - reloaded documents
Text Symbol: 012 = Detail log - documents to be reloaded
Text Symbol: 011 = <<< UPDATE RUN >>>
Text Symbol: 010 = <<< Test Run >>>
Text Symbol: 009 = in bytes..........
Text Symbol: 008 = Deleted........
Text Symbol: 007 = Read.......
Text Symbol: 006 = Table
Text Symbol: 005 = Entered......
Text Symbol: 001 = Doc. number


INCLUDES used within this REPORT RFKKAR12

INCLUDE RFKKARI00.
INCLUDE RFKKARI2.
INCLUDE RFKKAR_FORMS.
INCLUDE ARCH_RELOAD_PRG_STANDARD2.


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_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = sys_objct IMPORTING commit_count_for_delete_prg = arc_data-del_size maintain_index = arc_data-index.

ARCHIVE_OPEN_FOR_MOVE CALL FUNCTION 'ARCHIVE_OPEN_FOR_MOVE' EXPORTING object = sys_objct test_mode = p_testl IMPORTING archive_read_handle = arc_data-handle.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = arc_data-handle IMPORTING * archive_name = arc_data-name archive_document = arc_data-doc.

FKK_ARCH_STAT_MODE CALL FUNCTION 'FKK_ARCH_STAT_MODE' EXPORTING i_mode = 'R'.

FKK_ARCH_DETAIL_INIT CALL FUNCTION 'FKK_ARCH_DETAIL_INIT' IMPORTING e_callback_parameter = v_callback.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_detail.

ARCHIVE_CLOSE_FILE * CALL FUNCTION 'ARCHIVE_CLOSE_FILE' * EXPORTING * archive_handle = l_handle.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = arc_data-handle IMPORTING object_id = arc_data-object_id object_offset = arc_data-offset archive_name = arc_data-archivekey EXCEPTIONS end_of_file = 01.

ARCHIVE_RELOAD_OBJECT_DATA CALL FUNCTION 'ARCHIVE_RELOAD_OBJECT_DATA' EXPORTING archive_handle = arc_data-handle.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = arc_data-handle statistics_only_per_file = 'X'.

FKK_ARCH_STAT_WRITE CALL FUNCTION 'FKK_ARCH_STAT_WRITE'.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = arc_data-handle.

ARCHIVE_GET_TABLE * call function 'ARCHIVE_GET_TABLE' * exporting * archive_handle = &1 * record_structure = &2 * all_records_of_object = 'X' * tables * table = &3.

FKK_ARCH_STAT_READ * call function 'FKK_ARCH_STAT_READ' * exporting * i_table = &2 * i_number = v_number.

FKK_ARCH_DETAIL_SUPPLY_SINGLE * call function 'FKK_ARCH_DETAIL_SUPPLY_SINGLE' * exporting * i_table = &2 * i_number = v_number.

ARCHIVE_GET_TABLE * CALL FUNCTION 'ARCHIVE_GET_TABLE' * EXPORTING * archive_handle = arc_data-handle * record_structure = ckopf * all_records_of_object = 'X' * TABLES * table = ltkopf.

FKK_ARCH_STAT_READ





CALL FUNCTION 'FKK_ARCH_STAT_READ' EXPORTING i_table = ckopf i_number = 1.

FKK_ARCH_DETAIL_SUPPLY_SINGLE CALL FUNCTION 'FKK_ARCH_DETAIL_SUPPLY_SINGLE' EXPORTING i_table = ckopf i_number = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = arc_data-handle record_structure = copc all_records_of_object = 'X' TABLES table = ltop_c. " Note 1709771

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = arc_data-handle record_structure = cidx all_records_of_object = 'X' TABLES table = arcidx.

FKK_ARCH_DETAIL_INIT CALL FUNCTION 'FKK_ARCH_DETAIL_INIT' IMPORTING e_callback_parameter = v_callback.

FKK_ARCH_DETAIL_SUPPLY_FINISH CALL FUNCTION 'FKK_ARCH_DETAIL_SUPPLY_FINISH' EXPORTING i_objectid = kopf-opbel IMPORTING e_callback_parameter = v_callback-t_par.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = kopf-opbel i_text = 'Beleg wird zurückgeladen'(p01) i_msgtype = 1 i_callback_parameter = v_callback.

FKK_ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'FKK_ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = arc_data-handle TABLES table = stat_itab.

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting archive_handle = iv_archive_handle record_structure = iv_record_structure all_records_of_object = 'X' tables table = ct_local_table.

FKK_ARCH_STAT_READ call function 'FKK_ARCH_STAT_READ' exporting i_table = iv_record_structure i_number = cv_counter.

FKK_ARCH_DETAIL_SUPPLY_SINGLE call function 'FKK_ARCH_DETAIL_SUPPLY_SINGLE' exporting i_table = iv_record_structure i_number = cv_counter.

ARCH_RELO_TABLE_INSERT_TEST call function 'ARCH_RELO_TABLE_INSERT_TEST' exporting i_structure = iv_record_structure i_accepting_duplicate_records = space importing e_reload_property = lv_table_reload_property tables t_data = ct_local_table EXCEPTIONS table_not_active = 1 others = 2.

ARCH_RELO_PROPERTY_DECIDE call function 'ARCH_RELO_PROPERTY_DECIDE' exporting i_table_reload_property = lv_table_reload_property i_archiv_key = arc_data-archivekey i_offset = arc_data-offset importing e_object_reload_property = lv_object_reload_property.

ARCHIVE_ADMIN_POPUP_DOCUMENTS ** CALL FUNCTION 'ARCHIVE_ADMIN_POPUP_DOCUMENTS' ** EXPORTING ** object = sys_objct ** radio_buttons = 'X' ** dialog_type = 'RELOAD' ** TABLES ** selected_files = select_files ** EXCEPTIONS ** object_not_found = 01 ** cancelled_by_user = 02 ** no_files_selected = 03.

ARCHIVE_OPEN_FOR_READ ** CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' ** EXPORTING ** object = sys_objct ** archive_name = select_files-archiv_key ** IMPORTING ** archive_handle = l_handle ** EXCEPTIONS ** OTHERS = 1.

ARCHIVE_OPEN_FOR_MOVE * CALL FUNCTION 'ARCHIVE_OPEN_FOR_MOVE' * EXPORTING * object = sys_objct * test_mode = 'X' ** archive_name = select_files-archiv_key * * IMPORTING * archive_read_handle = l_handle ** ARCHIVE_WRITE_HANDLE = * 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_GET_INFORMATION * CALL FUNCTION 'ARCHIVE_GET_INFORMATION' * EXPORTING * archive_handle = l_handle * IMPORTING * archive_name = arc_data-name * archive_document = arc_data-doc.

ARCHIVE_CLOSE_FILE * CALL FUNCTION 'ARCHIVE_CLOSE_FILE' * EXPORTING * archive_handle = l_handle.

ARCHIVE_CLOSE_FILE * CALL FUNCTION 'ARCHIVE_CLOSE_FILE' * EXPORTING * archive_handle = l_handle.



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