PFO_ARCHIVE_WRITE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program is for archiving business objects, assignment objects and segments in portfolio assignment (PFO)...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 PFO_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.
Write Program for Data Archiving of BusObjs, AssObjs and Segments
Selection Text: PD_KIND = D .
Selection Text: PD_TYPE = D .
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Title: Write Program for PFO Archiving of BusObjs, AssObjs and Segments
Text Symbol: 001 = PFO object archived
Text Symbol: 002 = &1% (&2 of &3) of objects archived
Text Symbol: 003 = Obj. Kind:
Text Symbol: 004 = Obj. Type:
Text Symbol: 103 = PFO Archiving
Text Symbol: 104 = Determine Kind and Type
No INCLUDES are used within this REPORT code!
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 = gd_delete_testmode comments = p_coment create_archive_file = gd_files_create object = gd_arch_obj output_sel_screen_when_dialog = '' IMPORTING archive_handle = gd_handle.
ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot i_protocol_output = p_prot_o.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = gd_handle.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = gd_handle record_structure = gs_objectdata-ddic_tab TABLES table =
.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = gd_handle record_structure = gd_xzo_tab TABLES table =
.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = gd_handle EXCEPTIONS termination_requested = 1.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gd_object_identifier i_text = 'BZO-Objekt archiviert'(001) i_msgtype = 1.
PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = '&1% (&2 von &3) der Objekte archiviert'(002) i_processed = gd_objects_processed i_total = gd_total_object_number IMPORTING e_progress_sent = gd_progress_send.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = '&1% (&2 von &3) der Objekte archiviert'(002) i_processed = gd_objects_processed i_total = gd_total_object_number i_output_immediately = 'X'.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = gd_handle.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = gd_handle.
ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.
ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
PFO_ARCHIVE_WRITE - Write Program for PFO Archiving of BusObjs, AssObjs and Segments PFO_ARCHIVE_WRITE - Write Program for PFO Archiving of BusObjs, AssObjs and Segments PFO_ARCHIVE_DELETE - PFO Archiving: Deletion Program for BusObjs, AssignObjs and Segments PFO_ARCHIVE_DELETE - PFO Archiving: Deletion Program for BusObjs, AssignObjs and Segments PFO_ARCHIVE_ADMIN - Deletion of Archiving Locks PFO_ARCHIVE_ADMIN - Deletion of Archiving Locks