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

qm

Skill9 starsChanged 7 months agoMITView on GitHub

Use when working with SAP Quality Management — quality planning (inspection plans, material specs), quality inspection (inspection lots, results recording, usage decisions), quality control (SPC, control charts), quality certificates, quality notifications, or QM integration with MM/PP/SD.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    After completing this skill, invoke:

    line 282

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 Quality Management (QM)

This skill enforces correct QM implementation practices, ensuring that inspection plans are maintained before procurement and production go-live, usage decisions are never skipped for inspection lots, and quality notifications are always linked to root cause analysis — because a quality notification without a root cause is a complaint, not a corrective action.

Content Routing

TopicSection
Quality planningQuality Planning
Inspection plans and characteristicsInspection Plans
Quality inspection processQuality Inspection
Usage decisionsUsage Decisions
Quality notificationsQuality Notifications
Quality certificatesQuality Certificates
SPC and control chartsStatistical Process Control
Key tables and transactionsKey Tables / Key Transactions
Integration with MM, PP, SDIntegration Points
S/4HANA quality managementS/4HANA Quality Management

Iron Laws

  1. ALWAYS MAINTAIN INSPECTION PLANS BEFORE PROCUREMENT/PRODUCTION GO-LIVE. Inspection lots are created automatically during goods receipt (MM) and production completion (PP). Without active inspection plans assigned to materials, these inspection lots have no inspection characteristics — making them meaningless checkboxes. Plans first, transactions second.
  2. NEVER SKIP USAGE DECISION FOR INSPECTION LOTS. The usage decision (QA11) is the formal quality verdict — accept, reject, or conditionally accept. An inspection lot without a usage decision is an open quality item. Open lots block stock (if configured for quality stock), distort inventory figures, and create audit findings.
  3. ALWAYS LINK QUALITY NOTIFICATIONS TO ROOT CAUSE ANALYSIS. A quality notification (QM01) that records a defect without analyzing its cause (using catalog codes for defect type, cause, and corrective action) is incident logging, not quality management. Every notification must have: defect description, cause code, corrective action, and responsible person.
  4. NEVER CONFIGURE SAMPLING WITHOUT STATISTICAL BASIS. Sampling procedures define how many units to inspect from a lot. Random sampling without statistical basis (AQL — Acceptable Quality Level, sampling scheme per ISO 2859) produces inspection results that cannot be defended in an audit.
  5. ALWAYS ACTIVATE QM IN MATERIAL MASTER BEFORE EXPECTING INSPECTION LOT CREATION. Inspection lot creation is triggered by the QM procurement/production view in the material master (inspection type activation). If the QM view is not maintained, no inspection lots are created — regardless of how many inspection plans exist.

Quality Planning

Material Specification

Define quality requirements at the material level:

  • Material master QM view: Activate inspection types (01-goods receipt, 03-in-process, 04-delivery, 08-stock transfer)
  • Material specification (QS21): Define required characteristic values for a material
  • Inspection setup (QDV1): Link inspection type to plant/material with detailed control parameters

Catalog Management

Quality catalogs define standardized code groups for:

Catalog TypePurposeTransaction
1 — Defect typesWhat is wrong (scratch, crack, dimension deviation)QS41
3 — Defect locationsWhere on the item (surface, edge, interior)QS41
5 — CausesWhy it happened (tool wear, operator error, material defect)QS41
9 — ActivitiesWhat corrective action was taken (rework, scrap, sort)QS41
E — Usage decisionsPossible quality verdicts (accept, reject, conditional)QS51

Catalog Profiles

Group catalogs into profiles (QS41) and assign to notification types. Ensures consistent coding across plants and quality teams.

Inspection Plans

Plan Structure (QP01/QP02/QP03)

Inspection Plan Header (material, plant, plan group/counter)
  └── Operation (sequence step — e.g., visual inspection, dimensional check)
      └── Inspection Characteristic (specific measurement — e.g., length, weight, color)
          └── Specification (target value, tolerances, sampling)

Characteristic Types

TypeDescriptionExample
QuantitativeMeasured value with tolerancesLength: 100mm +/- 0.5mm
QualitativeAttribute check (pass/fail, code)Surface: OK / Defective
Formula-basedCalculated from other characteristicsRatio = Length / Width

