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

REWA_WPROC_ARCHIVE SAP ABAP Report - Archived Weighing Transactions Report







REWA_WPROC_ARCHIVE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving object ISU_WPROC used to archive weighing transactions...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 REWA_WPROC_ARCHIVE 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. "Basic submit
SUBMIT REWA_WPROC_ARCHIVE AND RETURN. "Return to original report after report execution complete
SUBMIT REWA_WPROC_ARCHIVE 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_AR_ILM = D .
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_DEST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_SNAP = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Selection Text: S_DATUM = D .
Selection Text: S_WNR = D .
Title: Archived Weighing Transactions Report
Text Symbol: 001 = Weighing Transaction
Text Symbol: 002 = &1 Weighing Transaction(s) Archived


INCLUDES used within this REPORT REWA_WPROC_ARCHIVE

INCLUDE IEEWA_WPROC_ARCH.
INCLUDE ARCH_WRITE_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_PROTOCOL_LINE_DETAIL call function 'ARCHIVE_PROTOCOL_LINE_DETAIL'.

ISU_DETERMINE_ARCHIVE_DATES call function 'ISU_DETERMINE_ARCHIVE_DATES' exporting X_ARCHIVE_OBJ = CO_WPROC_ARCH_OBJ importing Y_ARCHIVE_DATES = LV_ARCHIVE_DATES exceptions NOT_FOUND = 1 others = 2.

ARCHIVE_OPEN_FOR_WRITE call function 'ARCHIVE_OPEN_FOR_WRITE' exporting CALL_DELETE_JOB_IN_TEST_MODE = P_DELTST OBJECT = CO_WPROC_ARCH_OBJ CREATE_ARCHIVE_FILE = P_WRIPRD COMMENTS = P_COMENT OUTPUT_SEL_SCREEN_WHEN_DIALOG = CO_TRUE OUTPUT_SEL_SCREEN_WHEN_BATCH = CO_TRUE DO_NOT_DELETE_DATA = L_NOT_DELETE DESTROY = L_DESTROY importing ARCHIVE_HANDLE = G_ARCHIVE_HANDLE exceptions others = 1.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting ARCHIVE_HANDLE = G_ARCHIVE_HANDLE.

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

ARCHIVE_REGISTER_CLASS call function 'ARCHIVE_REGISTER_CLASS' exporting ARCHIVE_CLASS = 'STATUS' ARCHIVE_HANDLE = G_ARCHIVE_HANDLE exceptions CLASS_NOT_FOUND = 1 INTERNAL_ERROR = 2 WRONG_ACCESS_TO_ARCHIVE = 3 FILE_IO_ERROR = 4 others = 5.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting I_TEXT = TEXT-002 I_TOTAL = LI_NUM_ENTRIES_PROCESSED I_OUTPUT_IMMEDIATELY = SPACE.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting ARCHIVE_HANDLE = G_ARCHIVE_HANDLE OBJECT_ID = LC_ARCHIVE_INDEX exceptions others = 1.

STATUS_ARCHIVE_OBJECT call function 'STATUS_ARCHIVE_OBJECT' exporting ARCHIVE_HANDLE = G_ARCHIVE_HANDLE OBJECT_DELETE_FLAG = 'X' I_OBJNR = L_EWA_WPROC-OBJNR exceptions WRONG_ACCESS_TO_ARCHIVE = 1 others = 2.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting ARCHIVE_HANDLE = G_ARCHIVE_HANDLE exceptions TERMINATION_REQUESTED = 1 DATA_OBJECT_NOT_SAVED = 2 others = 3.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting ARCHIVE_HANDLE = P_HANDLE RECORD = P_WPROC_DOCS->EWA_WPROC RECORD_STRUCTURE = CO_WPROC * RECORD_STRUCTURE = P_WPROC_DOCS->EWA_WPROC exceptions others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting ARCHIVE_HANDLE = PX_HANDLE RECORD_STRUCTURE = PX_STRUCTURE_NAME tables TABLE = PX_WPROC_INPUT exceptions INTERNAL_ERROR = 1 WRONG_ACCESS_TO_ARCHIVE = 2 INVALID_RECORD_STRUCTURE = 3 others = 4.

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