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

RFKKCO03 SAP ABAP Report - FI-CA: Correspondence Archiving







RFKKCO03 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report RFKKCO03 carries out the first step in FI-CA correspondence archiving: Creation of an archive with correspondence...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 RFKKCO03 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 RFKKCO03. "Basic submit
SUBMIT RFKKCO03 AND RETURN. "Return to original report after report execution complete
SUBMIT RFKKCO03 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_AR_ILM = D .
Selection Text: SE_COCYR = Year
Selection Text: SE_COIDT = Date of issue
Selection Text: SE_COKEY = Correspondence key
Selection Text: SE_COPER = Correspondence interval
Selection Text: SE_COPNR = Period interval number
Selection Text: SE_COPRI = Print Date
Selection Text: SE_COTYP = Correspondence type
Selection Text: SE_GPART = Business Partner Number
Selection Text: SE_VKONT = Contract Account Number
Selection Text: P_ARDAY = D .
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_DEST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_SNAP = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Title: FI-CA: Correspondence Archiving
Text Symbol: S01 = Correspondence Archived
Text Symbol: E13 = Not Archived
Text Symbol: E12 = Sample Document
Text Symbol: E11 = Inbound Correspondence Not Received
Text Symbol: E10 = documents not archived
Text Symbol: 001 = Archiving quantity selection
Text Symbol: 002 = Restrictions
Text Symbol: 006 = No log data available
Text Symbol: 007 = Processing Options
Text Symbol: 010 = <<< Test Run >>>
Text Symbol: 011 = <<< Update run >>>
Text Symbol: D01 = Correspondence key
Text Symbol: D06 = Read.......
Text Symbol: D07 = Archived.....
Text Symbol: D09 = In bytes...........
Text Symbol: D10 = Table
Text Symbol: D11 = Detail log - archived correspondence
Text Symbol: D12 = Overview log - archived correspondence





Text Symbol: D13 = Detail log - archivable correspondence
Text Symbol: D14 = Overview log - archivable correspondence
Text Symbol: D30 = No. entries archived tables
Text Symbol: E00 = Detail log - unarchived correspondence
Text Symbol: E01 = Detail log - non-archivable correspondence
Text Symbol: E02 = Correspondence key
Text Symbol: E03 = COTYP
Text Symbol: E05 = Cause
Text Symbol: E06 = Correspondence Not Yet Printed
Text Symbol: E07 = Residence time not adhered to
Text Symbol: E08 = does not exist in Customizing
Text Symbol: E09 = non-archivable documents


INCLUDES used within this REPORT RFKKCO03

INCLUDE RFKKCOI0.
INCLUDE RFKKCORR_FORMS.
INCLUDE FKK_ARCH_BASE_SAVE.
INCLUDE FKK_ARCH_BASE_SELECT ##INCL_OK.
INCLUDE ARCH_WRITE_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_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING object = con_aobj_standard 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' "Neues Objekt anmelden EXPORTING archive_handle = arc_data-handle object_id = x_arch_all-archindex.

CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' EXPORTING archive_handle = arc_data-handle objectclass = 'FKK_CORR' objectid = l_objectid object_delete_flag = 'X'.

FICA_LOCKS_ARCHIVE_OBJECT CALL FUNCTION 'FICA_LOCKS_ARCHIVE_OBJECT' EXPORTING archive_handle = arc_data-handle i_keystructure = l_loobj i_lotyp = '07'.

FKK_ARCHIVE_PUT_RECORD CALL FUNCTION 'FKK_ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'DFKKCOHI' record = x_arch_all-cohi.






FKK_ARCHIVE_PUT_RECORD CALL FUNCTION 'FKK_ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'DFKKCOH' record = x_arch_all-kcoh.

FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'DFKKCOD' TABLES table = x_arch_all-kcod.

FKK_ARCHIVE_PUT_RECORD CALL FUNCTION 'FKK_ARCHIVE_PUT_RECORD' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'DFKKCOHARC' record = x_arch_all-karc.

FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'DFKKCODCLUST' TABLES table = x_arch_all-clst.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' " !!!!!!!!!!!!!!!!!!! EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = l_wrk_add-structname record = .

FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'DFKKCOHINCORR' TABLES table = x_arch_all-corr.

FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'DFKKCOMA' TABLES table = x_arch_all-coma.

FKK_ARCHIVE_PUT_TABLE CALL FUNCTION 'FKK_ARCHIVE_PUT_TABLE' EXPORTING archive_handle = arc_data-handle record_flags = archive_flags record_structure = 'DFKKCOMAKT' TABLES table = x_arch_all-makt.

FKK_GET_CORR_CUSTOMIZING CALL FUNCTION 'FKK_GET_CORR_CUSTOMIZING' EXPORTING i_cotyp = i_fkkcohi-cotyp i_no_e_message = 'X' IMPORTING e_tfk070g = i_tfk070g EXCEPTIONS not_found = 1.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_objid i_text = text-e08 i_msgtype = 2.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_objid * I_TEXT = i_msgtype = 2 i_msgid = '>A' i_msgno = '025' i_msgv1 = i_fkkcohi-cotyp * I_MSGV2 = * I_MSGV3 = * I_MSGV4 = * I_CALLBACK_PARAMETER = .

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_objid i_text = text-e06 i_msgtype = 2.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_objid i_text = text-e11 i_msgtype = 2.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_objid i_text = text-e07 i_msgtype = 2.

FKK_GET_CORR_CUSTOMIZING CALL FUNCTION 'FKK_GET_CORR_CUSTOMIZING' EXPORTING i_cotyp = u_corrtype i_no_e_message = 'X' IMPORTING e_tfk070a = l_str_tfk070a EXCEPTIONS OTHERS = 0.

RS_FUNCTION_ACTIVE_CHECK CALL FUNCTION 'RS_FUNCTION_ACTIVE_CHECK' EXPORTING funcname = l_wrk_fmod-fmod IMPORTING active = l_flg_active EXCEPTIONS not_found = 1 OTHERS = 2.

FKK_ARCH_STAT_READ CALL FUNCTION 'FKK_ARCH_STAT_READ' EXPORTING i_table = iv_name i_number = iv_number.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_objid i_text = lv_text i_msgtype = 2.



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