SAP Reports / Programs

PSARCHDN SAP ABAP Report - Report PSARCHDN







PSARCHDN 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 PSARCHDN 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 PSARCHDN. "Basic submit
SUBMIT PSARCHDN AND RETURN. "Return to original report after report execution complete
SUBMIT PSARCHDN 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_PROT_O = Log Output
Selection Text: P_PROT = Detail Log
Selection Text: P_DELTST = Test Mode
Selection Text: P_DELPRD = Production Mode
Title: Report PSARCHDN
Text Symbol: T04 =
Text Symbol: T05 = No authorization S ARCHIVE PS PS PROJECT: Report cannot be executed
Text Symbol: T06 = Project
Text Symbol: T07 = Network
Text Symbol: T08 = Version
Text Symbol: T09 = Cannot open archive
Text Symbol: T10 =
Text Symbol: T11 =
Text Symbol: T12 =
Text Symbol: T13 = No release by SAP. Only pilot customers !
Text Symbol: T14 =
Text Symbol: T15 = Project was successfully deleted from Archive
Text Symbol: T16 = Network was successfully deleted from Archive
Text Symbol: T17 = Version was successfully deleted from Archive
Text Symbol: T18 = Object was successfully deleted from Archive.
Text Symbol: T19 = Archive Deletion could not be executed successfully
Text Symbol: T20 = Project could not be deleted from Archive
Text Symbol: T21 = Network could not be deleted from Archive
Text Symbol: T22 = Version could not be deleted from Archive
Text Symbol: T23 = Object could not be deleted from Archive.
Text Symbol: T96 =
Text Symbol: T97 = could only be executed partially
Text Symbol: T98 = program execution was successfully completed
Text Symbol: T99 = program execution was canceled
Text Symbol: T03 =
Text Symbol: 001 = Delete project $1 from database
Text Symbol: 005 = &1% of data objects processed (&2 of &3)
Text Symbol: 105 = Test run :
Text Symbol: P00 = Selected projects, networks and versions
Text Symbol: P01 =
Text Symbol: P02 = No objects were selected
Text Symbol: P03 =
Text Symbol: P04 =





Text Symbol: P05 = No authorization S ARCHIVE PS PS PROJECT: Report cannot be executed
Text Symbol: P06 = Project &
Text Symbol: P07 = Network &
Text Symbol: P08 = Version &
Text Symbol: P09 = Cannot open archive
Text Symbol: P10 =
Text Symbol: P11 =
Text Symbol: P12 =
Text Symbol: P13 = No release by SAP. Only pilot customers !
Text Symbol: P14 =
Text Symbol: P15 =
Text Symbol: P16 =
Text Symbol: P17 =
Text Symbol: P19 =
Text Symbol: P96 =
Text Symbol: P97 = & could only be executed partially
Text Symbol: P98 = & program execution was successfully completed
Text Symbol: P99 = & program execution was canceled
Text Symbol: T00 = Selected projects, networks and versions
Text Symbol: T01 =
Text Symbol: T02 = No objects were selected


INCLUDES used within this REPORT PSARCHDN

INCLUDE ARCH_DELETE_PRG_STANDARD2.
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_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = con_archive_object test_mode = P_DELTST IMPORTING archive_handle = arch_handle TABLES selected_files = lt_files EXCEPTIONS OTHERS = 1.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_MSGTYPE = '02' I_TEXT = TEXT-P09.

ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

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.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = psarc_id I_MSGTYPE = '02' I_TEXT = TEXT-T19.

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.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = psarc_id I_MSGTYPE = '02' I_TEXT = TEXT-T19.

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_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = loc_proj_arc-pspid_ext I_MSGTYPE = '02' I_TEXT = TEXT-T20.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = psarc_id-objid I_MSGTYPE = '02' I_TEXT = TEXT-T21.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = psarc_id-objid I_MSGTYPE = '02' I_TEXT = TEXT-T22.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = psarc_id-objid I_MSGTYPE = '02' I_TEXT = TEXT-T23.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = psarc_id-objid I_MSGTYPE = '02' I_TEXT = TEXT-T19.

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_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = loc_proj_arc-pspid_ext I_MSGTYPE = '01' I_TEXT = TEXT-T15.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = psarc_id-objid I_MSGTYPE = '01' I_TEXT = TEXT-T16.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = psarc_id-objid I_MSGTYPE = '01' I_TEXT = TEXT-T17.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING I_OBJECT = psarc_id-objid I_MSGTYPE = '01' I_TEXT = TEXT-T18.




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_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = arch_handle.

ARCHIVE_ROLLBACK_WORK CALL FUNCTION 'ARCHIVE_ROLLBACK_WORK' EXCEPTIONS OTHERS = 1.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = arch_handle.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-005 * &1% of data objects processed (&2 of &3) i_processed = iv_cnt_pro i_total = iv_cnt_tot i_output_immediately = iv_immediate IMPORTING e_progress_sent = lv_sent.

DB_COMMIT * CALL FUNCTION 'DB_COMMIT'. "force immediate output of message



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