SAP Reports / Programs

RM07IMAT SAP ABAP Report - Display Physical Inventory Documents for Material







RM07IMAT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Display of physical inventory documents for a material This report outputs a list of 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 RM07IMAT 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

MI22 - Display Phys. Inv. Docs. f. Material


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 RM07IMAT. "Basic submit
SUBMIT RM07IMAT AND RETURN. "Return to original report after report execution complete
SUBMIT RM07IMAT 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: BUCHP = Posting Period
Selection Text: GIDAT = Planned Count Date
Selection Text: IM_CHARG = Batch
Selection Text: IM_IBLNR = Physical Inventory Document
Selection Text: IM_INVNU = Physical Inventory Number
Selection Text: IM_LGORT = Storage Location
Selection Text: IM_MATNR = Material
Selection Text: IM_WERKS = Plant
Selection Text: KZLSO = Also Select Special Stocks
Selection Text: PA_BREAK = Run with BREAK POINT ?
Selection Text: PA_CHECK = Check ALV?
Selection Text: PA_LIST = New or Old List?
Selection Text: PA_STAT = PF Status for List
Selection Text: PA_VARI = Layout
Selection Text: PA_XSEIT = Suppress Page Break
Selection Text: SO_EEAUF = Sales Order Stock
Selection Text: SO_KKLIF = Consignment Stock
Selection Text: SO_MMLIF = Returnable Transport Packaging
Selection Text: SO_OOLIF = Material Provided to Vendor
Selection Text: SO_QQPNR = Project Stock
Selection Text: SO_VVKUN = Stock of Ret. Pkg. at Customer
Selection Text: SO_WWKUN = Consignment Stock at Customer
Selection Text: XSEIT = Suppress Page Break
Selection Text: ZLDAT = Count Date
Title: Display Physical Inventory Documents for Material
Text Symbol: 071 = Material or Document No.
Text Symbol: 072 = Material Number
Text Symbol: 073 = Last material reached
Text Symbol: 074 = First material reached
Text Symbol: 076 = @0E\Q@ Details
Text Symbol: 077 = @0H\Q@ Details
Text Symbol: 080 = Details
Text Symbol: 081 = Status Sel.
Text Symbol: 901 = Documents Not Counted
Text Symbol: 902 = Selection According to Status
Text Symbol: 903 = Partly Counted Documents
Text Symbol: 904 = Completely Counted Documents
Text Symbol: 905 = Selection by Time





Text Symbol: 906 = Itm Has Been Counted
Text Symbol: 907 = Difference Posted
Text Symbol: 908 = Item Will Be Recounted
Text Symbol: 909 = Item is Deleted
Text Symbol: 911 = PID Item Not Yet Counted
Text Symbol: 912 = PID Item Counted Only
Text Symbol: 913 = PID Item Posted
Text Symbol: 914 = PID Item Recounted
Text Symbol: 915 = PID Item Deleted
Text Symbol: 916 = PID Item Counted and Deleted
Text Symbol: 917 = Database Selections
Text Symbol: 918 = Selection: Special Stocks
Text Symbol: 070 = Doc. No.
Text Symbol: 036 = Plant
Text Symbol: 035 = No totals, because the plants have different currencies
Text Symbol: 034 = Phys. Inv. Doc.
Text Symbol: 031 = Description
Text Symbol: 030 = Plant
Text Symbol: 029 = Total SLoc
Text Symbol: 028 = Total Material
Text Symbol: 027 = Total Plant
Text Symbol: 024 = No count carried out
Text Symbol: 023 = Item deleted;
Text Symbol: 022 = Item not yet counted
Text Symbol: 021 = -------> Document header deleted
Text Symbol: 020 = Recount Doc....
Text Symbol: 019 = Mat. Document..
Text Symbol: 018 = Diff. Value....
Text Symbol: 017 = Diff. Qty......
Text Symbol: 016 = Book Inventory.
Text Symbol: 015 = Qty. Counted...
Text Symbol: 014 = Adj.Pstg Date..
Text Symbol: 013 = Count Date.....
Text Symbol: 012 = Change Date....
Text Symbol: 011 = PI Reference...
Text Symbol: 010 = Status.........
Text Symbol: 007 = Doc. Active
Text Symbol: 001 = Material
Text Symbol: 069 = Sales Price





