W_PROMO_ARCH_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 W_PROMO_ARCH_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: Archive deletion program for archiving object W_PROMO
Text Symbol: 103 = Archive file:
Text Symbol: 102 = End of deletion program:
Text Symbol: 101 = Start deletion program:
Text Symbol: 100 = Log for archiving of retail promotions (deletion program)
Text Symbol: 014 = Successful database deletions:
Text Symbol: 013 = Archive contents:
Text Symbol: 012 = Details on program run:
Text Symbol: 011 = Delete:
Text Symbol: 010 = Program options:
Text Symbol: 003 = Create log
Text Symbol: 002 = Test run, data not deleted
Text Symbol: 001 = Parameters for program flow
Text Symbol: 119 = Number of table entries in WAZW (product catalog):
Text Symbol: 118 = Number of table entries in WAZT (promotion themes):
Text Symbol: 117 = Number of table entries in WAZB (modules):
Text Symbol: 116 = Number of table entries in WALE (plant-material table):
Text Symbol: 115 = Number of table entries in WAGU (plant groups):
Text Symbol: 114 = Number of table entries in WAKP (promotion items):
Text Symbol: 113 = Number of table entries in WAKHIND (promotion conditions):
Text Symbol: 112 = Number of table entries in WAKT (promotion texts):
Text Symbol: 111 = Number of table entries in WAKH (promotion header):
Text Symbol: 110 = The deletion program was terminated
Text Symbol: 109 = End log for archiving promotions (deletion program)
Text Symbol: 107 = Program run with deletion in the database
Text Symbol: 106 = Test run, no deletion in the database
Text Symbol: 104 = Created on:
Text Symbol: 144 = Deleted table entries in WAKP (promotion items):
Text Symbol: 143 = Deleted table entries in WAKHIND (promotion conditions):
Text Symbol: 142 = Deleted table entries in WAKT (promotion texts):
Text Symbol: 141 = Deleted table entries in WAKH (promotion header)
Text Symbol: 133 = Duration:
Text Symbol: 132 = Data for archive file:
Text Symbol: 131 = SAP release:
Text Symbol: 130 = SAP system:
Text Symbol: 124 = Number of table entries in WAKRW (promotion discounts by plant):
Text Symbol: 123 = Number of table entries in WAKR (promotion discounts):
Text Symbol: 122 = Number of table entries in NAST (message status):
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_REF = RECORD_REF " Unicode * record_flags = ' ' RECORD_STRUCTURE = RSTRUCT EXCEPTIONS END_OF_OBJECT = 01 OTHERS = 02.
ARCHIVE_DELETE_OBJECT_DATA call function 'ARCHIVE_DELETE_OBJECT_DATA' exporting archive_handle = arch_handle.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = ARCH_HANDLE.
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING * ARCHIVE_NAME = ' ' OBJECT = C_ARCH_OBJECT TEST_MODE = P_TESTRUN * AINDFLAG = 'X' IMPORTING ARCHIVE_HANDLE = P_ARCH_HANDLE * TABLES * SELECTED_FILES = EXCEPTIONS FILE_ALREADY_OPEN = 1 FILE_IO_ERROR = 2 INTERNAL_ERROR = 3 NO_FILES_AVAILABLE = 4 OBJECT_NOT_FOUND = 5 OPEN_ERROR = 6 NOT_AUTHORIZED = 7 OTHERS = 8.
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING OBJECT = C_ARCH_OBJECT IMPORTING COMMIT_COUNT_FOR_DELETE_PRG = P_COMMCNT.
ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING ARCHIVE_HANDLE = P_ARCH_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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
W_PROMO_ARCH_DELETE - Archive deletion program for archiving object W_PROMO W_PROMO_ARCH_DELETE - Archive deletion program for archiving object W_PROMO W_PROMO_AD_ARCH_WRITE - Archive Write Program for Archiving Object W_PROMO_AD W_PROMO_AD_ARCH_WRITE - Archive Write Program for Archiving Object W_PROMO_AD W_PROMO_AD_ARCH_READ - Archive Read Program for Archiving Object W_PROMO_AD W_PROMO_AD_ARCH_READ - Archive Read Program for Archiving Object W_PROMO_AD