SAP Reports / Programs

RM07IDIF SAP ABAP Report - List of Inventory Differences







RM07IDIF is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report RM07IDIF generates a list of inventory differences for one or more materials...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 RM07IDIF 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

MI24 - Physical Inventory List
MI20 - Print List of Differences


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 RM07IDIF. "Basic submit
SUBMIT RM07IDIF AND RETURN. "Return to original report after report execution complete
SUBMIT RM07IDIF 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: GIDAT = Planned Count Date
Selection Text: GJAHR = Fiscal Year
Selection Text: GRUND = Reason for Inventory Diff.
Selection Text: IIWERT = Threshold Value
Selection Text: P_ALVTR = Display as ALV Tree
Selection Text: P_LEINF = Single List
Selection Text: P_LIBNR = Group by Phys. Inv. Document
Selection Text: P_LWERK = Group by Plant and Stor. Loc.
Selection Text: P_VARI = Layout
Selection Text: SOBKZ = Special Stock
Selection Text: XBLNI = Phys. Inventory Ref.
Selection Text: ZLDAT = Count Date
Title: List of Inventory Differences
Text Symbol: 066 = Documents f. Which Adj. Postings Cannot be Made
Text Symbol: 068 = ALV Tree Display
Text Symbol: 070 = Inventory Differences Totals Sheet ;;
Text Symbol: 102 = Total Material
Text Symbol: 103 = Total Plant
Text Symbol: 104 = Total Stor. Loc.
Text Symbol: 105 = Suppress Page Break
Text Symbol: 109 = Book Qty Qty Cntd Sales Value
Text Symbol: 110 = Material Book Qty Qty Cntd Sales Value
Text Symbol: 111 = Plnt SLoc Difference Qty Un LC Amount Currncy External Sa.Val.
Text Symbol: 113 = Total Stor. Loc. ;;
Text Symbol: 114 = Total Plant ;;
Text Symbol: 115 = Total Stor. Loc. (Spec. Stocks) ;;
Text Symbol: 116 = Itm Material Batch Stock Type Description
Text Symbol: 117 = Book Qty Qty Cntd Diff. Quantity Un LC Amount Currncy Sales Value
Text Symbol: 118 = Sl. BookVal. Ext. Sales Value Diff. Sales Value
Text Symbol: 119 = Plnt StorLoc. Diff. Quantity Un LC Amount Currncy Ext. Sales Val. Diff. SaVal.
Text Symbol: 120 = Book Qty Cntd Qty Sales Value Sa. Book Qty
Text Symbol: 121 = Book Qty Cntd Qty Sales Value Sa. Book Qty
Text Symbol: 122 = Book Qty Qty Cnted Diff. Qty Un LC Amount Currncy
Text Symbol: 123 = P30 -> KIR
Text Symbol: 001 = Qty Counted
Text Symbol: 002 = MItm
Text Symbol: 003 = Special Stock
Text Symbol: 004 = Sales Values





Text Symbol: 005 = Texts
Text Symbol: 006 = Dates
Text Symbol: 007 = Others
Text Symbol: 008 = Change Fields
Text Symbol: 009 = Status Flds
Text Symbol: 010 = Phys. Inv. Doc. ;;
Text Symbol: 011 = Period ;;
Text Symbol: 012 = Plant ;;
Text Symbol: 013 = Storage Location ;;
Text Symbol: 014 = Special Stock ;;
Text Symbol: 015 = Sales Order ;;
Text Symbol: 016 = Vendor ;;
Text Symbol: 017 = Customer ;;
Text Symbol: 018 = WBS Element ;;
Text Symbol: 019 = Qty Fields
Text Symbol: 020 = Itm Material Batch Stock Type Description Sales Value
Text Symbol: 025 = Book Qty Qty Cntd Diff. Qty Un LC Amount Currncy External Sales Val.
Text Symbol: 026 = ----------------- ----------------- ---------------------- -------------------------
Text Symbol: 030 = No adjustment postings can be made for following docs.: ;;
Text Symbol: 040 = Plant SLoc PhysIDoc Doc.Date Pstg Date BIn CSt PSt
Text Symbol: 050 = ---- ---- ---------- ---------- ---------- --- --- ---
Text Symbol: 053 = Database Selection
Text Symbol: 054 = Status Sel. for
Text Symbol: 055 = List Scope
Text Symbol: 060 = List Display
Text Symbol: 061 = Single List
Text Symbol: 062 = Group by Plant and Storage Location
Text Symbol: 063 = Group by Physical Inventory Document
Text Symbol: 064 = Display Options
Text Symbol: 065 = Print Inventory Differences List


