{"audience":"Inventory controllers, warehouse managers and cost accounting teams.","authorization_objects":[{"note":"Display authorization by warehouse number and storage type","object":"L_LGNUM"},{"note":"Stock display authorization by plant and storage location","object":"M_MSEG_LGO"}],"components":[],"countries":[],"effort_days_max":5,"effort_days_min":3,"effort_size":"M","faq":[{"a":"Quants in goods receipt, shipping and difference interim types (such as 902, 916, 999) are already posted in IM but not yet moved to a physical bin. The separate column helps tell a real stock error from an unfinished movement.","q":"Why is stock in interim storage types shown separately?"},{"a":"The default comparison covers company-owned stock. If consignment or project stock is used, the scope can be extended with LQUA-SOBKZ and the related special stock tables (such as MKOL, MSKA).","q":"Are special stocks (consignment, sales order) included?"},{"a":"No, the report only reads. Real differences are cleared through the standard process with LI20 and LX23; the report shows which rows need that step.","q":"Does the report clear differences automatically?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"Double-clicking a material opens the quant list in LX02."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""},{"code":"email","label":"Send the result by email","note":"Differences can be sent to the inventory control team before closing."}],"functions":[],"gap":"LX23 shows the differences between WM and IM and is used to clear them, but it does not show on the same line which interim storage type or open transfer order a difference comes from, and does not produce a daily comparison list suitable for Excel. At month-end close, the cause is usually searched manually across LX02, LT22 and MMBE.","id":"wm-im-stock-comparison","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. For the selected plant and storage locations, the linked warehouse number is determined from T320; storage locations not linked to WM are skipped.\n2. Unrestricted (LABST), quality inspection (INSME) and blocked (SPEME) stock are read from MARD; IM total = LABST + INSME + SPEME.\n3. LQUA quants are summed by material, plant and storage location (GESME). Quants in storage types starting with 9 are also written to the \"in interim\" column.\n4. The target quantity of unconfirmed LTAP items is summed as the open transfer order quantity.\n5. Difference = WM total − IM total. With \"Differences only\", rows with zero difference are dropped; the explanation column states whether the difference is covered by interim stock or an open transfer order.","module":"WM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Plant","source_field":"WERKS","source_table":"MARD"},{"calculated":false,"formula":"","label":"Stor. location","source_field":"LGORT","source_table":"MARD"},{"calculated":false,"formula":"","label":"Warehouse","source_field":"LGNUM","source_table":"T320"},{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"MARD"},{"calculated":false,"formula":"","label":"Description","source_field":"MAKTX","source_table":"MAKT"},{"calculated":false,"formula":"","label":"Unrestricted","source_field":"LABST","source_table":"MARD"},{"calculated":false,"formula":"","label":"In QI","source_field":"INSME","source_table":"MARD"},{"calculated":false,"formula":"","label":"Blocked","source_field":"SPEME","source_table":"MARD"},{"calculated":true,"formula":"MARD-LABST + MARD-INSME + MARD-SPEME","label":"IM total","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ LQUA-GESME (material, plant, storage location)","label":"WM total","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ LQUA-GESME, storage type 9xx","label":"In interim","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ LTAP-VSOLM, LTAP-PQUIT blank","label":"Open TO qty","source_field":null,"source_table":null},{"calculated":true,"formula":"WM total − IM total","label":"Difference","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Unit","source_field":"MEINS","source_table":"LQUA"},{"calculated":true,"formula":"\"Movement in progress\" if the difference is covered by interim stock or an open TO, otherwise \"To be checked\"","label":"Explanation","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"MARD-WERKS","required":true},{"example":"0001","kind":"select_option","label":"Storage location","name":"S_LGORT","ref_field":"MARD-LGORT","required":false},{"example":"100","kind":"select_option","label":"Warehouse number","name":"S_LGNUM","ref_field":"T320-LGNUM","required":false},{"example":"FG-5003","kind":"select_option","label":"Material","name":"S_MATNR","ref_field":"MARD-MATNR","required":false},{"example":"X","kind":"checkbox","label":"Differences only","name":"P_DIFF","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Exclude interim stock from WM total","name":"P_NOINT","ref_field":"","required":false}],"part_of":["inv-physical-inventory-count-pack","wm-warehouse-operations-pack"],"performance":"Get the LQUA totals in the database with SUM and GROUP BY; do not bring quant rows to the application server. Restrict MARD by plant and storage location. For large warehouses, run the report overnight in the background before closing.","process":"INV","quote_url":"https://nekuhub.com/en/request-a-quote/?report=wm-im-stock-comparison","related":["mm-mb52-warehouse-stock","wm-interim-storage-stuck-negative-stock"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows and clears WM-IM differences; does not relate the difference to interim stock or open transfer orders on the same line.","tcode":"LX23"},{"note":"Lists WM stock per quant; does not compare it with IM stock.","tcode":"LX02"}],"summary":"A custom ALV report that compares inventory management stock per storage location (MARD) with the total of warehouse management quants (LQUA) by material, and explains the difference with stock in interim storage types and open transfer orders. Inventory control teams can tell whether a difference is real or just a movement still in progress.","tables":[{"access":"read","join_on":"","role":"Assignment of storage location to warehouse number","table":"T320","variant":"both"},{"access":"read","join_on":"MARD-WERKS = T320-WERKS AND MARD-LGORT = T320-LGORT","role":"IM stock per storage location: unrestricted, quality inspection, blocked (driving table)","table":"MARD","variant":"both"},{"access":"read","join_on":"LQUA-LGNUM = T320-LGNUM AND LQUA-MATNR = MARD-MATNR AND LQUA-WERKS = MARD-WERKS AND LQUA-LGORT = MARD-LGORT","role":"WM quants; summed by material and storage location","table":"LQUA","variant":"both"},{"access":"read","join_on":"LTAP-LGNUM = T320-LGNUM AND LTAP-MATNR = MARD-MATNR AND LTAP-WERKS = MARD-WERKS","role":"Unconfirmed transfer order items; used to explain the difference","table":"LTAP","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = MARD-MATNR AND MAKT-SPRAS = SY-LANGU","role":"Material description","table":"MAKT","variant":"both"}],"title":"WM vs IM Stock Comparison Report","url":"https://nekuhub.com/en/reports/wm-vs-im-stock-comparison-report/","vendor_id":"nekudos"}