RTCOR_CO_ARCHIVE_WRITE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter RTCOR_CO_ARCHIVE_WRITE 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: SO_DLNUM = Deal number
Selection Text: SO_DPBNK = Depository Bank
Selection Text: SO_ESANO = External Securities Account ID
Selection Text: SO_ESGRP = Group Ext. Sec. Acct statement
Selection Text: SO_ESSTA = Status ext. sec. acct statemen
Selection Text: SO_EXREF = External reference
Selection Text: SO_EXRF1 = External reference 1
Selection Text: SO_EXRF2 = External reference 2
Selection Text: SO_FINPR = Finance project
Selection Text: SO_FUNC = Correspondence class
Selection Text: SO_GIRAC = Clearing account
Selection Text: SO_INREF = Internal reference
Selection Text: SO_MSAGR = Master agreement
Selection Text: SO_MSTAT = Message Status
Selection Text: SO_MTDTE = Date
Selection Text: SO_MTUSR = User
Selection Text: SO_PARTN = Business partner
Selection Text: SO_PFOLI = Portfolio
Selection Text: SO_PRDTP = Product type
Selection Text: SO_PROF = Profile
Selection Text: SO_REC = Recipient
Selection Text: SO_RECTP = Recipient type
Selection Text: SO_SACCD = Company Code
Selection Text: SO_SACID = Securities account ID
Selection Text: SO_SACNO = Sec.acct number
Selection Text: SO_SACSA = Securities Account
Selection Text: SO_SECAC = Securities account
Selection Text: SO_SECID = Securities ID number
Selection Text: SO_SICCD = Company Code
Selection Text: SO_SIPCT = Product category
Selection Text: SO_SIPTP = Product type
Selection Text: SO_STAT = Correspondence status
Selection Text: SO_TRNTP = Transaction type
Selection Text: SO_USER = User
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
INCLUDE RTCOR_CO_ARCHIV_WRIT_TOP.
INCLUDE IFTRFORM_TECH_ARCHIVE.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.
ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = p_deltst create_archive_file = p_wriprd object = gc_object comments = p_coment do_not_delete_data = ' ' output_sel_screen_when_dialog = space * OUTPUT_SEL_SCREEN_WHEN_BATCH = ' ' IMPORTING archive_handle = g_handle_archive EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 OTHERS = 5.
CALL FUNCTION 'TCOR_STATUS_READ_STATUS' EXPORTING iv_corr_objid = lwa_co_id-co_uuid IMPORTING ev_status = lv_status EXCEPTIONS co_not_found = 1 so_not_found = 2 status_not_found = 3 OTHERS = 4.
TCOR_GET_CO_DATA_BY_KEY CALL FUNCTION 'TCOR_GET_CO_DATA_BY_KEY' EXPORTING it_co_keyid = lt_co_keyid[] TABLES et_co_data = lt_co_data et_cosa_data = lt_cosa_data et_cosafl_data = lt_cosafl_data et_cosapo_data = lt_cosapo_data et_cosi_data = lt_cosi_data et_codmd_data = lt_codmd_data et_codco_data = lt_codco_data et_codcofo_data = lt_codcofo_data et_coddp_data = lt_coddp_data et_codfl_data = lt_codfl_data et_codia_data = lt_codia_data et_codoc_data = lt_codoc_data et_codpi_data = lt_codpi_data et_codrp_data = lt_codrp_data et_codul_data = lt_codul_data et_codul2_data = lt_codul2_data et_codul2fl_data = lt_codul2fl_data et_codulco_data = lt_codulco_data et_codulcofo_data = lt_codulcofo_data et_codulfl_data = lt_codulfl_data CHANGING ct_conotes_data = lt_conotes_data.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = g_handle_archive * object_id = g_var_objid EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = g_handle_archive record = lwa_co_data record_flags = ' ' record_structure = 'TCORT_CO' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = g_handle_archive record = lwa_cosa_data record_flags = ' ' record_structure = 'TCORT_COSA' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_COSAFL' TABLES table = lt_arch_cosafl * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_COSAPO' TABLES table = lt_arch_cosapo * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = g_handle_archive record = lwa_codmd_data record_flags = ' ' record_structure = 'TCORT_CODMD' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODCOFO' TABLES table = lt_arch_codcofo * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODCO' TABLES table = lt_arch_codco * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODDP' TABLES table = lt_arch_coddp * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODFL' TABLES table = lt_arch_codfl * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODIA' TABLES table = lt_arch_codia * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODPI' TABLES table = lt_arch_codpi * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODRP' TABLES table = lt_arch_codrp * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODULFL' TABLES table = lt_arch_codulfl * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = g_handle_archive record = lwa_codul2_data record_flags = ' ' record_structure = 'TCORT_CODUL2' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODUL2FL' TABLES table = lt_arch_codul2fl * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODULCOFO' TABLES table = lt_arch_codulcofo * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODULCO' TABLES table = lt_arch_codulco * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODUL' TABLES table = lt_arch_codul * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_COSI' TABLES table = lt_arch_cosi * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CODOC' TABLES table = lt_arch_codoc * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = g_handle_archive record_flags = ' ' record_structure = 'TCORT_CONOTES' TABLES table = lt_arch_conotes * RECORD_FLAGS_TABLE = ' ' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = g_handle_archive * IMPORTING * OBJECT_OFFSET = * ARCHIVE_NAME = EXCEPTIONS termination_requested = 1 .
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = 'TRTM_CO' i_text = lv_msg_text i_msgtype = lv_msg_typ i_msgid = 'FTR_GENERAL' i_msgno = lv_msg_no * * = * i_msgv1 = .
PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-005 i_processed = l_objects_processed i_total = l_total_of_objects * I_OUTPUT_IMMEDIATELY = IMPORTING e_progress_sent = l_progress_send.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = g_handle_archive.
ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = g_handle_archive
EXCEPTIONS INTERNAL_ERROR = 1 WRONG_ACCESS_TO_ARCHIVE = 2 OTHERS = 4.
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 RTCOR_CO_ARCHIVE_WRITE or its description.
RTCOR_CO_ARCHIVE_WRITE - TCO: Archive write CO data RTCOR_CO_ARCHIVE_WRITE - TCO: Archive write CO data RTCOR_CO_ARCHIVE_READ_TOP - For global data declarations RTCOR_CO_ARCHIVE_READ_SET_PF02 - Include RTCOR_CO_ARCHIVE_READ_SET_PF02 RTCOR_CO_ARCHIVE_READ_SET_PF01 - Include RTCOR_CO_ARCHIVE_READ_SET_PF01 RTCOR_CO_ARCHIVE_READ - Reading the Archived CO objects