INCLUDES used within this REPORT RM07IDIF

INCLUDE MM07MABC.
INCLUDE RM07MAUT.
INCLUDE RM07MSQL.
INCLUDE RM07MUSR.
INCLUDE 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 = g_save CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.






MARA_ARRAY_READ CALL FUNCTION 'MARA_ARRAY_READ' EXPORTING kzrfb = 'X' " delete buffer in each step TABLES ipre03 = prefetch03.

K_KKB_TOP_OF_PAGE_HEADER CALL FUNCTION 'K_KKB_TOP_OF_PAGE_HEADER' EXPORTING it_header = xheader[] EXCEPTIONS OTHERS = 1.

K_KKB_TOP_OF_PAGE_HEADER CALL FUNCTION 'K_KKB_TOP_OF_PAGE_HEADER' EXPORTING it_header = xheader2[] EXCEPTIONS OTHERS = 1.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_f_repid "n627513 i_callback_pf_status_set = 'PF_STATUS_SET' i_callback_user_command = 'USER_COMMAND' i_structure_name = 'YISEG' is_layout = itab_layout it_fieldcat = itab * IT_EXCLUDING = it_special_groups = gruppen[] * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = ' ' i_save = 'A' is_variant = g_variant * IT_EVENTS = * IT_EVENT_EXIT = is_print = is_print * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 IMPORTING * E_EXIT_CAUSED_BY_CALLER = es_exit_caused_by_user = g_exit_by_user TABLES t_outtab = yiseg EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_f_repid "n627513 i_callback_pf_status_set = 'PF_STATUS_SET' i_callback_user_command = 'USER_COMMAND' i_structure_name = 'YISEG' is_layout = itab_layout it_fieldcat = itab it_excluding = excluding it_special_groups = gruppen[] i_save = 'A' is_variant = g_variant is_print = is_print IMPORTING es_exit_caused_by_user = g_exit_by_user TABLES t_outtab = yiseg EXCEPTIONS program_error = 1 OTHERS = 2. "^n_1790807

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = g_f_repid "n627513 i_callback_pf_status_set = 'PF_STATUS_SET' i_callback_user_command = 'USER_COMMAND' is_layout = itab_layout it_fieldcat = itab * IT_EXCLUDING = it_special_groups = gruppen[] * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_DEFAULT = ' ' i_save = 'A' is_variant = g_variant * IT_EVENTS = * IT_EVENT_EXIT = i_tabname_header = 'YWERKS' i_tabname_item = 'YISEG' is_keyinfo = gs_keyinfo is_print = is_print IMPORTING * E_EXIT_CAUSED_BY_CALLER = es_exit_caused_by_user = g_exit_by_user TABLES t_outtab_header = ywerks t_outtab_item = yiseg EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING i_callback_program = g_f_repid "n627513 i_callback_pf_status_set = 'PF_STATUS_SET' i_callback_user_command = 'USER_COMMAND' is_layout = itab_layout it_fieldcat = itab * IT_EXCLUDING = it_special_groups = gruppen[] * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_DEFAULT = ' ' i_save = 'A' is_variant = g_variant * IT_EVENTS = * IT_EVENT_EXIT = i_tabname_header = 'YIBLNR' i_tabname_item = 'YISEG' is_keyinfo = gs_keyinfo is_print = is_print IMPORTING * E_EXIT_CAUSED_BY_CALLER = es_exit_caused_by_user = g_exit_by_user TABLES t_outtab_header = yiblnr t_outtab_item = yiseg EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_f_repid "n627513 it_fieldcat = itab2 is_layout = itab_layout2 "Layoutdaten-Übergab TABLES t_outtab = bel EXCEPTIONS OTHERS = 1.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = g_f_repid "n627513 it_fieldcat = itab2 is_layout = itab_layout2 "Layoutdaten-Übergab TABLES t_outtab = bel EXCEPTIONS OTHERS = 1. "^n_1790807

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = g_variant i_save = g_save * it_default_fieldcat = 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 = g_save CHANGING cs_variant = gx_variant.

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant EXCEPTIONS not_found = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = g_save CHANGING cs_variant = gx_variant.

