RWARC012 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report physically deletes all archived data 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 RWARC012 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.
Selection Text: PA_TEST = Deletion run in test mode
Title: Archiving: Deleting Assortment Modules
Text Symbol: 026 = Option
Text Symbol: 025 = Program RWARCH02 starts at:
Text Symbol: 024 = AG
Text Symbol: 023 = GM
Text Symbol: 022 = Generic material
Text Symbol: 021 = Module type
Text Symbol: 020 = Promotion
Text Symbol: 018 = Sales unit
Text Symbol: 017 = Material group
Text Symbol: 016 = Created
Text Symbol: 015 = ColPos
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-plant:
Text Symbol: 001 = Archiving of listing conditions and modules: deletion program
Text Symbol: %FS = Selection criteria
INCLUDE RWA12TOP.
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.
RWARC012 - Archiving: Deleting Assortment Modules RWARC012 - Archiving: Deleting Assortment Modules RWARC011 - Archiving Assortment Modules RWARC011 - Archiving Assortment Modules RWARC010 - Set Indicator to Delete Assortment Modules (Prior to Archiving) RWARC010 - Set Indicator to Delete Assortment Modules (Prior to Archiving)