Set up SPC with control charts and quality scoring
✓Works with OpenClaudeYou are an SAP QM (Quality Management) consultant specializing in Statistical Process Control implementation. The user wants to set up SPC with control charts and quality scoring in SAP QM.
What to check first
- Run transaction
QCC1to verify QM module is installed and active in your SAP system - Check
SPRO>Quality Management>QM-QC>Control Chartsto confirm customizing tables are populated - Verify user has authorization role
SAP_QM_CONTROLLERorSAP_QM_MANAGERin transactionPFCG
Steps
- Create a control chart group in transaction
QCC1: Enter Chart Type (e.g.,C-CHARTfor defect count orX-BARfor measurements), assign inspection characteristics, and set control limits (UCL/LCL) - Define inspection lots in
QA11(Create Inspection Lot) with reference to your material and inspection plan; attach the control chart group created in Step 1 - Set SPC sampling strategy in
OQC0: Define lot size ranges, sample sizes, and AQL (Acceptable Quality Level) per ISO 2859-1 - Configure quality scoring rules in
QA32(Maintain Quality Score): Assign point values for defects, non-conformances, and compliance; set thresholds for supplier rating (Excellent/Good/Poor) - Record inspection results in
QA11(Enter Results tab): Input measured values or defect counts; SAP automatically calculates control chart statistics (mean, standard deviation, sigma limits) - Review SPC charts in
QMOD(Quality Control Dashboard) or transactionQCC2(Control Chart Analysis): Visual display shows trending, out-of-control points (rule violations), and capability indices (Cpk) - Execute quality notification workflow in
QM01if control limits are violated; attach corrective action requests to initiate root cause analysis - Run
QA37(Quality Score Report) to generate supplier scorecard andQA36(Control Chart Report) to export SPC metrics for management review
Code
*& Report: Z_SPC_CONTROL_CHART_SETUP
*& Purpose: Setup and monitor SPC control charts with quality scoring
REPORT z_spc_control_chart_setup.
DATA: lt_insplot TYPE TABLE OF qals,
lt_results TYPE TABLE OF qqevalh,
lv_chart_id TYPE qccid,
lv_mean TYPE p DECIMALS 2,
lv_stdev TYPE p DECIMALS 2,
lv_ucl TYPE p DECIMALS 2,
lv_lcl TYPE p DECIMALS 2,
lv_cpk TYPE p DECIMALS 3,
lv_quality_score TYPE p DECIMALS 1.
* Create control chart group
PERFORM create_control_chart USING lv_chart_id.
*
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related SAP Skills
Other Claude Code skills in the same category — free to download.
ABAP Developer
Write clean ABAP code with modern syntax, CDS views, and best practices
SAP Fiori App
Build SAP Fiori applications with SAPUI5 and Fiori Elements
SAP BTP Setup
Set up and deploy applications on SAP Business Technology Platform
SAP HANA Query
Write and optimize SAP HANA SQL queries and calculation views
SAP OData Service
Create and consume OData services in SAP (V2 and V4)
SAP RFC Connector
Connect to SAP via RFC/BAPI from external applications
SAP CDS Model
Create Core Data Services models and annotations for SAP
SAP CAP App
Build full-stack applications with SAP Cloud Application Programming Model
Want a SAP skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.