SAP Reports / Programs | Personnel Time Management(PT) SAP PT

RPT_TEVEN_WRITE SAP ABAP Report - Destroy: Write Program for Time Events (HRTIM_TEV)







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 HR: Time Events (HRTIM_TEV)...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 RPT_TEVEN_WRITE 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 RPT_TEVEN_WRITE. "Basic submit
SUBMIT RPT_TEVEN_WRITE AND RETURN. "Return to original report after report execution complete
SUBMIT RPT_TEVEN_WRITE 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_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


INCLUDES used within this REPORT RPT_TEVEN_WRITE

INCLUDE RP_PA_WRI_DATA.
INCLUDE HCMDP_PARC_RUNID .
INCLUDE HCMDP_ARCH_WRITE_PRG_STD.
INCLUDE RP_HCMDP_WRI_PROG_EVENTS.


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_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.



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