SAP Reports / Programs

PSARCHD1 SAP ABAP Report - PS: Project System Archiving / Delete Database from Archive







PSARCHD1 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 PSARCHD1 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 PSARCHD1. "Basic submit
SUBMIT PSARCHD1 AND RETURN. "Return to original report after report execution complete
SUBMIT PSARCHD1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: PS: Project System Archiving / Delete Database from Archive
Text Symbol: P99 = & program execution was canceled
Text Symbol: P98 = & program execution was successfully completed
Text Symbol: P97 = & could only be executed partially
Text Symbol: P13 = No release by SAP. Only pilot customers !
Text Symbol: P09 = Cannot open archive
Text Symbol: P08 = Version &
Text Symbol: P07 = Network &
Text Symbol: P06 = Project &
Text Symbol: P05 = No authorization S ARCHIVE PS PS PROJECT: Report cannot be executed
Text Symbol: P02 = No objects were selected
Text Symbol: P00 = Selected projects, networks and versions
Text Symbol: 105 = Test run :
Text Symbol: 001 = Delete project $1 from database


INCLUDES used within this REPORT PSARCHD1

INCLUDE RCARCCON.
INCLUDE PSARCCON.
INCLUDE RCARCFPS.
INCLUDE PSARCF04.


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:

K_TOTAL_INIT CALL FUNCTION 'K_TOTAL_INIT' EXPORTING i_obj_delete_flag = 'X'.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = con_archive_object test_mode = testmode IMPORTING archive_handle = arch_handle EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = con_archive_object IMPORTING commit_count_for_delete_prg = commit_count_for_delete.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = arch_handle IMPORTING archive_creation_date = archive_date archive_document = archive_run.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = arch_handle IMPORTING object_id = psarc_id object_offset = archive_offset EXCEPTIONS end_of_file = 1 OTHERS = 2.

ARCHIVE_ROLLBACK_WORK CALL FUNCTION 'ARCHIVE_ROLLBACK_WORK' EXCEPTIONS OTHERS = 1.

PS_PROJECT_READ_ARCHIVE_OBJECT CALL FUNCTION 'PS_PROJECT_READ_ARCHIVE_OBJECT' EXPORTING archive_handle = arch_handle TABLES t_proj_arc = loc_proj_arc.

ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = arch_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.

ARCHIVE_ROLLBACK_WORK CALL FUNCTION 'ARCHIVE_ROLLBACK_WORK' EXCEPTIONS OTHERS = 1.

PS_PROJECT_WRITE_HISTORY CALL FUNCTION 'PS_PROJECT_WRITE_HISTORY' EXPORTING archive_date = archive_date archive_run = archive_run dataobject_id = psarc_id.

PS_ORDER_WRITE_HISTORY CALL FUNCTION 'PS_ORDER_WRITE_HISTORY' EXPORTING archive_date = archive_date archive_run = archive_run dataobject_id = psarc_id.

ARCHIVE_ADMIN_SAVE_INDEX CALL FUNCTION 'ARCHIVE_ADMIN_SAVE_INDEX' EXPORTING object = con_archive_object object_id = object_id archivekey = archive_file object_offset = archive_offset EXCEPTIONS OTHERS = 1.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = arch_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 PSARCHD1 or its description.