RWARCH02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report program deletes all archived data physically from the database...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 RWARCH02 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
WSR2 - Deletion assortment and listing
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.
Selection Text: PA_TEST = Deletion run in test mode
Title: Delete assortment objects
Text Symbol: 072 = Delete Prog.
Text Symbol: 071 = Archiving of Listing Conditions and Modules:
Text Symbol: 064 = Result
Text Symbol: 063 = error
Text Symbol: 062 = Information
Text Symbol: 061 = Archiving of Listing Conditions and Modules
Text Symbol: 026 = Option
Text Symbol: 025 = Program RWARCH02 starts at:
Text Symbol: 024 = AG
Text Symbol: 023 = IG
Text Symbol: 022 = Generic material
Text Symbol: 021 = MT
Text Symbol: 020 = Promotion
Text Symbol: 018 = Sales unit
Text Symbol: 017 = Material group
Text Symbol: 016 = Created
Text Symbol: 015 = A
Text Symbol: 014 = Module name
Text Symbol: 013 = Assortment
Text Symbol: 012 = To
Text Symbol: 011 = From
Text Symbol: 010 = Material
Text Symbol: 009 = Module
Text Symbol: 008 = Deleted module names:
Text Symbol: 007 = Deleted module item records:
Text Symbol: 006 = Deleted module header records:
Text Symbol: 005 = Deleted listing conditions:
Text Symbol: 004 = Deleted Assignments: Module to Assortment:
Text Symbol: 001 = Archiving of listing conditions and modules: deletion program
INCLUDE RWARCHTP.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = con_wlk_arch IMPORTING commit_count_for_delete_prg = gd_max_del.
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = con_wlk_arch test_mode = pa_test IMPORTING archive_handle = handle_lk EXCEPTIONS no_files_available = 01.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle_lk.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.