{"audience":"Maintenance managers, reliability engineers, plant controllers and managers who plan investments.","authorization_objects":[{"note":"Display orders by maintenance planning plant","object":"I_IWERK"},{"note":"Display equipment by technical object authorization group","object":"I_BEGRP"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"Yes. Settlement lines (business transaction KOAO) are excluded from the total, so the maintenance cost on the equipment stays visible even after the order is settled to a cost center or asset.","q":"Is the cost of settled orders visible?"},{"a":"Cost element ranges for labor, material and external services are given on the selection screen and saved as a variant. CO cost element groups can be used instead if preferred.","q":"How are cost classes defined?"},{"a":"Yes. In S/4HANA actual cost line items are in ACDOCA and COEP can be read as a compatibility view; for a clean core approach ACDOCA or released CDS views can be used directly.","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":"An equipment line opens the cost breakdown by order, an order line opens IW33."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""}],"functions":[],"gap":"IW39 and KOB1 give cost per order; they do not split the cost of several orders per equipment into labor, material and external services and show it on the same line as downtime. Maintenance information system reports depend on statistics updates and do not allow flexible cost element groups. Equipment cost is usually calculated by merging the order list and cost line items in Excel.","id":"pm-maintenance-cost-by-equipment","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. Maintenance orders and their equipment of the selected planning plant are read from AFIH, order type and object number (OBJNR) from AUFK. The functional location is added through AFIH-ILOAN → ILOA-TPLNR and the equipment description from EQKT.\n2. Actual cost line items of the orders are read from COEP: COEP-OBJNR = AUFK-OBJNR, value type WRTTP = 04 (actual), the selected fiscal year (GJAHR) and period (PERIO). The amount is WKGBTR (controlling area currency). Settlement lines (VRGNG = KOAO) are excluded from the total; otherwise the cost shows zero after settlement.\n3. The cost element (KSTAR) is classified as labor, material, external services or other by the ranges on the selection screen.\n4. Breakdowns and downtime: QMIH notifications with the same equipment, the breakdown flag (MSAUS) set and the malfunction start (AUSVN) in the period are counted; downtime AUSZT is converted to hours with unit MAUEH and totalled.\n5. Cost per downtime hour = total cost ÷ downtime hours. The list is sorted by total cost, highest first; double-clicking an equipment opens the breakdown by order.","module":"PM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Equipment","source_field":"EQUNR","source_table":"AFIH"},{"calculated":false,"formula":"","label":"Description","source_field":"EQKTX","source_table":"EQKT"},{"calculated":false,"formula":"","label":"Functional location","source_field":"TPLNR","source_table":"ILOA"},{"calculated":true,"formula":"Number of orders with cost in the period","label":"Orders","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ COEP-WKGBTR for labor cost elements","label":"Labor","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ COEP-WKGBTR for material cost elements","label":"Material","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ COEP-WKGBTR for external service cost elements","label":"External services","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ COEP-WKGBTR for the remaining cost elements (excluding settlement)","label":"Other","source_field":null,"source_table":null},{"calculated":true,"formula":"Labor + material + external services + other","label":"Total cost","source_field":null,"source_table":null},{"calculated":true,"formula":"Controlling area currency (currency of COEP-WKGBTR)","label":"Currency","source_field":null,"source_table":null},{"calculated":true,"formula":"Number of notifications with QMIH-MSAUS set","label":"Breakdowns","source_field":null,"source_table":null},{"calculated":true,"formula":"Σ QMIH-AUSZT, converted to hours","label":"Downtime (h)","source_field":null,"source_table":null},{"calculated":true,"formula":"Total cost ÷ downtime (h)","label":"Cost per downtime hour","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Maintenance planning plant","name":"S_IWERK","ref_field":"AFIH-IWERK","required":true},{"example":"10000045","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":"2026","kind":"select_option","label":"Fiscal year","name":"S_GJAHR","ref_field":"COEP-GJAHR","required":true},{"example":"008 – 010","kind":"select_option","label":"Period","name":"S_PERIO","ref_field":"COEP-PERIO","required":false},{"example":"943000 – 943999","kind":"select_option","label":"Labor cost elements","name":"S_KSTLAB","ref_field":"COEP-KSTAR","required":false},{"example":"620000 – 629999","kind":"select_option","label":"Material cost elements","name":"S_KSTMAT","ref_field":"COEP-KSTAR","required":false},{"example":"632000 – 632999","kind":"select_option","label":"External service cost elements","name":"S_KSTEXT","ref_field":"COEP-KSTAR","required":false}],"part_of":["pm-maintenance-kpi-pack"],"performance":"COEP is a large table; read it only with the object numbers of the selected orders, controlling area, fiscal year and value type. Run full-year analyses in the background.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=pm-maintenance-cost-by-equipment","related":["pm-mtbf-mttr-by-equipment","pm-overdue-maintenance-orders-backlog"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows planned and actual cost per order; no combination of cost class and downtime per equipment.","tcode":"IW39"},{"note":"Lists actual cost line items of orders; it does not total by equipment.","tcode":"KOB1"}],"summary":"A custom ALV report that splits the actual cost of maintenance orders per equipment in a period into labor, material, external services and other, and shows the number of breakdowns, downtime and cost per downtime hour on the same line. The most expensive equipment for replace-or-repair decisions appears in one list.","tables":[{"access":"read","join_on":"","role":"Maintenance order, equipment and location (driving table)","table":"AFIH","variant":"both"},{"access":"read","join_on":"AUFK-AUFNR = AFIH-AUFNR","role":"Order type and cost object number","table":"AUFK","variant":"both"},{"access":"read","join_on":"COEP-OBJNR = AUFK-OBJNR","role":"Actual cost line items: cost element and amount","table":"COEP","variant":"both"},{"access":"read","join_on":"QMIH-EQUNR = AFIH-EQUNR","role":"Breakdown notifications and downtime","table":"QMIH","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":"ILOA-ILOAN = AFIH-ILOAN","role":"Functional location and cost center","table":"ILOA","variant":"both"}],"title":"Maintenance Cost and Downtime by Equipment Report","url":"https://nekuhub.com/en/reports/maintenance-cost-and-downtime-by-equipment-report/","vendor_id":"nekudos"}