agentleFS
vigneshbarani24vigneshbarani24/sap-superpowers/skills/modules/pm/SKILL.md

pm

Skill9 starsChanged 7 months agoMITView on GitHub

Use when working with SAP Plant Maintenance, equipment management, maintenance orders, notifications, preventive/corrective/predictive maintenance, functional locations, task lists, measuring points, or S/4HANA Asset Management.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    NEVER SKIP NOTIFICATION FOR UNPLANNED MAINTENANCE: Every corrective maintenance activity MUST begin with a notification (IW21).

    line 26
  2. Distinctive:

    MEASURING POINTS DRIVE PREDICTIVE MAINTENANCE: If equipment has measuring points defined but no measurement documents are recorded, the …

    line 29
  3. Distinctive:

    After completing this skill, invoke:

    line 196

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SAP Plant Maintenance (PM)

This skill enforces correct usage of SAP Plant Maintenance processes, ensuring that equipment hierarchies are maintained before work orders are created, notifications are never skipped for unplanned maintenance, and maintenance planning follows structured preventive strategies rather than reactive firefighting.

Content Routing

TopicSection
Maintenance process typesMaintenance Process Types
Equipment and functional locationsTechnical Object Hierarchy
Work order managementWork Order Management
NotificationsMaintenance Notifications
Preventive maintenance planningPreventive Maintenance Planning
Key tables and data modelKey Tables and CDS Views
Integration pointsIntegration Points
S/4HANA changesS/4HANA Asset Management

Iron Laws

  1. ALWAYS MAINTAIN EQUIPMENT HIERARCHY BEFORE WORK ORDERS. A work order without a properly classified equipment record in a functional location hierarchy is an orphan. Orphan work orders cannot be analyzed for failure patterns, cost trends, or replacement decisions. No equipment master = no work order.
  2. NEVER SKIP NOTIFICATION FOR UNPLANNED MAINTENANCE. Every corrective maintenance activity MUST begin with a notification (IW21). Skipping the notification means the failure is unrecorded — no failure analysis, no pattern detection, no basis for shifting to preventive maintenance.
  3. NEVER CREATE TASK LISTS WITHOUT OPERATION DURATIONS. A task list (IA05) without realistic time estimates per operation produces meaningless capacity planning. Every operation needs planned duration based on historical actuals, not guesses.
  4. ALWAYS ASSIGN COST COLLECTORS BEFORE RELEASING WORK ORDERS. A released work order without a settlement rule or cost center assignment creates unallocated maintenance costs. Finance discovers these during period-end close — too late to correct accurately.
  5. MEASURING POINTS DRIVE PREDICTIVE MAINTENANCE. If equipment has measuring points defined but no measurement documents are recorded, the entire predictive maintenance strategy collapses. Enforce measurement recording discipline.

Maintenance Process Types

Corrective Maintenance (Breakdown)

Reactive response to equipment failure. Flow: Notification (IW21) -> Work Order (IW31) -> Planning -> Execution -> Confirmation (IW42) -> Technical Completion (IW32).

Preventive Maintenance (Time-Based)

Scheduled maintenance at fixed intervals. Flow: Maintenance Plan (IP01) -> Scheduling (IP10) -> Auto-generated Work Orders -> Execution -> Confirmation. Uses single-cycle or strategy plans.

Predictive Maintenance (Condition-Based)

Triggered by measurement readings exceeding thresholds. Flow: Measurement Document (IK11) -> Threshold breach triggers notification -> Work Order -> Execution. Requires measuring points (IK01) and counter-based plans.

Refurbishment

Repair of repairable spares. Flow: Refurbishment Order (IW81) -> Remove defective part -> Repair -> Return to stock. Integrates with MM for goods movements.

Technical Object Hierarchy

Functional Locations (IL01/IL02/IL03)

Represent physical locations where equipment can be installed. Structure: Plant -> Building -> Floor -> Room -> Position. Table: IFLO (TPLNR = functional location number).

Equipment Masters (IE01/IE02/IE03)

Individual physical assets tracked for maintenance history. Table: EQUI (EQUNR = equipment number). Equipment is installed at functional locations. Serial number integration with MM material masters.

Bills of Material (IB01)

Equipment BOMs define spare parts for each piece of equipment. Critical for automatic spare parts reservations on work orders.

Work Order Management

TransactionPurpose
IW31Create maintenance order
IW32Change maintenance order
IW33Display maintenance order
IW38List of maintenance orders
IW39List of orders (multi-level)
IW42Overall confirmation of order
IW41Individual confirmation

Order Types

PM01 (Corrective), PM02 (Preventive), PM03 (Refurbishment), PM04 (Calibration). Custom order types inherit from these.

Order Lifecycle

Created -> Released (triggers material reservations, capacity scheduling) -> Partially Confirmed -> Fully Confirmed -> Technically Completed (TECO) -> Business Completed.

Maintenance Notifications

TransactionPurpose
IW21Create notification
IW22Change notification
IW23Display notification
IW28List of notifications
IW29List of notifications (multi-level)

Notification Types

M1 (Malfunction Report), M2 (Maintenance Request), M3 (Activity Report). Notifications capture: damage details (catalog profile), cause codes, activities performed.

Catalog Profiles

Configure code groups and codes for: Object Parts, Damage Types, Cause Codes, Activity Types. SPRO path: Plant Maintenance > Maintenance Processing > Catalogs.

