SAP Reports / Programs

RM07IAAU SAP ABAP Report - Report for Phys. Inv. Doc. Archiving







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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MI9A - Analyze archived phy. inv. docs


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 RM07IAAU. "Basic submit
SUBMIT RM07IAAU AND RETURN. "Return to original report after report execution complete
SUBMIT RM07IAAU 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: 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





Text Symbol: 005 = Counted
Text Symbol: 006 = No diff. posted
Text Symbol: 007 = Diff. partly posted
Text Symbol: 008 = DiffPosted
Text Symbol: 009 = Item.........
Text Symbol: 010 = Position
Text Symbol: 011 = Material.......
Text Symbol: 012 = Location of Physical Inventory ------------------------------------------------
Text Symbol: 013 = Plant..........
Text Symbol: 014 = SpecStck...
Text Symbol: 015 = Stor. Loc......
Text Symbol: 016 = Batch......
Text Symbol: 017 = Prod. Bin Loc..
Text Symbol: 018 = Vendor.....
Text Symbol: 019 = Sales Order....
Text Symbol: 020 = Customer...
Text Symbol: 021 = Stock Type.....
Text Symbol: 022 = Actions -----------------------------------------------------------------------
Text Symbol: 023 = Phys. Inv. Status
Text Symbol: 024 = Phys. Inventory Ref.
Text Symbol: 025 = Change Date....
Text Symbol: 026 = Changed by......
Text Symbol: 027 = Count Date.....
Text Symbol: 028 = Counted by......
Text Symbol: 029 = Posting Date...
Text Symbol: 030 = Posted by.......
Text Symbol: 031 = Mat. Document..
Text Symbol: 032 = Recount Doc.....
Text Symbol: 033 = Quantities and Values ---------------------------------------------------------
Text Symbol: 034 = Quantity.......


INCLUDES used within this REPORT RM07IAAU

INCLUDE: ARCINC01,
RM07GRID.


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_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.

ARCHIVE_OPEN_FOR_READ





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.



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