{"audience":"Quality engineers, process engineers, customer quality representatives and laboratory managers.","authorization_objects":[{"note":"Inspection lot display authorization by inspection type","object":"Q_INSPTYPE"},{"note":"Material authorization by plant","object":"M_MATE_WRK"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"If the characteristic is recorded with single values (QASE filled), single values give the most accurate result. If only summarized results are recorded, the report calculates the pooled variance from each lot's mean and variance, taking both within-lot and between-lot spread into account.","q":"Should single values or summarized results be used?"},{"a":"For characteristics with only an upper or only a lower limit, Cpk is calculated against the available limit (e.g. (USL − x̄) ÷ 3σ). Cp is left empty because it needs both limits.","q":"How are one-sided tolerances calculated?"},{"a":"Yes. QALS, QAMV, QAMR and QASE also exist in S/4HANA. For a clean core approach, the I_InspectionCharacteristic, I_InspectionResult and I_InspectionResultValue CDS views can be used.","q":"Does the report 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":"Double-clicking a line lists the mean and deviation per lot for the characteristic; clicking a lot opens QA03."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""},{"code":"email","label":"Send the result by email","note":"The monthly capability table can be emailed to the quality manager and the customer quality representative."}],"functions":[],"gap":"QGA2 and QE03 show results per inspection lot and characteristic; they do not combine the results of many lots for one characteristic and calculate Cp/Cpk. SPC control charts only work with configured control chart types and task list settings and are not active in most systems. Teams export the results and calculate them in statistics software. The custom report calculates the capability indices directly from single values or summarized results and also handles one-sided tolerances correctly.","id":"qm-process-capability-cpk","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. QALS is read by plant, material, inspection type and lot creation date (ENSTEHDAT); cancelled lots are skipped.\n2. Quantitative characteristics with at least one tolerance limit are taken from QAMV; results are grouped by master inspection characteristic (QAMV-VERWMERKM), so different lots and plans are combined. Limits are taken from the latest lot; if limits changed between lots, the line is flagged.\n3. With \"Calculate from single values\" selected, the QASE-MESSWERT single values (except those flagged invalid) are used; otherwise the mean (MITTELWERT), variance (VARIANZ) and number of values (ANZWERTG) are taken from the QAMR summary of each lot and the pooled variance is calculated as Σ((nᵢ − 1)·sᵢ² + nᵢ·(x̄ᵢ − x̄)²) ÷ (N − 1).\n4. σ = √variance; Cp = (USL − LSL) ÷ 6σ; Cpk = min(USL − x̄, x̄ − LSL) ÷ 3σ. For a one-sided tolerance only the available side is used and Cp stays empty.\n5. Out of tolerance % = number of values outside the limits ÷ total values × 100.\n6. Classification: Cpk ≥ target is capable, between 1.00 and the target is marginal, below 1.00 is not capable; if the number of values is below the minimum, \"insufficient data\" is shown.","module":"QM","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"Material","source_field":"MATNR","source_table":"QALS"},{"calculated":false,"formula":"","label":"Material description","source_field":"MAKTX","source_table":"MAKT"},{"calculated":false,"formula":"","label":"Master characteristic","source_field":"VERWMERKM","source_table":"QAMV"},{"calculated":false,"formula":"","label":"Characteristic text","source_field":"KURZTEXT","source_table":"QAMV"},{"calculated":false,"formula":"","label":"Target value","source_field":"SOLLWERT","source_table":"QAMV"},{"calculated":false,"formula":"","label":"Lower limit (LSL)","source_field":"TOLERANZUN","source_table":"QAMV"},{"calculated":false,"formula":"","label":"Upper limit (USL)","source_field":"TOLERANZOB","source_table":"QAMV"},{"calculated":false,"formula":"","label":"Unit","source_field":"MASSEINHSW","source_table":"QAMV"},{"calculated":true,"formula":"Number of distinct QALS-PRUEFLOS","label":"Lots","source_field":null,"source_table":null},{"calculated":true,"formula":"Number of QASE single values or Σ QAMR-ANZWERTG","label":"Values","source_field":null,"source_table":null},{"calculated":true,"formula":"Mean of all values (x̄)","label":"Mean","source_field":null,"source_table":null},{"calculated":true,"formula":"σ = √(sample variance)","label":"Standard deviation","source_field":null,"source_table":null},{"calculated":true,"formula":"(USL − LSL) ÷ 6σ; empty for a one-sided tolerance","label":"Cp","source_field":null,"source_table":null},{"calculated":true,"formula":"min(USL − x̄, x̄ − LSL) ÷ 3σ","label":"Cpk","source_field":null,"source_table":null},{"calculated":true,"formula":"Values outside the limits ÷ number of values × 100","label":"Out of tolerance %","source_field":null,"source_table":null},{"calculated":true,"formula":"Capable (Cpk ≥ target), marginal (1.00 – target), not capable (\u003c 1.00) or insufficient data","label":"Status","source_field":null,"source_table":null}],"parameters":[{"example":"1000","kind":"select_option","label":"Plant","name":"S_WERK","ref_field":"QALS-WERK","required":true},{"example":"FG-1120","kind":"select_option","label":"Material","name":"S_MATNR","ref_field":"QALS-MATNR","required":true},{"example":"04","kind":"select_option","label":"Inspection type","name":"S_ART","ref_field":"QALS-ART","required":false},{"example":"01.08.2026 – 31.10.2026","kind":"select_option","label":"Lot creation date range","name":"S_DATE","ref_field":"QALS-ENSTEHDAT","required":true},{"example":"NET-AG","kind":"select_option","label":"Master inspection characteristic","name":"S_MIC","ref_field":"QAMV-VERWMERKM","required":false},{"example":"25","kind":"parameter","label":"Minimum number of values","name":"P_MINN","ref_field":"","required":false},{"example":"1.33","kind":"parameter","label":"Target Cpk","name":"P_CPK","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Calculate from single values (QASE)","name":"P_SINGLE","ref_field":"","required":false}],"part_of":["qm-complaint-root-cause-pack"],"performance":"Narrow the QALS selection by plant, material and date. QASE is a large table; read single values only for the selected lots and characteristics. For many materials, working with summarized results (QAMR) is faster.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=qm-process-capability-cpk","related":["qm-in-process-out-of-tolerance-by-work-center","qm-inspection-results-upload","qm-vendor-quality-scorecard"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Shows inspection results per lot; does not combine lots or calculate Cp/Cpk.","tcode":"QGA2"},{"note":"Shows the characteristic results of one lot; no capability analysis over a period.","tcode":"QE03"}],"summary":"A custom ALV report that calculates the mean, standard deviation, Cp and Cpk for each master inspection characteristic from the quantitative results of the inspection lots of the selected material and period, and classifies them as capable, marginal or not capable against a target Cpk. Quality engineers get the capability table requested in customer audits and PPAP files from SAP data in one run.","tables":[{"access":"read","join_on":"","role":"Inspection lot: material, plant, inspection type, creation date (driving table)","table":"QALS","variant":"both"},{"access":"read","join_on":"QAMV-PRUEFLOS = QALS-PRUEFLOS","role":"Characteristic specification: master characteristic, target value, lower and upper tolerance, unit","table":"QAMV","variant":"both"},{"access":"read","join_on":"QAMR-PRUEFLOS = QAMV-PRUEFLOS AND QAMR-VORGLFNR = QAMV-VORGLFNR AND QAMR-MERKNR = QAMV-MERKNR","role":"Characteristic summary result: mean, variance, number of values","table":"QAMR","variant":"both"},{"access":"read","join_on":"QASE-PRUEFLOS = QAMV-PRUEFLOS AND QASE-VORGLFNR = QAMV-VORGLFNR AND QASE-MERKNR = QAMV-MERKNR","role":"Single measured values","table":"QASE","variant":"both"},{"access":"read","join_on":"MAKT-MATNR = QALS-MATNR AND MAKT-SPRAS = SY-LANGU","role":"Material description","table":"MAKT","variant":"both"},{"access":"read","join_on":"InspectionLot = QALS-PRUEFLOS","role":"In S/4HANA it can replace QASE with a clean core approach","table":"I_InspectionResultValue","variant":"s4"}],"title":"Process Capability (Cp/Cpk) Report by Inspection Characteristic","url":"https://nekuhub.com/en/reports/process-capability-cp-cpk-report-by-inspection-characteristic/","vendor_id":"nekudos"}