ADDI_ARCHIVE_DELETE 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 ADDI_ARCHIVE_DELETE 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.
Title: Deleting archived additionals
Text Symbol: 028 = SAP release:
Text Symbol: 027 = SAP system:
Text Symbol: 026 = Created on
Text Symbol: 025 = Archive file
Text Symbol: 024 = Data for archive file:
Text Symbol: 023 = End log for deletion program
Text Symbol: 022 = Table entries deleted in WTADABT (additionals document texts)
Text Symbol: 021 = Table entries deleted in WTADAB (additionals documents)
Text Symbol: 020 = Successful DB deletions:
Text Symbol: 019 = Number of table entries in WTADABT (additionals document texts)
Text Symbol: 018 = Number of table entries in WTADAB (additionals documents)
Text Symbol: 017 = Archive contents:
Text Symbol: 016 = Durat:
Text Symbol: 015 = End of deletion program:
Text Symbol: 014 = Spec. for program run
Text Symbol: 013 = Deletion program had to be terminated
Text Symbol: 012 = Error opening the archive file
Text Symbol: 011 = No active archive key was selected
Text Symbol: 010 = ********************************************************************************************
Text Symbol: 009 = Start deletion program:
Text Symbol: 008 = Program run with deletion in the database
Text Symbol: 007 = Test run, no deletion in the database
Text Symbol: 006 = Delete:
Text Symbol: 005 = Program options
Text Symbol: 004 = Log for archiving (deletion program)
Text Symbol: 003 = Create log
Text Symbol: 002 = Test run, data not deleted
Text Symbol: 001 = Parameters for program flow
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = arch_handle EXCEPTIONS end_of_file = 01.
ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = arch_handle IMPORTING record = record * record_flags = dflag record_structure = rstruct EXCEPTIONS end_of_object = 01 OTHERS = 02.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = pi_handle.
ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = pi_handle.
ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = pi_handle IMPORTING archive_creation_date = date archive_creation_release = release archive_creation_system = system archive_name = name object = object EXCEPTIONS internal_error = 01 wrong_access_to_archive = 02.
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = pi_handle EXCEPTIONS end_of_file = 01 open_error = 02.
ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = pi_handle IMPORTING record = pe_record record_flags = pe_flag record_structure = pe_structure EXCEPTIONS end_of_object = 01 internal_error = 02 wrong_access_to_archive = 03.
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = 'WTADDI' test_mode = pi_test IMPORTING archive_handle = pe_handle EXCEPTIONS file_io_error = 01 object_not_found = 02 open_error = 03 no_files_available = 04 OTHERS = 05.
ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING * archive_document = pi_document object = 'W_KALK' IMPORTING archive_handle = pe_handle EXCEPTIONS file_io_error = 01 object_not_found = 02 open_error = 03 no_files_available = 04 OTHERS = 05.
ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = arch_handle TABLES table = t_statistic.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = pe_handle statistics_only_per_file = 'X'.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
ADDI_ARCHIVE_DELETE - Deleting archived additionals ADDI_ARCHIVE_DELETE - Deleting archived additionals ADDI_ARCHIVE - Archiving additionals ADDI_ARCHIVE - Archiving additionals ADDI_APPL_LOG_IDOC_PARAMS - Program ADDI_APPL_LOG_IDOC_PARAMS ADDI_APPL_LOG_IDOC_PARAMS - Program ADDI_APPL_LOG_IDOC_PARAMS