Master Inspection Characteristics (QS21)

Reusable characteristic definitions maintained centrally. Referenced in inspection plans. Changes to master characteristic propagate to all referencing plans.

Sampling Procedures (QDV2)

Sampling TypeDescription
Fixed sampleAlways inspect N units
Percentage-basedInspect X% of lot quantity
Sampling schemeAQL-based per ISO 2859 (single, double, sequential)
100% inspectionInspect every unit (for critical characteristics)
Skip lotSkip inspection for qualified suppliers (dynamic modification)

Dynamic Modification (QDP1/QDP2)

Automatically adjust inspection scope based on quality history:

  • Good results -> reduce inspection (tighten skip lot)
  • Bad results -> increase inspection (from sampling to 100%)
  • Supplier quality score drives inspection level

Quality Inspection

Inspection Lot Creation

Inspection lots are created automatically based on triggers:

Inspection TypeTriggerSource
01 — Goods receiptMIGO goods receipt for purchase orderMM
03 — In-processProduction order confirmation at operationPP
04 — Goods issue for deliveryDelivery creation for customerSD
05 — Goods receipt from productionProduction order goods receiptPP
08 — Stock transferStock transfer postingMM
09 — Recurring inspectionTime-based for stored materialsQM
89 — Physical sampleLaboratory sample inspectionQM

Results Recording (QA32/QE01)

TransactionPurpose
QA32Change inspection lot — results recording
QE01Results recording for inspection point
QE51NResults recording worklist
QA33Display inspection lot

Record measured values for each characteristic. System evaluates against specification (target, upper/lower limits). Automatic valuation: characteristic accepted or rejected based on results.

Defect Recording (QA32/QF01)

Record defects found during inspection with catalog codes:

  • Defect type (from catalog 1)
  • Defect location (from catalog 3)
  • Defect severity (critical, major, minor)
  • Quantity defective

Usage Decisions

Usage Decision Process (QA11/QA12)

The formal quality verdict for an inspection lot:

Decision CodeActionStock Posting
Accept (A)Release to unrestricted stockQuality -> Unrestricted (321)
Reject (R)Block stock or return to supplierQuality -> Blocked (343) or return
Conditional AcceptAccept with deviation documentationQuality -> Unrestricted with note
ScrapWrite off materialQuality -> Scrap (551)
ReworkReturn for reprocessingQuality -> Rework (internal)
Sample retainedRetain sample, release lotQuality -> Unrestricted

Follow-Up Actions

Usage decisions can trigger automatic follow-up:

  • Quality notification creation (for rejected lots)
  • Vendor evaluation update (quality score adjustment)
  • Dynamic modification rule update (adjust future inspection level)
  • Stock posting (automatic goods movement)
  • Quality certificate creation

Quality Notifications

Notification Types

TypeCodeUse CaseTransaction
Quality Notification (general)Q1Customer complaintQM01
Quality Notification (vendor)Q2Supplier quality issueQM01
Quality Notification (internal)Q3Internal defect reportQM01

Notification Structure

Notification Header (reporter, priority, dates)
  └── Items (defect descriptions with catalog codes)
      └── Causes (root cause with catalog codes)
          └── Activities/Tasks (corrective actions with responsible persons and deadlines)

Key Transactions

TransactionPurpose
QM01Create quality notification
QM02Change quality notification
QM03Display quality notification
QM10List of quality notifications
QM50Notification processing deadline monitoring

8D Report Integration

Quality notifications support the 8D methodology: D1 (Team), D2 (Problem Description), D3 (Containment), D4 (Root Cause), D5 (Corrective Action), D6 (Verification), D7 (Prevention), D8 (Closure). Map notification items, causes, and tasks to 8D steps.

Quality Certificates

Certificate Types (QC01/QC02)

TypeDescription
Inspection certificateResults from inspection lot
Certificate of analysis (CoA)Detailed analytical results
Certificate of conformance (CoC)Declaration of compliance to spec
Mill certificate (3.1)EN 10204 material test certificate

Certificate Processing

  • Automatic certificate creation from usage decision
  • Certificate output via print, email, EDI
  • Certificate profile configuration (QV51) — which characteristics appear
  • Inbound certificate processing from suppliers (QC51)

