SAP Reports / Programs | Waste Management | SAP Utilities | Waste Management(IS-U-WA) SAP IS

REWA_WPROC_ARCHIVE_DELETE SAP ABAP Report - Deleting Archived Weighing Transactions







REWA_WPROC_ARCHIVE_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 REWA_WPROC_ARCHIVE_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 REWA_WPROC_ARCHIVE_DELETE. "Basic submit
SUBMIT REWA_WPROC_ARCHIVE_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT REWA_WPROC_ARCHIVE_DELETE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_DELPRD = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Title: Deleting Archived Weighing Transactions
Text Symbol: 001 = &1 (&2 of &3) Weighing Transactions Processed
Text Symbol: 002 = Weihging Transactions Will Be Deleted


INCLUDES used within this REPORT REWA_WPROC_ARCHIVE_DELETE

INCLUDE IEEWA_WPROC_ARCH.
INCLUDE ARCH_DELETE_PRG_STANDARD2.


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_CUSTOMIZING_DATA call function 'ARCHIVE_GET_CUSTOMIZING_DATA' exporting OBJECT = CO_WPROC_ARCH_OBJ importing COMMIT_COUNT_FOR_DELETE_PRG = G_COMMIT_COUNT.

ARCHIVE_OPEN_FOR_DELETE call function 'ARCHIVE_OPEN_FOR_DELETE' exporting * ARCHIVE_NAME = ' ' OBJECT = CO_WPROC_ARCH_OBJ TEST_MODE = P_DELTST importing ARCHIVE_HANDLE = G_ARCHIVE_HANDLE exceptions OPEN_ERROR = 1.

ARCHIVE_GET_INFORMATION call function 'ARCHIVE_GET_INFORMATION' exporting ARCHIVE_HANDLE = G_ARCHIVE_HANDLE importing ARCHIVE_DOCUMENT = L_DOCUMENT ARCHIVE_NAME = L_ARCHIVE_KEY exceptions others = 1.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting I_TEXT = TEXT-002 I_OUTPUT_IMMEDIATELY = 'X'.

ARCHIVE_GET_NEXT_OBJECT call function 'ARCHIVE_GET_NEXT_OBJECT' exporting ARCHIVE_HANDLE = G_ARCHIVE_HANDLE exceptions END_OF_FILE = 1 WRONG_ACCESS_TO_ARCHIVE = 2.

ARCHIVE_DELETE_OBJECT_DATA call function 'ARCHIVE_DELETE_OBJECT_DATA' exporting ARCHIVE_HANDLE = G_ARCHIVE_HANDLE.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting I_TEXT = TEXT-001 I_PROCESSED = L_DOC_COUNT I_TOTAL = L_TOTAL_DOCS I_OUTPUT_IMMEDIATELY = SPACE.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting ARCHIVE_HANDLE = G_ARCHIVE_HANDLE STATISTICS_ONLY_PER_FILE = 'X'.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = G_ARCHIVE_HANDLE exceptions others = 1.

ARCHIVE_GET_NEXT_STRUCT_SPECIF call function 'ARCHIVE_GET_NEXT_STRUCT_SPECIF' exporting ARCHIVE_HANDLE = P_WA_HANDLE RECORD_STRUCTURE = P_STRUCTURE_NAME importing RECORD = P_OUTPUT exceptions END_OF_LEVEL = 1 others = 2.

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting ARCHIVE_HANDLE = P_WA_HANDLE RECORD_STRUCTURE = PP_STRUCTURE_NAME tables TABLE = PP_OUTPUT exceptions END_OF_OBJECT = 1 others = 2.

ARCHIVE_GIVE_STATISTICS call function 'ARCHIVE_GIVE_STATISTICS' exporting ARCHIVE_HANDLE = WA_HANDLE tables TABLE = L_STATS.

ENQUEUE_EEWA_WA_WEIGHPRO call function 'ENQUEUE_EEWA_WA_WEIGHPRO' exporting MODE_EWA_WA_WEIGHPROC = 'E' _SCOPE = '1' * _WAIT = ' ' * _COLLECT = ' ' exceptions FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 others = 3.

DEQUEUE_EEWA_WA_WEIGHPRO call function 'DEQUEUE_EEWA_WA_WEIGHPRO' exporting MODE_EWA_WA_WEIGHPROC = 'E' _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' .



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