RFKKRA03 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report RFKKRA03 carries out the first step in the archiving of
If you would like to execute this report or see the full code listing simply enter RFKKRA03 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_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_SNAP = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DEST = D .
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: P_AR_ILM = D .
Selection Text: P_ARDAY = Archiving key date
Title: Archiving of Returns Histories: Write
Text Symbol: S01 = Returns History Archived
Text Symbol: E10 = Returns histories not archived
Text Symbol: E09 = Non-archivable returns histories
Text Symbol: E08 = Accompanying lot not yet posted
Text Symbol: E07 = Residence time not adhered to
Text Symbol: E05 = Cause
Text Symbol: E01 = Detail log - non-archivable returns histories
Text Symbol: E00 = Detail log - returns histories not archived
Text Symbol: D21 = DFKKRH
Text Symbol: D14 = Overview log - archivable returns histories
Text Symbol: D13 = Detail log - archivable returns histories
Text Symbol: D12 = Overview log - archived returns histories
Text Symbol: D11 = Detail log - archived returns histories
Text Symbol: D10 = Table
Text Symbol: D09 = In bytes...........
Text Symbol: D07 = Archived.....
Text Symbol: D06 = Read.......
Text Symbol: D05 = Re. doc no
Text Symbol: D04 = Contract Acct
Text Symbol: D03 = No.DFKKRH..
Text Symbol: D01 = BPartner
Text Symbol: 011 = <<< Update run >>>
Text Symbol: 010 = <<< Test Run >>>
Text Symbol: 007 = Processing Options
Text Symbol: 006 = No log data available
Text Symbol: 002 = Restrictions
Text Symbol: 001 = Archiving quantity selection
INCLUDE IFKKRA03.
INCLUDE RFKKREHI_FORMS.
INCLUDE FKK_ARCH_BASE_SAVE.
INCLUDE ARCH_WRITE_PRG_STANDARD2.
INCLUDE FKK_ARCH_BASE_SELECT ##INCL_OK.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.
ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING object = sys_objct call_delete_job_in_test_mode = p_deltst create_archive_file = p_wriprd comments = p_coment output_sel_screen_when_dialog = ' ' do_not_delete_data = p_snap destroy = p_dest IMPORTING archive_handle = arc_data-handle.
FKK_ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'FKK_ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.
FKK_ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'FKK_ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = arc_data-handle.
ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = arc_data-handle.
FKK_ARCHIVE_NEW_OBJECT CALL FUNCTION 'FKK_ARCHIVE_NEW_OBJECT' "Create new object EXPORTING archive_handle = arc_data-handle object_id = x_arch_all-archindex.
FKK_ARCHIVE_PUT_RECORD CALL FUNCTION 'FKK_ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'DFKKRH' record = x_arch_all-dfrh.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = objid i_text = lv_text i_msgtype = 2.
FKK_ARCH_STAT_READ CALL FUNCTION 'FKK_ARCH_STAT_READ' EXPORTING i_table = iv_name i_number = iv_number.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.