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

W_PROMO_AD_ARCH_DELETE SAP ABAP Report - Archive Deletion Program for Archiving Object W_PROMO_AD







W_PROMO_AD_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_AD_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_AD_ARCH_DELETE. "Basic submit
SUBMIT W_PROMO_AD_ARCH_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT W_PROMO_AD_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_AD
Text Symbol: 125 = Number of Table Entries in WAEL (Delivery Phases):
Text Symbol: 126 = Number of Table Entries in wrf_rpr_wapl (Plnts):
Text Symbol: 127 = Number of Table Entries in wrf_rpr_wapg :
Text Symbol: 128 = Number of Table Entries in wrf_rpr_wapgt:
Text Symbol: 130 = SAP System:
Text Symbol: 131 = SAP Release:
Text Symbol: 132 = Data for Archive File:
Text Symbol: 133 = Duration:
Text Symbol: 141 = Deleted Table Entries in WAKH (Promotion Header)
Text Symbol: 142 = Deleted Table Entries in WAKT (Promotion Texts):
Text Symbol: 143 = Deleted Table Entries in WAKHIND (Promotion Conditions):
Text Symbol: 144 = Deleted Table Entries in WAKP (Promotion Items):
Text Symbol: 145 = Deleted Table Entries in WAGU (Plant Groups):
Text Symbol: 146 = Deleted Table Entries in WALE (Plant-Material Table):
Text Symbol: 147 = Deleted Table Entries in WAZB (Modules):
Text Symbol: 148 = Deleted Table Entries in WAZT (Promotion Themes):
Text Symbol: 149 = Deleted Table Entries in WAZW (Product Catalog):
Text Symbol: 150 = Deleted Table Entries in WAAL (Promotion Vendors):
Text Symbol: 151 = Deleted Table Entries in WAKC (Promotion Coupons):
Text Symbol: 152 = Deleted Table Entries in NAST (Message Status):
Text Symbol: 153 = Deleted Table Entries in WAKR (promotion discounts):
Text Symbol: 154 = Deleted Table Entries in WAKRW (Promotion Discounts by Plant):
Text Symbol: 155 = Deleted Table Entries in WAEL (Delivery Phases):
Text Symbol: 156 = Deleted Table Entries in wrf_rpr_wapl (Plants):
Text Symbol: 157 = Deleted Table Entries in wrf_rpr_wapg:
Text Symbol: 158 = Deleted Table Entries in wrf_rpr_wapgt:
Text Symbol: 159 = Deleted Bonus Buys:
Text Symbol: 200 = No Active Archive Key Was Selected
Text Symbol: 210 = Error When Opening the Archive File
Text Symbol: 124 = Number of Table Entries in WAKRW (Promotion Discounts by Plant):
Text Symbol: 001 = Parameters for Program Flow
Text Symbol: 002 = Test Run, Data Not Deleted
Text Symbol: 003 = Create Log
Text Symbol: 010 = Program Options:
Text Symbol: 011 = Delete:
Text Symbol: 012 = Details on Program Run:
Text Symbol: 013 = Archive Contents:





Text Symbol: 014 = Successful Database Deletions:
Text Symbol: 100 = Log for Archiving of Retail Promotions (Deletion Program)
Text Symbol: 101 = Start of Deletion Program:
Text Symbol: 102 = End of Deletion Program:
Text Symbol: 103 = Archive File:
Text Symbol: 104 = Created on:
Text Symbol: 106 = Test Run, No Deletion in the Database
Text Symbol: 107 = Program Run with Deletion in the Database
Text Symbol: 109 = End log for archiving promotions (deletion program)
Text Symbol: 110 = The Deletion Program Was Terminated
Text Symbol: 111 = Number of Table Entries in WAKH (Promotion Header):
Text Symbol: 112 = Number of Table Entries in WAKT (Promotion Texts):
Text Symbol: 113 = Number of Table Entries in WAKHIND (Promotion Conditions):
Text Symbol: 114 = Number of Table Entries in WAKP (Promotion Items):
Text Symbol: 115 = Number of Table Entries in WAGU (Plant Groups):
Text Symbol: 116 = Number of table entries in WALE (plant-material table):
Text Symbol: 117 = Number of Table Entries in WAZB (Modules):
Text Symbol: 118 = Number of Table Entries in WAZT (Promotion Themes):
Text Symbol: 119 = Number of Table Entries in WAZW (Product Catalog):
Text Symbol: 120 = Number of Table Entries in WAAL (Promotion Vendors):
Text Symbol: 121 = Number of Table Entries in WAKC (Promotion Coupons):
Text Symbol: 122 = Number of Table Entries in NAST (Message Status):
Text Symbol: 123 = Number of Table Entries in WAKR (Promotion Discounts):


INCLUDES used within this REPORT W_PROMO_AD_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.

RDM_BBY_DB_DELETE CALL FUNCTION 'RDM_BBY_DB_DELETE' EXPORTING i_bbynr = gt_konbbyh_key-bbynr * EXCEPTIONS * DB_HEADER_NOT_FOUND = 1 * OTHER_ERROR = 2 * OTHERS = 3 .



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_AD_ARCH_DELETE or its description.