RM07IAAU is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report reads the physical inventory document archives and displays all documents satisfying the selection criteria entered...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 RM07IAAU into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
MI9A - Analyze archived phy. inv. docs
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: WERKS = Plant
Selection Text: IBLNR = Physical Inventory Document
Selection Text: GJAHR = Fiscal Year
Selection Text: BUDAT = Posting Date
Selection Text: ARCHIVE = Archives
Title: Report for Phys. Inv. Doc. Archiving
Text Symbol: 035 = Book Qty.......
Text Symbol: 036 = Difference Qty
Text Symbol: 037 = Diff. Amount....
Text Symbol: 043 = Itm Material Mat. short text Batch MvT UnI Del
Text Symbol: 044 = --- ------------------ ----------------------------- ---------- --- --- ---
Text Symbol: 045 = Item.........
Text Symbol: 046 = Position
Text Symbol: 047 = Sales Order....
Text Symbol: 080 = No authorization for the plant
Text Symbol: 082 = Non-selected items
Text Symbol: 083 = Phys.inv.doc. Plnt Reas.
Text Symbol: 084 = No text available
Text Symbol: 085 = (deleted)
Text Symbol: 100 = No changes exist
Text Symbol: 102 = Deleted
Text Symbol: 103 = New entry
Text Symbol: 104 = Field no longer defined in table
Text Symbol: 105 = Unable to display change
Text Symbol: 106 = PI Doc. Header
Text Symbol: 107 = Line Number
Text Symbol: 110 = Old:
Text Symbol: 111 = New:
Text Symbol: 112 = Inv. doc. FYear Change number Date Time Changed by Tcode
Text Symbol: A00 = Selection Parameter
Text Symbol: A01 = Archives do not match selection.
Text Symbol: A02 = Do you still want to display them?
Text Symbol: M01 = a phys. inv. document
Text Symbol: M02 = on a valid line
Text Symbol: 001 = Phys.inv.doc. FY TETy Plnt SLoc Cnt status PostingStatus
Text Symbol: 002 = ------------- ----- ---- ---- ---- ------------------ -------------------------
Text Symbol: 003 = Not counted
Text Symbol: 004 = Partly counted
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' "note 512600 EXPORTING archive_handle = HANDLE IMPORTING * ARCHIVE_CREATION_DATE = ARCHIVE_CREATION_RELEASE = ARC_RELEASE * ARCHIVE_CREATION_SYSTEM = * ARCHIVE_DOCUMENT = * ARCHIVE_NAME = * OBJECT = * ARCHIVE_CODE_PAGE = * ARCHIVE_NUMBER_FORMAT = * ADK_VERSION = * TABLES * USED_CLASSES = EXCEPTIONS INTERNAL_ERROR = 1 WRONG_ACCESS_TO_ARCHIVE = 2 OTHERS = 3.
MB_DISPLAY_INVENTORY_HISTORY CALL FUNCTION 'MB_DISPLAY_INVENTORY_HISTORY' EXPORTING F_TM07I = TM07I F_IKPF = XIKPF DIFMG = DISEG-DIFMG ZEILI = DISEG-ZEILI B_ZEILE = SPACE F_FUSS = SPACE F_FCAUSI = SPACE SOTXT = DISEG-SOTXT LGOBE = DISEG-LGOBE NAME1 = DISEG-NAME1 TABLES YISEG = DISEG YDM07I = YDM07I FUSS = DUMMY.
CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING ARCHIVE_NAME = ARCHIVE "comes from RM07MARC OBJECT = OBJECT 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 FILE_IO_ERROR = 02 INTERNAL_ERROR = 03 OPEN_ERROR = 04 WRONG_ACCESS_TO_ARCHIVE = 05.
ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING ARCHIVE_HANDLE = HANDLE IMPORTING RECORD_REF = I_DREF_BUFFER RECORD_FLAGS = BUFFER-FLAGS RECORD_STRUCTURE = BUFFER-RNAME EXCEPTIONS END_OF_OBJECT = 01 INTERNAL_ERROR = 02 WRONG_ACCESS_TO_ARCHIVE = 03.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = HANDLE EXCEPTIONS INTERNAL_ERROR = 01 WRONG_ACCESS_TO_ARCHIVE = 02.
CHANGEDOCU_READ_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_READ_ARCHIVE_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE TABLES ICDHDR = YCDHDR ICDPOS = YCDPOS EXCEPTIONS WRONG_ACCESS_TO_ARCHIVE = 1 OTHERS = 2.
CHANGEDOCUMENT_PREPARE_POS CALL FUNCTION 'CHANGEDOCUMENT_PREPARE_POS' TABLES EDITPOS = ZCDPOS I_CDPOS = YCDPOS.
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 RM07IAAU or its description.
RM07IAAU - Report for Phys. Inv. Doc. Archiving RM07IAAU - Report for Phys. Inv. Doc. Archiving RM07HISTS - documentation and ABAP source code RM07GRID - INCLUDE for Frames in Lists RM07EDMI - Data Transfer: Phys. Inv. - Process Sequential File RM07EDMI - Data Transfer: Phys. Inv. - Process Sequential File