RPT_TEVEN_WRITE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this program for the destruction of data using the archiving object
If you would like to execute this report or see the full code listing simply enter RPT_TEVEN_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: P_RUNDES = Description
Selection Text: PROTOCOL = D .
Selection Text: P_COMENT = D .
Selection Text: P_RUNID = D .
Selection Text: TESTRUN = D .
Title: Destroy: Write Program for Time Events (HRTIM_TEV)
Text Symbol: 000 = Selection Parameters
Text Symbol: 001 = Identification of Session
INCLUDE RP_PA_WRI_DATA.
INCLUDE HCMDP_PARC_RUNID .
INCLUDE HCMDP_ARCH_WRITE_PRG_STD.
INCLUDE RP_HCMDP_WRI_PROG_EVENTS.
No SAP DATABASE tables are accessed within this REPORT code!
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_arcobj comments = p_coment do_not_delete_data = lv_not_delete destroy = lv_destroy IMPORTING archive_handle = lv_handle EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 archiving_standard_violation = 5 OTHERS = 6.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING object_id = p_runid archive_handle = lv_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = lv_handle record_structure = 'TEVEN' record = ls_teven 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 = lv_handle record_structure = 'TEVEN_MORE' record = ls_teven_more 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 = lv_handle EXCEPTIONS file_io_error = 1 " Error Writing to Archive File internal_error = 2 " Internal Error open_error = 3 " Error When Opening the Archive File termination_requested = 4 " Termination of Archiving Was Requested wrong_access_to_archive = 5 " Incorrect Access to the Archive data_object_not_saved = 6."The Data Object was not Written to the Archive
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = lv_handle.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = lv_handle.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RPT_TEVEN_WRITE - Destroy: Write Program for Time Events (HRTIM_TEV) RPT_TEVEN_WRITE - Destroy: Write Program for Time Events (HRTIM_TEV) RPT_TEVEN_PRE - Destroy: Preprocessing Program for Time Events (HRTIM_TEV) RPT_TEVEN_PRE - Destroy: Preprocessing Program for Time Events (HRTIM_TEV) RPT_TEVEN_DELETE - Destroy: Delete Program for Time Events (HRTIM_TEV) RPT_TEVEN_DELETE - Destroy: Delete Program for Time Events (HRTIM_TEV)