Statistical Process Control

Control Charts (QCC0/QCC1)

Chart TypeUse Case
X-bar/RMean and range for variable data
X-bar/SMean and standard deviation
p-chartProportion defective (attribute data)
np-chartNumber defective
c-chartCount of defects per unit
u-chartDefects per unit (variable sample size)

SPC Configuration

  • Define control chart type per inspection characteristic
  • Configure control limits (calculated or manual)
  • Set rules for out-of-control signals (Western Electric rules)
  • Transaction QCC0: Maintain quality control chart

Key Tables

TableDescription
QALSInspection lot header
QASRInspection lot sample records
QAVEUsage decision header
QAMRDefect items for inspection lot
QMELQuality notification header
QMFEQuality notification items
QMURQuality notification causes
QMMAQuality notification activities
PLKOInspection plan header (task list)
PLPOInspection plan operations
PLMKInspection plan characteristics
QMATMaterial-inspection type assignment

Integration Points

IntegrationDescriptionKey Process
QM-MMGoods receipt inspectionGR triggers inspection lot (type 01); usage decision moves stock
QM-MM (vendor eval)Vendor quality scoreUsage decision updates vendor evaluation quality sub-criterion
QM-PPIn-process inspectionProduction confirmation triggers inspection lot (type 03)
QM-PP (final)Final inspectionProduction GR triggers inspection lot (type 05)
QM-SDDelivery inspectionDelivery creation triggers inspection lot (type 04)
QM-PMMaintenance qualityQuality notifications from maintenance findings
QM-COQuality costsInspection and non-conformance costs collected on orders

S/4HANA Quality Management

Key Changes

  • Fiori Apps: Manage Inspection Lots, Record Inspection Results, Create Quality Notification
  • Embedded Analytics: Real-time quality KPIs — defect rates, inspection lot status, supplier quality scores
  • Simplified inspection processing: Streamlined results recording and usage decision UI
  • Integration with SAP DMC: Digital Manufacturing Cloud for shop floor quality integration
  • Quality Intelligence: AI-assisted defect detection and pattern recognition (roadmap)

Key Fiori Apps

App IDApp Name
F2674Manage Inspection Lots
F3859Record Inspection Results
F2255Create Quality Notification
F2583Monitor Quality

Best Practices

  1. Define catalogs before inspection plans — standardized defect/cause codes are the foundation for quality analytics
  2. Use dynamic modification — automated inspection level adjustment reduces inspection cost while maintaining quality
  3. Link notifications to CAPA — corrective and preventive actions must be tracked to closure
  4. Integrate with vendor evaluation — quality inspection results should automatically influence vendor quality scores
  5. Activate QM view in material master BEFORE go-live — this is the most common missed step

Anti-Patterns

  • Creating inspection lots without inspection plans (lots with no characteristics are meaningless)
  • Leaving usage decisions open (blocks stock, distorts inventory reporting)
  • Using free text instead of catalog codes in notifications (prevents trend analysis)
  • Skipping sampling procedure configuration (all inspections default to 100% — costly and unnecessary)
  • Implementing QM without training production/warehouse staff on results recording

Verification

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

  • Correct QM process identified (planning, inspection, notification, certificate)
  • Material master QM view activation confirmed for relevant materials
  • Inspection type correctly mapped to business trigger (GR, production, delivery)
  • Catalog codes defined for defect types, causes, and corrective actions
  • Integration impacts stated (MM stock posting, PP process order, SD delivery, vendor eval)
  • Usage decision process and follow-up actions addressed

Evidence required: Specific transaction codes, catalog configurations, inspection plan structure, and integration triggers — not generic quality management descriptions.

Next Skill

After completing this skill, invoke:

  • mm — When goods receipt inspection or vendor evaluation is the focus
  • pp — When in-process or final inspection during production is needed
  • sd — When outbound delivery quality checks or customer complaints are the focus

Cross-References

  • mm — Goods receipt inspection, vendor evaluation, material master QM view
  • pp — In-process inspection, production order integration
  • sd — Delivery inspection, customer complaint quality notifications
  • pm — Maintenance-triggered quality findings
  • co — Quality cost collection and analysis

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.