SAP Reports / Programs | Plant Maintenance | Maintenance Processing | Maintenance Orders(PM-WOC-MO) SAP PM

RIARCORDS SAP ABAP Report - Archiving Orders: Deletion Program







RIARCORDS 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 RIARCORDS 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 RIARCORDS. "Basic submit
SUBMIT RIARCORDS AND RETURN. "Return to original report after report execution complete
SUBMIT RIARCORDS 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 Production Mode
Selection Text: P_DELTST = D Test Mode
Selection Text: P_NAME = Name of the Archive File
Selection Text: P_TEST = Test Run
Title: Archiving Orders: Deletion Program


INCLUDES used within this REPORT RIARCORDS

INCLUDE ARCH_DELETE_PRG_STANDARD1.
INCLUDE IARCOR_DFPS_CHECK_SYSTEM.
INCLUDE IARCOR_DFPS_FILTER.


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:

K_TOTAL_INIT CALL FUNCTION 'K_TOTAL_INIT'.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING * ARCHIVE_NAME = P_NAME OBJECT = AOBJ-PM_ORDER TEST_MODE = P_DELTST IMPORTING * ARCHIVE_HANDLE = ACTUAL_HANDLE. "1165749

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING OBJECT = AOBJ-PM_ORDER IMPORTING COMMIT_COUNT_FOR_DELETE_PRG = X_ARCH_COMIT MAINTAIN_INDEX = X_INDEX.

PM_ORDER_ARCHIVE_DELETE CALL FUNCTION 'PM_ORDER_ARCHIVE_DELETE' EXPORTING ARCHIVE_HANDLE = ACTUAL_HANDLE ARCH_COMIT = X_ARCH_COMIT P_TEST = P_DELTST EXCEPTIONS OTHERS = 1.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = ACTUAL_HANDLE.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = ACTUAL_HANDLE EXCEPTIONS INTERNAL_ERROR = 4 WRONG_ACCESS_TO_ARCHIVE = 8.



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