RCPREO03 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This is an example program used to display the usage of the function module for reading existing archives...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 RCPREO03 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: ARCHIVE = Archive key
Title: Example Program For Reading Archives
Text Symbol: 001 = No file opened
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING ARCHIVE_NAME = ARCHIVE OBJECT = 'TASKLIST' TEST_MODE = ' ' IMPORTING ARCHIVE_HANDLE = HANDLE EXCEPTIONS FILE_ALREADY_OPEN = 01 FILE_IO_ERROR = 02 INTERNAL_ERROR = 03 NO_FILES_AVAILABLE = 04 OBJECT_NOT_FOUND = 05 OPEN_ERROR = 06.
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE EXCEPTIONS END_OF_FILE = 01 INTERNAL_ERROR = 02 OPEN_ERROR = 03 WRONG_ACCESS_TO_ARCHIVE = 04.
READ_TEXT * CALL FUNCTION 'READ_TEXT' * EXPORTING * CLIENT = SY-MANDT * ID = * LANGUAGE = * NAME = * OBJECT = * ARCHIVE_HANDLE = handle * IMPORTING * HEADER = * TABLES * LINES = * EXCEPTIONS * ID = 01 * LANGUAGE = 02 * NAME = 03 * NOT_FOUND = 04 * OBJECT = 05 * REFERENCE_CHECK = 06 * WRONG_ACCESS_TO_ARCHIVE = 07.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = HANDLE.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RCPREO03 - Example Program For Reading Archives RCPREO03 - Example Program For Reading Archives RCPREFHM - Physical Deletion of Deleted PRT Assignments RCPREFHM - Physical Deletion of Deleted PRT Assignments RCPREF05 - documentation and ABAP source code RCPREF03 - General Include for Deletion with and without Archiving