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

RM07IDOC SAP ABAP Report - Display Physical Inventory Overview







RM07IDOC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Display physical inventory overview This report displays for each company code the status of the physical inventory for all available material stocks...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 RM07IDOC 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

MIDO - Physical Inventory Overview


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 RM07IDOC. "Basic submit
SUBMIT RM07IDOC AND RETURN. "Return to original report after report execution complete
SUBMIT RM07IDOC 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: S_WERKS = Plants for Company Code
Selection Text: R_MTART = Material Type
Selection Text: R_MATKL = Material Group
Selection Text: R_LGPBE = Storage Bin Description
Selection Text: R_LGORT = Storage Location
Selection Text: PA_VARI = Layout
Title: Display Physical Inventory Overview
Text Symbol: LV5 = Period set incorrectly
Text Symbol: LV4 = Phys. inv. is active again
Text Symbol: LV3 = Phys. inv. executed
Text Symbol: LV2 = Phys. inventory still to be closed
Text Symbol: LV1 = Phys. inventory still to be executed
Text Symbol: L54 = A C
Text Symbol: L53 = Val.
Text Symbol: L44 = A C
Text Symbol: L43 = Blck
Text Symbol: L24 = A C
Text Symbol: L23 = Qual
Text Symbol: L15 = WBS Element
Text Symbol: L14 = A C
Text Symbol: L13 = Unr.
Text Symbol: L11 = Item ;;
Text Symbol: L10 = Sales Ord.;;
Text Symbol: L08 = Customer ;;
Text Symbol: L06 = Vendor ;;
Text Symbol: L04 = Valuation
Text Symbol: L03 = Material Batch/ Deletion Flag
Text Symbol: L02 = Name
Text Symbol: M01 = Company Code
Text Symbol: S01 = Company Code
Text Symbol: S02 = Select all plants for the company code
Text Symbol: S03 = Previous Year
Text Symbol: S04 = Display WM storage locations
Text Symbol: S05 = Which physical inventory status?
Text Symbol: S06 = Check inv. sampling procedure
Text Symbol: S07 = Materials Marked for Deletion
Text Symbol: S08 = Materials with Zero Stock
Text Symbol: S90 = Display Options





Text Symbol: S_E = Sales Order
Text Symbol: S_K = Vendor Consignment Stock
Text Symbol: S_M = Return. Transport Pack.
Text Symbol: S_O = Stock Provided to Vendor
Text Symbol: S_Q = Project
Text Symbol: S_V = Return.Pack.at Cust.
Text Symbol: S_W = Customer Consignment
Text Symbol: S__ = Warehouse Stock
Text Symbol: T00 = Further Selection
Text Symbol: T01 = W/house Stck
Text Symbol: T02 = Ext.Owned Spec.Stock
Text Symbol: T03 = Own Special Stock
Text Symbol: L01 = Plant
Text Symbol: 051 = Current Fiscal Year
Text Symbol: 050 = Evaluation for
Text Symbol: 049 = Storage Location
Text Symbol: 048 = Special Stock
Text Symbol: 047 = Warehouse Stock
Text Symbol: 046 = Value-Only Matls
Text Symbol: 045 = Valuation Area
Text Symbol: 044 = Assignment
Text Symbol: 043 = Group
Text Symbol: 042 = Requested
Text Symbol: 041 = Stock or Stock Type
Text Symbol: 040 = Overview of Selected Stocks and Stock Types
Text Symbol: 035 = Valuation Area
Text Symbol: 030 = Value-Only Mats
Text Symbol: 012 = WM-organized storage locations are not displayed ;;
Text Symbol: 011 = WM Warehouse No.
Text Symbol: 010 = Following plants of company code were not selected: ;;
Text Symbol: 009 = Stock
Text Symbol: 008 = Storage Location ;;
Text Symbol: 007 = Plant
Text Symbol: 004 = Following stocks and stock types were not selected: ;;
Text Symbol: 003 = Created on......................... by........... ;;
Text Symbol: 002 = Current Fiscal Year Current Period ;;
Text Symbol: 001 = Phys. Inv. Overview for Comp. Code Fiscal Year ;;
Text Symbol: /NS = Phys. Inv. Overview for Comp. Code Fiscal Year ;;
Text Symbol: F5B = to the current period. ;;





Text Symbol: F5A = All stock mgmt units have been moved correctly ;;
Text Symbol: F4B = a phys. inventory has been reactivated. ;;
Text Symbol: F4A = There are no stock mgmt units for which ;;
Text Symbol: F3B = a phys. inventory has been carried out. ;;
Text Symbol: F3A = There are no stock mgmt units for which ;;
Text Symbol: F2B = a phys. inventory is still to be completed. ;;
Text Symbol: F2A = There are no stock mgmt units for which ;;
Text Symbol: F1B = a phys. inventory is still to be carried out. ;;
Text Symbol: F1A = There are no stock mgmt units for which ;;
Text Symbol: F01 = Missing in T001W;;
Text Symbol: B10 = Unrestr. Use
Text Symbol: B09 = Quality Insp.
Text Symbol: B08 = 4
Text Symbol: B07 = 2
Text Symbol: B06 = 1
Text Symbol: B05 = Stock Type
Text Symbol: B04 = Blocked
Text Symbol: B02 = In Quality Inspection
Text Symbol: B01 = Unrestricted Use
Text Symbol: 056 = are displayed
Text Symbol: 055 = WM Storage Locations
Text Symbol: 054 = by
Text Symbol: 053 = Created on
Text Symbol: 052 = Current Period


INCLUDES used within this REPORT RM07IDOC

