{"audience":"Maintenance managers, spare parts and MRO storeroom owners, reliability engineers and controllers who follow the maintenance budget.","authorization_objects":[{"note":"Display material documents by plant","object":"M_MSEG_WWA"},{"note":"Technical object authorization by maintenance plant","object":"I_SWERK"}],"components":[],"countries":[],"effort_days_max":5,"effort_days_min":3,"effort_size":"M","faq":[{"a":"The base version evaluates only issues to maintenance orders, because the equipment link comes from the order. Issues to cost centers (201) can be shown in a separate 'consumption without equipment' section.","q":"Are issues to a cost center without an order included?"},{"a":"The report gives consumption history; it does not suggest a minimum stock. Optionally the reorder point from MARC and the current stock can be shown side by side to flag parts that are low compared with consumption.","q":"Does it suggest stock levels?"},{"a":"Yes. In S/4HANA reading MSEG is served from the material document table through a compatibility view; for a clean core approach the material document CDS views can be used.","q":"Does it work on S/4HANA?"}],"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":"The equipment opens IE03, the part line opens the MB51 list of the related material documents."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""}],"functions":[],"gap":"MB51 lists goods issues to maintenance orders with the order number, but it does not show the equipment or functional location the order belongs to; for part consumption by equipment the list is merged with the IW39 output in Excel. IW39 and order cost reports give total cost, not frequency or last issue date per part. This information is needed for minimum stock levels, critical spare decisions and repeat failure analysis.","id":"pm-spare-parts-consumption-by-equipment","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. Goods issues to maintenance orders (BWART 261) and their returns (262) are read from MSEG for the plant and posting date range on the selection screen; lines without an order number (AUFNR) are skipped.\n2. The order type is checked through AUFK and only maintenance orders are taken; equipment (EQUNR), location (ILOAN) and maintenance activity type (ILART) are added from AFIH, the functional location comes from ILOA.\n3. Quantity and value are netted using SHKZG: 261 issues count positive, 262 returns negative.\n4. Per equipment + material the number of issues, net quantity, net value (MSEG-DMBTR), number of distinct orders and the last issue date (BUDAT_MKPF) are summed. Average issue interval = (last issue − first issue) ÷ (number of issues − 1).\n5. Share within the equipment = part net value ÷ total part value of the equipment × 100. With 'top N parts' selected, only the N highest-value parts are shown per equipment.","module":"PM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Equipment","source_field":"EQUNR","source_table":"AFIH"},{"calculated":false,"formula":"","label":"Equipment description","source_field":"EQKTX","source_table":"EQKT"},{"calculated":false,"formula":"","label":"Functional location","source_field":"TPLNR","source_table":"ILOA"},{"calculated":false,"formula":"","label":"Spare part","source_field":"MATNR","source_table":"MSEG"},{"calculated":false,"formula":"","label":"Part description","source_field":"MAKTX","source_table":"MAKT"},{"calculated":true,"formula":"Number of MSEG lines with movement type 261","label":"Issues","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ MSEG-MENGE (261 positive, 262 negative)","label":"Net quantity","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Unit","source_field":"MEINS","source_table":"MSEG"},{"calculated":true,"formula":"Σ MSEG-DMBTR (261 positive, 262 negative)","label":"Net value","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Currency","source_field":"WAERS","source_table":"MSEG"},{"calculated":true,"formula":"Number of distinct MSEG-AUFNR values","label":"Orders","source_field":null,"source_table":null},{"calculated":true,"formula":"MAX(MSEG-BUDAT_MKPF)","label":"Last issue","source_field":null,"source_table":null},{"calculated":true,"formula":"(Last issue − first issue) ÷ (issues − 1)","label":"Average interval (days)","source_field":null,"source_table":null},{"calculated":true,"formula":"Part net value ÷ total part value of the equipment × 100","label":"Share of equipment %","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERKS","ref_field":"MSEG-WERKS","required":true},{"example":"01.01.2026 – 31.10.2026","kind":"select_option","label":"Posting date range","name":"S_BUDAT","ref_field":"MSEG-BUDAT_MKPF","required":true},{"example":"10004512","kind":"select_option","label":"Equipment","name":"S_EQUNR","ref_field":"AFIH-EQUNR","required":false},{"example":"TR01-URT-*","kind":"select_option","label":"Functional location","name":"S_TPLNR","ref_field":"ILOA-TPLNR","required":false},{"example":"PM01","kind":"select_option","label":"Order type","name":"S_AUART","ref_field":"AUFK-AUART","required":false},{"example":"002","kind":"select_option","label":"Maintenance activity type","name":"S_ILART","ref_field":"AFIH-ILART","required":false},{"example":"SP-1020","kind":"select_option","label":"Spare part","name":"S_MATNR","ref_field":"MSEG-MATNR","required":false},{"example":"10","kind":"parameter","label":"Top N parts per equipment (0 = all)","name":"P_TOPN","ref_field":"","required":false}],"part_of":[],"performance":"Read MSEG by movement type, plant and BUDAT_MKPF; make sure a suitable index exists for these fields. Read AFIH with FOR ALL ENTRIES only for the order numbers found. For a one-year analysis run the report in the background.","process":"INV","quote_url":"https://nekuhub.com/en/request-a-quote/?report=pm-spare-parts-consumption-by-equipment","related":["pm-maintenance-cost-by-equipment","pm-repeat-breakdowns-by-equipment"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists issues to orders; the equipment and functional location link, frequency and average interval are missing.","tcode":"MB51"},{"note":"Lists maintenance orders with costs, but does not give consumption per part.","tcode":"IW39"}],"summary":"A custom ALV report that totals goods issues to maintenance orders by equipment and functional location, showing which equipment consumes which spare part, how often and at what cost. Returns are netted off; the last issue date and the average interval between issues per part are calculated as well.","tables":[{"access":"read","join_on":"","role":"Goods issues and returns to maintenance orders (driving table)","table":"MSEG","variant":"both"},{"access":"read","join_on":"AUFK-AUFNR = MSEG-AUFNR","role":"Order type and maintenance order check","table":"AUFK","variant":"both"},{"access":"read","join_on":"AFIH-AUFNR = MSEG-AUFNR","role":"Equipment, location and maintenance activity type of the order","table":"AFIH","variant":"both"},{"access":"read","join_on":"ILOA-ILOAN = AFIH-ILOAN","role":"Functional location","table":"ILOA","variant":"both"},{"access":"read","join_on":"EQKT-EQUNR = AFIH-EQUNR AND EQKT-SPRAS = SY-LANGU","role":"Equipment description","table":"EQKT","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = MSEG-MATNR AND MAKT-SPRAS = SY-LANGU","role":"Spare part description","table":"MAKT","variant":"both"}],"title":"Spare Parts Consumption and Cost by Equipment Report","url":"https://nekuhub.com/en/reports/spare-parts-consumption-by-equipment-report/","vendor_id":"nekudos"}