SAP Reports / Programs | Logistics - General | Logistics Basic Data | Promotion(LO-MD-PR) SAP LO

W_PROMO_ARCH_DELETE SAP ABAP Report - Archive deletion program for archiving object W_PROMO







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


ABAP code to call this SAP report using the submit statement

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.






SUBMIT W_PROMO_ARCH_DELETE. "Basic submit
SUBMIT W_PROMO_ARCH_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT W_PROMO_ARCH_DELETE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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):





Text Symbol: 121 = Number of table entries in WAKC (promotion coupons):
Text Symbol: 120 = Number of table entries in WAAL (promotion vendors):
Text Symbol: 210 = Error when opening the archive file
Text Symbol: 200 = No active archive key was selected
Text Symbol: 154 = Deleted table entries in WAKRW (promotion discounts by plant):
Text Symbol: 153 = Deleted table entries in WAKR (promotion discounts):
Text Symbol: 152 = Deleted table entries in NAST (message status):
Text Symbol: 151 = Deleted table entries in WAKC (promotion coupons):
Text Symbol: 150 = Deleted table entries in WAAL (promotion vendors):
Text Symbol: 149 = Deleted table entries in WAZW (product catalog):
Text Symbol: 148 = Deleted table entries in WAZT (promotion themes):
Text Symbol: 147 = Deleted table entries in WAZB (modules):
Text Symbol: 146 = Deleted table entries in WALE (plant-material table):
Text Symbol: 145 = Deleted table entries in WAGU (plant groups):


INCLUDES used within this REPORT W_PROMO_ARCH_DELETE

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

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.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name W_PROMO_ARCH_DELETE or its description.