IW31 — Create Plant Maintenance Order
IW31 creates a maintenance order in Plant Maintenance, the document that plans and tracks labor, materials, and costs for a repair or preventive job. The order type selected on the initial screen drives almost everything downstream: number range, screen layout, settlement profile, and whether the order must be linked to a notification or technical object.
This page covers the IW31 create-order transaction in Plant Maintenance: what it writes, the real creation sequence including reference objects and settlement rules, and the recurring failure patterns around order type configuration, missing technical object data, and broken links to notifications. It also covers where responsibility sits between PM functional, ABAP, and Basis when an order fails to save or behaves inconsistently.
Reviewed by an ERPClimb SAP consultant on 15 Sept 2026· 1,280 words
Purpose
IW31 creates a maintenance order: the object that carries planned operations, work centers, components, and costs for a piece of maintenance work, whether corrective, preventive, or inspection related. The order can stand alone or be created with reference to a notification, a piece of equipment, or a functional location. The single structural fact that explains most confusion around IW31 is that the order type chosen on the initial screen is not a label, it is a configuration key that determines the number range, the screen layout (which tabs and fields appear), the default settlement rule behavior, and which object information (equipment, functional location, cost center) is mandatory versus optional. Two consultants entering what looks like the same job under two different order types can end up with orders that behave completely differently at release, confirmation, and settlement.
When it is used
IW31 is reached for in two situations: creating a maintenance order directly for planned or unplanned work with no prior notification, or converting an already-created notification (from IW21 or IW22) into an order for execution. It sits between the demand-recognition step (a notification, a maintenance plan call, or a breakdown report) and execution (confirmation via IW41, goods movement, time entry). If a maintenance plan is scheduling recurring work, the order is usually generated automatically through the plan call rather than typed manually into IW31, so a consultant reaching for IW31 by hand is usually handling either ad hoc corrective work or a manual conversion from a notification that was not auto-converted.
How to use it in practice
- Enter the order type on the initial screen; this is the first decision point and cannot be changed later without a full order type conversion procedure.
- Enter the planning plant and, if starting from a notification, the notification number to pull in the reference object and long text.
- On the header, confirm or enter the functional location or equipment, the maintenance activity type, and the responsible/planner group.
- Add operations on the operations tab, assigning a work center and control key to each; the control key governs whether confirmation, costing, and printing are allowed later.
- Add components on the components tab if materials are needed; this creates reservations against the material.
- Check or set the settlement rule on the costs tab if the order type does not derive one automatically.
- Save; the system assigns the order number from the order type's number range and the order enters created (not yet released) status.
Key data objects
- AUFK - general order master data: order number, order type, business area, plant, and status of the order at the general order level.
- AFKO - order header data shared with production order structure: basic start and finish dates, scheduling data, and link to the routing.
- AFIH - PM-specific order header: functional location, equipment, notification reference, maintenance activity type, and planning plant.
- AFVC - order operations: work center, control key, planned work, and standard values for each operation line.
- ILOA - object list/location assignment linking the order to the equipment or functional location master record.
- RESB - reservations generated for components entered on the order, consumed later at goods issue.
- JEST - status records showing the order's current and historical system statuses (created, released, etc.).
How to prove it in the data
To confirm an order exists and what it points to, pull AUFK on the order number to get order type and plant, then AFIH on the same order number to see the functional location, equipment, and notification link. Cross-check ILOA using the object number stored on AFIH to confirm the object list entry actually resolves to a valid equipment or functional location master record. To confirm status, filter JEST on the order's object number for the current status flag set to X; a missing release status (I0002 equivalent) explains why goods movements or confirmations are being rejected downstream.
ECC vs S/4HANA
IW31 remains available and functionally unchanged in its core logic on S/4HANA; order type configuration, number ranges, and the underlying tables behave the same way. S/4HANA adds a Fiori app for creating maintenance orders with a simplified layout aimed at planners, but the classic GUI transaction continues to be used heavily, particularly for orders with complex operation lists or component structures that the Fiori app does not fully expose. There is no forced replacement of IW31.
Common pitfalls and how to diagnose them
- Order type not configured for the plant: save fails or defaults come out wrong because the order type-plant parameter combination in customizing is incomplete; check the order type's plant parameters before assuming the order data itself is wrong.
- Missing or invalid number range: save fails with a number range error because the interval for the order type is exhausted or was never maintained; this is a Basis/config task, not something fixable by re-entering data.
- Reference object not maintained correctly: the functional location or equipment entered does not exist in the required status, or is not assigned to the plant expected by the order type, causing account assignment or object list errors; verify the master record in IL03 or IE03 before touching the order again.
- Settlement rule missing or wrong: the order type's settlement profile did not auto-derive a rule, or the derived cost center/WBS is inactive, which surfaces later at settlement rather than at save time; check the costs tab immediately after creation, not after the job is finished.
- Work center or control key gaps: an operation references a work center not extended to the order's plant, or a control key that blocks confirmation, discovered only when IW41 is attempted; verify work center-plant extension and control key settings during order creation, not after execution starts.
- Notification link silently dropped: converting from IW21/IW22 but the notification reference does not carry over because the order was created independently instead of through the notification's follow-up action, breaking traceability between the two documents.
- Order stuck in created status: the order saves cleanly but nobody releases it (IW32), so goods issues and time confirmations are rejected; this is a process gap, not a technical error, and is often misreported as an IW31 defect.
Whose problem this is
This is functional PM ground first: order type configuration, settlement profiles, work center assignment, and object list issues are all customizing or master data problems for the PM consultant to resolve. Escalate to ABAP only when a custom user-exit or BAdI implementation is rejecting valid data at save. Escalate to Basis for number range exhaustion or authorization failures. A good handover includes the order number (if one was created), the order type, the exact error message text, and whether the failure happened at save or later at release/confirmation.
Related SAP objects
Reviewed pages this object connects to in the ERPClimb knowledge graph.
Source: ERPClimb — https://erpclimb.com/sap-tcodes/iw31ERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.