Text Symbol: 068 = Doc. Status
Text Symbol: 067 = @0H\Q@ Stat. Select.
Text Symbol: 066 = @0E\Q@ Stat. Select.
Text Symbol: 065 = Page Break Control
Text Symbol: 064 = Displ. Options
Text Symbol: 062 = Phys. Inv. No.
Text Symbol: 061 = Diff.Sales Val.
Text Symbol: 060 = Suppress Page Break
Text Symbol: 053 = Prev. Year
Text Symbol: 052 = Current Year
Text Symbol: 051 = Current Year
Text Symbol: 049 = Diff. Value
Text Symbol: 048 = Difference Qty
Text Symbol: 047 = Diff. Value
Text Symbol: 046 = STy
Text Symbol: 045 = Count Date
Text Symbol: 044 = PlCountDte
Text Symbol: 043 = Period
Text Symbol: 042 = Batch
Text Symbol: 041 = Itm
Text Symbol: 040 = /
Text Symbol: 039 = Phys. Inv. Doc.
Text Symbol: 038 = Special Stock
Text Symbol: 037 = SLoc


INCLUDES used within this REPORT RM07IMAT

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


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.

DETERMINE_PERIOD CALL FUNCTION 'DETERMINE_PERIOD' EXPORTING version = -periv date = sy-datlo IMPORTING year = y_gjahr.

DETERMINE_PERIOD CALL FUNCTION 'DETERMINE_PERIOD' EXPORTING version = '' date = sy-datlo IMPORTING year = y_gjahr.

DETERMINE_PERIOD



CALL FUNCTION 'DETERMINE_PERIOD' EXPORTING version = -periv date = yiseg-zldat IMPORTING period = yiseg-monat year = yiseg-gjahr.

DETERMINE_PERIOD CALL FUNCTION 'DETERMINE_PERIOD' EXPORTING version = '' date = yiseg-zldat IMPORTING period = yiseg-monat year = yiseg-gjahr.

MB_READ_MATERIAL_POSITION CALL FUNCTION 'MB_READ_MATERIAL_POSITION' EXPORTING MBLNR = XISEG-MBLNR MJAHR = XISEG-MJAHR TRTYP = TM07I-TRTYP ZEILB = XISEG-ZEILE ZEILE = XISEG-ZEILE TABLES SEQTAB = XMSEG EXCEPTIONS ERROR_MESSAGE = 1.

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.

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

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID I_TABNAME_HEADER = 'T2' I_TABNAME_ITEM = 'YISEG1' IT_EVENTS = T_EVENTS_1[] IT_FIELDCAT = FIELDCAT[] IS_KEYINFO = GS_KEYINFO IS_LAYOUT = GS_LAYOUT_1 IT_SORT = T_SORT_1[] IS_PRINT = IS_PRINT I_SAVE = A IS_VARIANT = G_VARIANT IMPORTING E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER TABLES T_OUTTAB_HEADER = T2 T_OUTTAB_ITEM = YISEG1 EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

MB_READ_MATERIAL_POSITION CALL FUNCTION 'MB_READ_MATERIAL_POSITION' EXPORTING MBLNR = YISEG-MBLNR MJAHR = YISEG-MJAHR TRTYP = TM07I-TRTYP ZEILB = YISEG-ZEILE ZEILE = YISEG-ZEILE TABLES SEQTAB = XMSEG EXCEPTIONS ERROR_MESSAGE = 1.

MB_DISPLAY_INVENTORY_HISTORY CALL FUNCTION 'MB_DISPLAY_INVENTORY_HISTORY' EXPORTING F_TM07I = TM07I F_IKPF = IKPF DIFMG = DIFMG *(DEL) ZEILI = XISEG-ZEILI ZEILI = ZW_TABZEILE B_ZEILE = SPACE F_FUSS = SPACE F_FCAUSI = SPACE SOTXT = T148T-SOTXT LGOBE = T001L-LGOBE NAME1 = T001W-NAME1 TABLES YISEG = XISEG YDM07I = YDM07I FUSS = DUMMY.

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

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID IT_FIELDCAT = FIELDCAT_3[] IT_EVENTS = T_EVENTS_2[] IT_SORT = T_SORT_2[] IS_LAYOUT = GS_LAYOUT_2 IMPORTING E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER TABLES T_OUTTAB = STAB3 EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

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[] IS_LAYOUT = GS_LAYOUT_2 IMPORTING E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER TABLES T_OUTTAB = STAB3 EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

DATE_CHECK_PLAUSIBILITY CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY' EXPORTING DATE = ZW_DATUM EXCEPTIONS PLAUSIBILITY_CHECK_FAILED = 1.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = g_repid I_INTERNAL_TABNAME = 'YISEG' I_INCLNAME = g_repid CHANGING CT_FIELDCAT = FIELDCAT_4 EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3.



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