Preventive Maintenance Planning

Maintenance Plans (IP01/IP02)

  • Single Cycle Plan: Fixed interval (e.g., every 90 days).
  • Strategy Plan: Multiple maintenance packages at different intervals (e.g., daily checks, weekly lubrication, monthly inspection, annual overhaul) using maintenance strategy (IP11).
  • Multiple Counter Plan: Triggered by multiple measuring point readings.

Key Planning Transactions

TransactionPurpose
IP01Create maintenance plan
IP02Change maintenance plan
IP10Schedule maintenance plan (generate calls)
IP30Deadline monitoring (mass scheduling)
IP11Create maintenance strategy
IA05Create task list

Task Lists (IA01/IA05)

Define standard operations for maintenance activities. Types: Equipment task list (IA01), Functional location task list (IA11), General maintenance task list (IA05). Include operations, sub-operations, material components, and PRTs (Production Resources/Tools).

Measuring Points and Counters

TransactionPurpose
IK01Create measuring point
IK11Create measurement document
IK07List of measuring points
IK17List of measurement documents

Measuring points: Temperature, pressure, vibration, operating hours. Counter overflow handling (IK08). Threshold values trigger maintenance notifications automatically.

Key Tables and CDS Views

TableDescription
IFLOFunctional location master
IFLOTFunctional location text
EQUIEquipment master
EQKTEquipment text
AUFKOrder master data
AFKOOrder header (production/maintenance)
AFVCOrder operations
AFVVOperation quantities/dates
QMELNotification header
QMFENotification items
QMURNotification causes
QMMANotification activities
MPOSMaintenance plan items
MPLAMaintenance plan header
IMRGMeasurement documents
IMPTTMeasuring point table

S/4HANA CDS Views

  • I_MaintenanceOrder, I_MaintenanceNotification, I_Equipment, I_FunctionalLocation
  • C_MaintOrderFS (Fiori analytical), C_MaintNotifOverviewPage

Integration Points

IntegrationDescriptionKey Config
PM-MMSpare parts reservation on work orders, goods issue (MIGO 261), goods receipt for refurbishmentMaterial BOM on equipment, storage location config
PM-COCost collection on maintenance orders, settlement to cost centers/assetsSettlement rules (KO8G), order type cost element assignment
PM-PPMaintenance during production scheduling, production resource/tool integrationCapacity planning integration, order type category
PM-FI-AAAsset linkage to equipment, capitalization of maintenanceAsset master linked to equipment via serial number
PM-PSMaintenance projects using WBS elementsNetwork activities for complex overhauls
PM-QMQuality notifications from maintenance findingsNotification type integration

S/4HANA Asset Management

Key changes in S/4HANA:

  • Fiori Apps: Maintain Functional Location (F2828), Maintain Equipment (F2827), Manage Maintenance Orders, Manage Maintenance Notifications, Monitor Maintenance Costs.
  • Simplified Data Model: AFKO/AFVC/AFVV still used but supplemented by CDS views.
  • Embedded Analytics: Real-time maintenance KPIs — MTBF (Mean Time Between Failures), MTTR (Mean Time To Repair), maintenance cost ratios.
  • Mobile Maintenance: SAP Asset Manager for offline-capable mobile work order execution.
  • Predictive Maintenance via SAP PdMS: Integration with IoT sensor data for machine-learning-based failure prediction.

Best Practices

  1. Structure functional locations to mirror physical reality — not organizational structure. Locations are physical; cost centers are organizational.
  2. Standardize catalog profiles across plants — inconsistent damage/cause codes make cross-plant failure analysis impossible.
  3. Use strategy plans over single-cycle plans — strategy plans consolidate multiple maintenance activities, reducing equipment downtime.
  4. Record ALL measurement documents — gaps in measurement history break condition-based maintenance triggers.
  5. Set up automatic goods movements — configure backflushing for common consumables to reduce manual goods issue transactions.

Anti-Patterns

  • Creating work orders directly without notifications for breakdown maintenance (loses failure history)
  • Using free-text descriptions instead of catalog codes for damage/cause (cannot analyze trends)
  • Skipping technical completion (TECO) — leaves orders open indefinitely, distorts WIP reporting
  • Maintaining equipment BOMs in MM instead of PM — disconnects spare parts from maintenance context
  • Running IP10 without checking scheduling parameters — generates hundreds of unwanted call objects

Verification

This skill is complete ONLY when ALL of the following are true:

  • Correct transaction codes cited for the specific PM scenario
  • Equipment hierarchy context confirmed (functional location -> equipment -> BOM)
  • Appropriate maintenance process type identified (corrective/preventive/predictive)
  • Integration impacts stated (MM for spare parts, CO for costs, PP if production-relevant)
  • S/4HANA vs ECC differences noted where applicable
  • Table names and CDS views cited are verified against the scenario

Evidence required: Specific transaction codes, table names, and configuration paths — not generic descriptions.

Next Skill

After completing this skill, invoke:

  • mm — When spare parts procurement or inventory management questions arise
  • co — When maintenance cost analysis or settlement questions arise
  • pp — When production-maintenance scheduling conflicts need resolution

Cross-References

  • mm — Spare parts management, goods movements for maintenance
  • co — Maintenance cost collection, settlement, cost center reporting
  • pp — Production scheduling integration, PRTs
  • qm — Quality notifications from maintenance findings
  • testing-strategy — Maintenance scenario test planning

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.