INCLUDE: MM07MABC,
RM07DATA,
RM07MUSR,
RM07MEND,
RM07GRID,
RM07MAUT.


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:

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING I_SAVE = A CHANGING CS_VARIANT = GX_VARIANT EXCEPTIONS NOT_FOUND = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING I_SAVE = A CHANGING CS_VARIANT = GX_VARIANT.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING IS_VARIANT = G_VARIANT I_SAVE = G_SAVE IMPORTING E_EXIT = G_EXIT ES_VARIANT = GX_VARIANT EXCEPTIONS NOT_FOUND = 2.

MARV_SINGLE_READ



CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING bukrs = bukrs IMPORTING wmarv = marv EXCEPTIONS not_found = 1 wrong_call = 2 OTHERS = 3.

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING I_GJAHR = MARV-LFGJA I_MONAT = V_MONAT I_PERIV = T001-PERIV IMPORTING E_FDAY = V_LDYEA EXCEPTIONS ERROR_PERIOD = 01 ERROR_PERIOD_VERSION = 02 FIRSTDAY_NOT_DEFINED = 03 PERIOD_NOT_DEFINED = 04.

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING I_GJAHR = V_GJAHR I_MONAT = V_MONAT I_PERIV = T001-PERIV IMPORTING E_FDAY = V_ERSDA EXCEPTIONS ERROR_PERIOD = 01 ERROR_PERIOD_VERSION = 02 FIRSTDAY_NOT_DEFINED = 03 PERIOD_NOT_DEFINED = 04.

MARD_EXTEND_STFLAG CALL FUNCTION 'MARD_EXTEND_STFLAG' TABLES MARD_TAB = T_MARD_WB.

MKOL_EXTEND_STFLAG CALL FUNCTION 'MKOL_EXTEND_STFLAG' TABLES MKOL_TAB = T_MKOL_K.

MSKA_EXTEND_STFLAG CALL FUNCTION 'MSKA_EXTEND_STFLAG' TABLES MSKA_TAB = T_MSKA.

MSKU_EXTEND_STFLAG CALL FUNCTION 'MSKU_EXTEND_STFLAG' TABLES MSKU_TAB = T_MSKU_W.

MSKU_EXTEND_STFLAG CALL FUNCTION 'MSKU_EXTEND_STFLAG' TABLES MSKU_TAB = T_MSKU_V.

MSLB_EXTEND_STFLAG CALL FUNCTION 'MSLB_EXTEND_STFLAG' TABLES MSLB_TAB = T_MSLB.

MSPR_EXTEND_STFLAG CALL FUNCTION 'MSPR_EXTEND_STFLAG' TABLES MSPR_TAB = T_MSPR.

MKOL_EXTEND_STFLAG CALL FUNCTION 'MKOL_EXTEND_STFLAG' TABLES MKOL_TAB = T_MKOL_M.

VB_BATCH_DEFINITION CALL FUNCTION 'VB_BATCH_DEFINITION' IMPORTING KZDCH = ZW_KZDCH KZDZV = ZW_KZDZV EXCEPTIONS OTHERS = 0.

ME_SELECT_EKORG_FOR_PLANT call FUNCTION 'ME_SELECT_EKORG_FOR_PLANT' EXPORTING I_WERKS = zw_einf_werks I_KONSI = X IMPORTING E_EKORG = ZW_EKORG EXCEPTIONS OTHERS = 1.

ME_READ_INFORECORD call function 'ME_READ_INFORECORD' EXPORTING INCOM = ZW_MEICO IMPORTING EINADATEN = zw_EINA EINEDATEN = zw_EINE EXCEPTIONS others = 1.

MARD_EXTEND_STFLAG CALL FUNCTION 'MARD_EXTEND_STFLAG' TABLES MARD_TAB = T_MARD_1.

VALUE_ARTICLE_FIND CALL FUNCTION 'VALUE_ARTICLE_FIND' EXPORTING I_MATNR = T_MARD-MATNR I_WERKS = XWERKS-WERKS I_BWKEY = XWERKS-BWKEY IMPORTING E_WAART = zw_WAART EXCEPTIONS OTHERS = 1.

MCHB_EXTEND_STFLAG CALL FUNCTION 'MCHB_EXTEND_STFLAG' TABLES MCHB_TAB = T_MCHB.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID IT_FIELDCAT = FIELDCAT_1[] IT_EVENTS = T_EVENTS_1[] IT_SORT = T_SORT_1[] it_filter = g_t_filter_1[] "n395394 IS_PRINT = IS_PRINT_1 IS_LAYOUT = GS_LAYOUT_1 IS_variant = g_VARIANT "n395394 I_SAVE = 'A' I_default = 'X' I_BUFFER_ACTIVE = ' ' IMPORTING E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER_1 ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER_1 TABLES T_OUTTAB = T_DATA_1 EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = T_UEB_Lmain[].

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' "n395394 IMPORTING "n395394 et_fieldcat = g_t_fieldcat_work[] "n395394 et_sort = g_t_sort_work[] "n395394 et_filter = g_t_filter_work[] "n395394 EXCEPTIONS "n395394 no_infos = 1 "n395394 program_error = 2 "n395394 OTHERS = 3. "n395394

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID IT_FIELDCAT = FIELDCAT_2[] IT_EVENTS = T_EVENTS_2[] IT_SORT = T_SORT_2[] it_filter = g_t_filter_2[] "n395394 IS_PRINT = IS_PRINT_1 IS_LAYOUT = GS_LAYOUT_1 I_BUFFER_ACTIVE = ' ' IMPORTING E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER_2 ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER_2 TABLES T_OUTTAB = T_DATA_2 EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = T_UEB_L2[].

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = T_UEB_P1[].



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