SAP Reports / Programs

RM07IINV SAP ABAP Report - Display Physical Inventory Data for Material







RM07IINV 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 data for a material This report displays the physical inventory data for a material...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 RM07IINV 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

MI23 - Disp. Phys. Inv. Data for 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 RM07IINV. "Basic submit
SUBMIT RM07IINV AND RETURN. "Return to original report after report execution complete
SUBMIT RM07IINV 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: KZLSO = Also Select Special Stocks
Selection Text: MS_CHARG = Batch
Selection Text: MS_LGORT = Storage Location
Selection Text: MS_MATNR = Material
Selection Text: MS_WERKS = Plant
Selection Text: PA_BSTA1 = Unrestricted-Use Stock
Selection Text: PA_BSTA2 = Stock in Quality Inspection
Selection Text: PA_BSTA4 = Blocked Stock
Selection Text: PA_VARI = Layout
Selection Text: SO_DLINL = Date of Last Phys. Inventory
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_SPERR = Phys. Inv. Blocking Indicator
Selection Text: SO_VVKUN = Stock of Ret. Pkg. at Customer
Selection Text: SO_WWKUN = Consignment Stock at Customer
Title: Display Physical Inventory Data for Material
Text Symbol: 234 = Unrestr. Stck
Text Symbol: 235 = In Qual. Insp.
Text Symbol: 236 = Blocked Stock
Text Symbol: 237 = Restricted-Use
Text Symbol: 802 = Selections f. Special Stocks
Text Symbol: 803 = Database Selections
Text Symbol: 804 = Other Selections for Phys. Inv.
Text Symbol: B01 = Unrestricted Use
Text Symbol: B02 = In Quality Inspection
Text Symbol: B04 = Blocked
Text Symbol: B06 = Only Materials That Have Not Yet Been Inventoried
Text Symbol: B07 = With Active PhysInv.
Text Symbol: B08 = Phys. Inv. Block Set
Text Symbol: B09 = Data Records w. Stock Only
Text Symbol: B10 = Displ. Options
Text Symbol: 233 = Previous Year
Text Symbol: 047 = Diff. Value
Text Symbol: 048 = Difference Qty
Text Symbol: 201 = Assignmnt





Text Symbol: 202 = Curr. Period
Text Symbol: 203 = Prev. Per.
Text Symbol: 204 = Current Stock
Text Symbol: 205 = Stock in Prev. Per.
Text Symbol: 206 = Stock Type
Text Symbol: 207 = Period
Text Symbol: 208 = Stock
Text Symbol: 209 = Blocked
Text Symbol: 210 = Active
Text Symbol: 211 = Completed
Text Symbol: 212 = Order
Text Symbol: 213 = Vendor
Text Symbol: 214 = Customer
Text Symbol: 215 = WBS Element
Text Symbol: 216 = To Be Executed
Text Symbol: 217 = Line with Stock Type
Text Symbol: 218 = Material
Text Symbol: 219 = No Phys. Inventory Differences Found
Text Symbol: 220 = Storage Location Stock
Text Symbol: 221 = Batch Stock
Text Symbol: 222 = Special Stock :
Text Symbol: 223 = Plant
Text Symbol: 224 = Valuation Type
Text Symbol: 225 = Storage Location
Text Symbol: 226 = Batch
Text Symbol: 227 = Batch is Blocked
Text Symbol: 228 = Phys. Inv. Block
Text Symbol: 229 = Date in Phys. Inv.
Text Symbol: 230 = Plant Totals
Text Symbol: 231 = Totals
Text Symbol: 232 = Current


INCLUDES used within this REPORT RM07IINV

INCLUDE: MM07MABC,
RM07MAUT,
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.






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.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID I_TABNAME_HEADER = 'T_HEADER' I_TABNAME_ITEM = 'T_ITEM' IT_EVENTS = T_EVENTS_1[] IT_FIELDCAT = FIELDCAT_1[] 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_1 ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER_1 TABLES T_OUTTAB_HEADER = T_HEADER T_OUTTAB_ITEM = T_ITEM EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

MSKA_EXTEND CALL FUNCTION 'MSKA_EXTEND' EXPORTING KZRFB = ' ' MAXTZ = ' ' XVPER = X TABLES MSKA_TAB = TMSKA.

MSKA_EXTEND_STFLAG CALL FUNCTION 'MSKA_EXTEND_STFLAG' "ALRK236505 TABLES "ALRK236505 MSKA_TAB = TMSKA. "ALRK236505

