RFKKAR11 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use report RFKKAR11 to execute the second step in document archiving in Contract Accounts Receivable and Payable (FI-CA): Deleting the documents based on a previously created archive...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 RFKKAR11 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: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DELTST = D .
Selection Text: P_DELPRD = D .
Selection Text: P_OLD = Old Log
Selection Text: P_EXTRA = Additional Information
Title: Archiving of FI-CA Documents: Deletion
Text Symbol: T01 = Program Control
Text Symbol: P01 = Document Deleted
Text Symbol: D50 = No. Entries in Archived Tables
Text Symbol: D24 = DFKKOP Copy
Text Symbol: 034 = No.DFKKIA..
Text Symbol: 033 = DFKKIA
Text Symbol: 032 = DFKKOPKC
Text Symbol: 031 = No.DFKKOPKC
Text Symbol: 030 = Overview Log - Deleted Documents
Text Symbol: 029 = Overview Log - Documents To Be Deleted
Text Symbol: 028 = OI Copy
Text Symbol: 027 = No. DFKKOPW.
Text Symbol: 026 = DFKKOP_ARIDX
Text Symbol: 024 = DFKKOP_C
Text Symbol: 023 = DFKKOPW
Text Symbol: 022 = DFKKOPK
Text Symbol: 021 = DFKKOP
Text Symbol: 020 = DFKKKO
Text Symbol: 014 = No Log Data Available
Text Symbol: 013 = Detail Log - Documents Deleted
Text Symbol: 012 = Detail Log - Documents To Be Deleted
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: 004 = No. DFKKOPK.
Text Symbol: 003 = No. DFKKOP..
Text Symbol: 002 = No. DFKKKO..
INCLUDE RFKKARI00.
INCLUDE RFKKARI1.
INCLUDE RFKKAR_FORMS.
INCLUDE ARCH_DELETE_PRG_STANDARD2.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.
FKK_ARCH_DELETE_LOCK CALL FUNCTION 'FKK_ARCH_DELETE_LOCK' EXPORTING i_arch_obj = sys_objct.
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_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = sys_objct test_mode = p_testl IMPORTING archive_handle = arc_data-handle TABLES selected_files = select_files.
FKK_ARCH_STAT_MODE CALL FUNCTION 'FKK_ARCH_STAT_MODE' EXPORTING i_mode = 'D'.
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_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = arc_data-handle IMPORTING archive_name = arc_data-name.
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_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = arc_data-handle.
NOTICE_OPEN CALL FUNCTION 'NOTICE_OPEN' EXPORTING x_object = 'FKKKO' x_key = h_thead_tdname x_wmode = co_notice_delete x_upd_online = 'X' IMPORTING y_obj = h_obj_info.
NOTICE_ACTION CALL FUNCTION 'NOTICE_ACTION' EXPORTING x_action = co_notice_dlt CHANGING xy_obj = h_obj_info.
NOTICE_CLOSE CALL FUNCTION 'NOTICE_CLOSE' EXPORTING x_force = 'X' CHANGING xy_obj = h_obj_info.
ARCHIVE_ADMIN_SET_STATUS * CALL FUNCTION 'ARCHIVE_ADMIN_SET_STATUS' * EXPORTING * FILES_ARE_CONVERTED = ' ' ** FILES_ARE_DELETED = ' ' ** index_created = 'X' ** INDEX_DELETED = ' ' * TABLES * ARCHIVE_FILES = SELECT_FILES.
ARCHIVE_CLOSE_FILE * CALL FUNCTION 'ARCHIVE_CLOSE_FILE' * 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_WRITE_STATISTICS ** CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' ** EXPORTING ** archive_handle = arc_data-handle *** STATISTICS_ONLY_PER_RUN = ' ' ** STATISTICS_ONLY_PER_FILE = 'X' ** EXCEPTIONS ** internal_error = 1 ** wrong_access_to_archive = 2 ** OTHERS = 3 ** .
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 = kopf.
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 = op.
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 = key_ko-opbel IMPORTING e_callback_parameter = v_callback-t_par.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = key_ko-opbel i_text = text-p01 i_msgtype = 1 i_callback_parameter = v_callback.
ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = iv_arc_handle record_structure = iv_name all_records_of_object = 'X' TABLES table = it_int.
FKK_ARCH_STAT_READ CALL FUNCTION 'FKK_ARCH_STAT_READ' EXPORTING i_table = iv_name i_number = ov_number.
FKK_ARCH_DETAIL_SUPPLY_SINGLE CALL FUNCTION 'FKK_ARCH_DETAIL_SUPPLY_SINGLE' EXPORTING i_table = iv_name i_number = ov_number.
CALL FUNCTION 'FKK_ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = arc_data-handle TABLES table = stat_itab.
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 RFKKAR11 or its description.