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
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
Below is a list of transaction codes which are relevant to this SAP report
MI22 - Display Phys. Inv. Docs. f. Material
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: 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
INCLUDE: MM07MABC,
RM07GRID,
RM07MAUT,
RM07MSQL,
RM07MUSR,
RM07MEND.
No SAP DATABASE tables are accessed within this REPORT code!
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.
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.
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.
RM07IMAT - Display Physical Inventory Documents for Material RM07IMAT - Display Physical Inventory Documents for Material RM07IM31 - Batch Input: Create Physical Inventory Docs for Ret. Transp. Packaging RM07IM31 - Batch Input: Create Physical Inventory Docs for Ret. Transp. Packaging RM07IK31 - Batch Input: Create Physical Inventory Docs for Vendor Consignment RM07IK31 - Batch Input: Create Physical Inventory Docs for Vendor Consignment