SAP Reports / Programs

RM07IARC SAP ABAP Report - Archive Phys. Inv. Documents for Inventory Mgmt







RM07IARC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving material documents This program is used to archive the material documents in Inventory Management...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 RM07IARC 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 RM07IARC. "Basic submit
SUBMIT RM07IARC AND RETURN. "Return to original report after report execution complete
SUBMIT RM07IARC 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 Phys. Inv. Documents for Inventory Mgmt
Text Symbol: 001 = Test Run
Text Symbol: 003 = Archive file;; created on: ;;
Text Symbol: 004 = Following documents were archived:
Text Symbol: 005 = Following documents would be archived:
Text Symbol: 006 = Phys. Inv. Doc. No.
Text Symbol: 007 = Plnt
Text Symbol: 008 = Fiscal Year
Text Symbol: 009 = Test Run
Text Symbol: 010 = Log for Archived Tables
Text Symbol: 011 = Delete Archived Data
Text Symbol: 012 = Number of Resident Months


INCLUDES used within this REPORT RM07IARC

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_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING CALL_DELETE_JOB_IN_TEST_MODE = LOESCH CREATE_ARCHIVE_FILE = ARCHIVE_FILE OBJECT = OBJECT comments = pa_text "n859420 IMPORTING ARCHIVE_HANDLE = HANDLE EXCEPTIONS INTERNAL_ERROR = 01 OBJECT_NOT_FOUND = 02 OPEN_ERROR = 03.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING ARCHIVE_HANDLE = HANDLE RECORD = A_RECORD RECORD_FLAGS = ' ' RECORD_STRUCTURE = A_STRUCTURE EXCEPTIONS INTERNAL_ERROR = 01 WRONG_ACCESS_TO_ARCHIVE = 02 INVALID_RECORD_STRUCTURE = 03.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE EXCEPTIONS INTERNAL_ERROR = 01 WRONG_ACCESS_TO_ARCHIVE = 02.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE EXCEPTIONS FILE_IO_ERROR = 01 INTERNAL_ERROR = 02 OPEN_ERROR = 03 TERMINATION_REQUESTED = 04 WRONG_ACCESS_TO_ARCHIVE = 05.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = HANDLE EXCEPTIONS INTERNAL_ERROR = 01 WRONG_ACCESS_TO_ARCHIVE = 02.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = HANDLE EXCEPTIONS INTERNAL_ERROR = 01.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING ARCHIVE_HANDLE = 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.

CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE OBJECTCLASS = OBJECT_CD OBJECTID = OBJECTID_CHAR EXCEPTIONS WRONG_ACCESS_TO_ARCHIVE = 1 OTHERS = 2.



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