MKOL_EXTEND CALL FUNCTION 'MKOL_EXTEND' EXPORTING KZRFB = ' ' MAXTZ = ' ' XVPER = X TABLES MKOL_TAB = TMKOL.

MKOL_EXTEND_STFLAG CALL FUNCTION 'MKOL_EXTEND_STFLAG' "ALRK236505 TABLES "ALRK236505 MKOL_TAB = TMKOL. "ALRK236505

MSKU_EXTEND CALL FUNCTION 'MSKU_EXTEND' EXPORTING KZRFB = ' ' MAXTZ = ' ' XVPER = X TABLES MSKU_TAB = TMSKU.

MSKU_EXTEND_STFLAG CALL FUNCTION 'MSKU_EXTEND_STFLAG' "ALRK236505 TABLES "ALRK236505 MSKU_TAB = TMSKU. "ALRK236505

MSLB_EXTEND CALL FUNCTION 'MSLB_EXTEND' EXPORTING KZRFB = ' ' MAXTZ = ' ' XVPER = X TABLES MSLB_TAB = TMSLB.

MSLB_EXTEND_STFLAG CALL FUNCTION 'MSLB_EXTEND_STFLAG' "ALRK236505 TABLES "ALRK236505 MSLB_TAB = TMSLB. "ALRK236505

MSPR_EXTEND CALL FUNCTION 'MSPR_EXTEND' EXPORTING KZRFB = ' ' MAXTZ = ' ' XVPER = X TABLES MSPR_TAB = TMSPR.

MSPR_EXTEND_STFLAG CALL FUNCTION 'MSPR_EXTEND_STFLAG' "ALRK236505 TABLES "ALRK236505 MSPR_TAB = TMSPR. "ALRK236505

MARD_EXTEND CALL FUNCTION 'MARD_EXTEND' EXPORTING KZRFB = ' ' MAXTZ = ' ' XVPER = X TABLES MARD_TAB = TMARD.

MARD_EXTEND_STFLAG CALL FUNCTION 'MARD_EXTEND_STFLAG' "ALRK236505 TABLES "ALRK236505 MARD_TAB = TMARD. "ALRK236505

MCHB_EXTEND CALL FUNCTION 'MCHB_EXTEND' EXPORTING KZRFB = ' ' MAXTZ = ' ' XVPER = X TABLES MCHB_TAB = TMCHB.

MCHB_EXTEND_STFLAG CALL FUNCTION 'MCHB_EXTEND_STFLAG' "ALRK236505 TABLES "ALRK236505 MCHB_TAB = TMCHB. "ALRK236505

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[] IS_LAYOUT = GS_LAYOUT_2 I_SCREEN_START_COLUMN = 1 "Popup Position I_SCREEN_START_LINE = ZW_START_LINE I_SCREEN_END_COLUMN = 120 I_SCREEN_END_LINE = ZW_END_LINE 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_DETAIL EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

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

REUSE_ALV_LIST_DISPLAY



CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID IT_FIELDCAT = FIELDCAT_3[] IT_EVENTS = T_EVENTS_3[] IS_LAYOUT = GS_LAYOUT_3 IT_SORT = T_SORT_3[] * Popup Position I_SCREEN_START_COLUMN = 1 I_SCREEN_START_LINE = ZW_START_LINE I_SCREEN_END_COLUMN = zw_end_column I_SCREEN_END_LINE = ZW_END_LINE IMPORTING E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER_3 ES_EXIT_CAUSED_BY_USER = GS_EXIT_CAUSED_BY_USER_3 TABLES T_OUTTAB = T_DIFF EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

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

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

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' "n1172595 EXPORTING "n1172595 bukrs = t5-bukrs "n1172595 IMPORTING "n1172595 WMARV = xmarv "n1172595 EXCEPTIONS "n1172595 NOT_FOUND = 1 "n1172595 WRONG_CALL = 2 "n1172595 OTHERS = 3 . "n1172595

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' "n1172595 EXPORTING "n1172595 i_gjahr = xmarv-lfgja "n1172595 i_monat = lv_mon "n1172595 i_periv = lv_periv "n1172595 IMPORTING "n1172595 E_FDAY = lv_fday "n1172595 EXCEPTIONS "n1172595 ERROR_PERIOD = 1 "n1172595 ERROR_PERIOD_VERSION = 2 "n1172595 FIRSTDAY_NOT_DEFINED = 3 "n1172595 PERIOD_NOT_DEFINED = 4 "n1172595 YEAR_INVALID = 5 "n1172595 OTHERS = 6 . "n1172595



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