ME_SELECT_EKORG_FOR_PLANT CALL FUNCTION 'ME_SELECT_EKORG_FOR_PLANT' EXPORTING i_werks = iikpf-werks i_konsi = x IMPORTING e_ekorg = ekorg EXCEPTIONS more_than_one_organization = 01 no_entry_found = 02 no_default_found = 03.

MB_CHECK_T160M CALL FUNCTION 'MB_CHECK_T160M' EXPORTING i_msgnr = '169' IMPORTING rc = l_rc.

ME_READ_INFORECORD CALL FUNCTION 'ME_READ_INFORECORD' EXPORTING incom = meico inpreissim = meprck IMPORTING einadaten = eina einedaten = eine excom = meicr expreissim = mepro EXCEPTIONS error_message = 04.

FI_TYPE_OF_RATE_CHECK CALL FUNCTION 'FI_TYPE_OF_RATE_CHECK' EXPORTING i_blart = t158-blart i_kurst = kurst i_waers = mepro-waers i_hwaer = t001-waers.

CONVERT_TO_LOCAL_CURRENCY CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY' EXPORTING foreign_currency = mepro-waers local_currency = t001-waers foreign_amount = fw_betrag date = datum type_of_rate = kurst IMPORTING local_amount = betrag.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = g_f_repid "n627513 TABLES selection_table = l_rsparams EXCEPTIONS not_found = 1 no_report = 2 OTHERS = 3.

ASH_MM_MATBEL_READ



CALL FUNCTION 'ASH_MM_MATBEL_READ' "n1332157 EXPORTING "n1332157 i_borident = ls_borident "n1332157 TABLES "n1332157 et_mkpf = lt_arcmkpf "n1332157 et_mseg = lt_arcmseg "n1332157 EXCEPTIONS "n1332157 error_message = 1 "n1332157 OTHERS = 4. "n1332157

PURCHASING_VALUE_FIND CALL FUNCTION 'PURCHASING_VALUE_FIND' EXPORTING pi_i_pvf = pi_pvf pi_i_vmbew = pi_mbew IMPORTING pe_dmbtr = pe_dmbtr EXCEPTIONS OTHERS = 01.

MATERIAL_PRE_READ_MBEW CALL FUNCTION 'MATERIAL_PRE_READ_MBEW' EXPORTING kzrfb = 'X' xvper = ' ' xvvpr = ' ' xvjah = ' ' xvvja = ' ' TABLES mbew_keytab = l_prefetch04.

MATERIAL_PRE_READ_MBEW CALL FUNCTION 'MATERIAL_PRE_READ_MBEW' EXPORTING kzrfb = ' ' "no refresh! xvper = 'X' xvvpr = ' ' xvjah = ' ' xvvja = ' ' TABLES mbew_keytab = l_prefetch04_xvper.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbefu return = mtcor TABLES seqmat01 = dummy.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbefu return = mtcor TABLES seqmat01 = dummy.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbefu return = mtcor TABLES seqmat01 = dummy.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mbefu return = mtcor TABLES seqmat01 = dummy.

REUSE_ALV_VARIANT_SELECT CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT' EXPORTING i_dialog = space i_user_specific = abap_true * I_DEFAULT = 'X' * I_TABNAME_HEADER = kopf_itab * I_TABNAME_ITEM = it_default_fieldcat = itab i_layout = itab_layout i_bypassing_buffer = 'X' * I_BUFFER_ACTIVE = IMPORTING * E_EXIT = et_fieldcat = it_fieldcat * ET_SORT = * ET_FILTER = * ES_LAYOUT = CHANGING cs_variant = g_variant EXCEPTIONS wrong_input = 1 fc_not_complete = 2 not_found = 3 program_error = 4 OTHERS = 5.



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