SAP Reports / Programs | Materials Management | Inventory Management(MM-IM) SAP MM

RM07II31 SAP ABAP Report - Batch Input: Create Physical Inventory Documents for Normal Stock







RM07II31 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Batch input: Creating physical inventory documents for standard stock This report creates a 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 RM07II31 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

MI31 - Batch Input: Create Phys. Inv. Doc.


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 RM07II31. "Basic submit
SUBMIT RM07II31 AND RETURN. "Return to original report after report execution complete
SUBMIT RM07II31 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: PA_VARI = Layout
Selection Text: R_KUNNR = Customer
Selection Text: R_LGORT = Storage Location
Selection Text: R_LGPBE = Storage Bin Description
Selection Text: R_LIFNR = Vendor
Selection Text: R_MATKL = Material Group
Selection Text: R_MATNR = Material
Selection Text: R_MTART = Material Type
Selection Text: R_PSPNR = WBS Element
Selection Text: R_VBELN = Sales Order
Selection Text: R_WERKS = Plant
Selection Text: XBLNI = Phys. Inventory Ref.
Title: Batch Input: Create Physical Inventory Documents for Normal Stock
Text Symbol: 092 = Docs Created
Text Symbol: 091 = Note
Text Symbol: 090 = Status
Text Symbol: 082 = Activate this function
Text Symbol: 081 = Enter with suitable sorting only
Text Symbol: 080 = Doc. Missing
Text Symbol: 079 = No. of Errors Found
Text Symbol: 078 = No. of Batch Input Sessions Created f. Phys. Inv. Doc. Items
Text Symbol: 077 = No. of Phys. Inv. Docmt Items Directly Created
Text Symbol: 076 = No. of Possible Phys. Inv. Docmt Items
Text Symbol: 075 = Total No. Stock Mgmt Units for Phys. Inventory
Text Symbol: 074 = *** S t a t i s t i c s ***
Text Symbol: 073 = @0H\Q@ Sorting
Text Symbol: 072 = @0E\Q@ Sorting
Text Symbol: 071 = @0H\Q@ Acc. to Stck
Text Symbol: 070 = @0E\Q@ Acc. to Stck
Text Symbol: 069 = System Error / Run Without Update
Text Symbol: 068 = Read No. of Data Records
Text Symbol: 067 = Activate Interface Check if ALV
Text Symbol: 066 = Create Docmt
Text Symbol: 093 = Batch Input
Text Symbol: 100 = Display Error Messages by Double-Clicking
Text Symbol: A01 = For stock mgmt unit(s), a phys. inv. doc. can be generated:
Text Symbol: B01 = No entry could be created for the planned count date
Text Symbol: B02 = for the following plants (the fiscal year for this





Text Symbol: B03 = planned date comes after the current fiscal year in
Text Symbol: B04 = the material control record):
Text Symbol: C01 = For stock mgmt unit(s), no document generated:
Text Symbol: D01 = For stock mgmt unit(s), physical inventory must be completed:
Text Symbol: F01 = Plnt|SLoc|Material |Batch |Valuation |Comment
Text Symbol: FT1 = Accounting View Missing
Text Symbol: FT2 = WM Storage Location
Text Symbol: FT3 = Material Type Unknown
Text Symbol: FT4 = Marked for Deletion
Text Symbol: FT5 = No Quantity Update
Text Symbol: FT6 = Value-Based Inventory Mgmt
Text Symbol: FT7 = Error in V.-O. Mat. Determ.
Text Symbol: L01 = Plnt|SLoc|Material |Batch |S|Stor. Bin |Mat. Group
Text Symbol: L02 = Plnnd Date|I|Plnt|SLoc|Material |Batch |S|Stor. Bin |Mat. Group
Text Symbol: OI1 = IS-OIL Excise Duty Revaluation
Text Symbol: 031 = Only Materials with Zero Stock
Text Symbol: 030 = Threshold Value for Stock
Text Symbol: 025 = Hold processed sessions
Text Symbol: 024 = Freeze book inv.bal.
Text Symbol: 023 = Planned Count Date
Text Symbol: 022 = Set posting block
Text Symbol: 021 = Materials Marked for Deletion
Text Symbol: 020 = No. Mtls to be Included
Text Symbol: 019 = Create dcmts directly
Text Symbol: 018 = Blocked
Text Symbol: 016 = New Document Created when Group Changed
Text Symbol: 015 = Plnt|Fiscal Year |Planned Count Date
Text Symbol: 014 = Max. No. Items/Doc.
Text Symbol: 013 = Name of Session
Text Symbol: 012 = Issue Log
Text Symbol: 011 = Generate Batch Input
Text Symbol: 010 = Material Group
Text Symbol: 009 = Storage Bin Description
Text Symbol: 008 = Sorting
Text Symbol: 007 = Batch Input Session
Text Symbol: 006 = Incl. Btchs Subj. to PhysInv
Text Symbol: 005 = In Quality Inspection
Text Symbol: 004 = Incl. Matls Subj. to Phys. Inv.
Text Symbol: 003 = Unrestricted Use





Text Symbol: 002 = Stock Types
Text Symbol: 001 = Data in Phys. Inv. Docmt Header
Text Symbol: 032 = Value-Only Matls
Text Symbol: 065 = Batch Input
Text Symbol: 064 = Run with Test List After ALV
Text Symbol: 063 = Run with Break Points ?
Text Symbol: 062 = Display Options
Text Symbol: 061 = Matl Group -> Docmt Header
Text Symbol: 060 = Storage Bin Description -> Document Header
Text Symbol: 059 = Special Evaluation: Batch Indic.
Text Symbol: 058 = Select MARC with ABCIN indicator
Text Symbol: 057 = Medebach Test Functions
Text Symbol: 056 = When Group Changed
Text Symbol: 055 = Plant - StorLoc. - Matl Group - Material
Text Symbol: 054 = Plant - SLoc. - Stor. Bin Description - Material
Text Symbol: 053 = Plant - SLoc. - Material
Text Symbol: 052 = Database Selections
Text Symbol: 051 = Select data and issue log
Text Symbol: 044 = Control
Text Symbol: 043 = Plnt|SLoc|Material |Batch |S|Message
Text Symbol: 042 = Error Log
Text Symbol: 041 = Physical Inventory Number
Text Symbol: 040 = Enter grouping criterion in document header
Text Symbol: 038 = SP Threshold Value for VO Mat.
Text Symbol: 037 = Exclude from selection
Text Symbol: 036 = Only Materials with Negative Stock
Text Symbol: 035 = Only Materials W/o Zero Stock
Text Symbol: 034 = Selection Acc. to Stock Balance
Text Symbol: 033 = Phys. Inventory Ref.


INCLUDES used within this REPORT RM07II31

INCLUDE RM07IBDC.


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:

No SAP FUNCTION MODULES are executed within this report code!



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