SAPFree calculatorPDF, Excel, Word exportSAP S/4HANA

SAP QM Zero Acceptance Sample Size Calculator (c=0)

A c=0 plan accepts a lot only if the sample has zero defects. It is common in aerospace, medical and automotive receiving inspection because it is easy to explain and strict at the right defect rate. This calculator gives the sample size that holds the consumer risk you choose.

Your numbers

units

Inspection lot quantity as posted by the goods receipt.

% defective

The defect rate you want to reject with high confidence.

Your results

Sample size (hypergeometric approximation)
43
Finite lot correction. Use this one for lots under a few thousand units.
Defective units in a lot at LTPD
25
Sample size (binomial, large lot)
45
Treats every draw as independent. Slightly conservative for small lots.
Share of the lot inspected
8.6%

Planning aid. Confirm against your contract, the applicable sampling standard and your quality agreement before maintaining the sampling procedure in SAP.

Save results:

Sample size vs LTPD

Sweeps Limiting quality (LTPD) from 1 to 10, holding your other inputs fixed.

Review of your SAP QM sampling setup

Optional: a short expert review of sampling procedures and dynamic modification in your system.

Optional. The tool and every export work without this. No spam.

How to use it

Enter the lot size from the inspection lot, the defect rate you consider unacceptable (LTPD) and the chance you will tolerate of accepting such a lot. The tool shows a binomial answer and a finite-lot hypergeometric answer. Take the hypergeometric figure for small and mid-size lots, since inspecting 40 of 60 units tells you much more than the binomial formula assumes. The sweep chart shows how the sample size falls as you relax the LTPD, which is the fastest way to see the cost of a tight requirement.

The method behind it

With zero acceptance, the probability of accepting a lot with D defective units out of N is the chance that none appear in n draws without replacement. The tool solves for the smallest n where that chance is at or below the consumer risk, using the approximation n = (N - (D-1)/2) x (1 - beta^(1/D)). For large lots it converges to ln(beta) / ln(1 - p).

  • beta 10% at LTPD 5% gives roughly 45 units for a large lot
  • Halving the LTPD roughly doubles the sample
  • A smaller lot never needs more than the lot itself

Using the result in SAP QM

In SAP QM the sampling procedure is a master data object (transaction QDV1 and related) and the sample scheme or fixed sample size is assigned per inspection characteristic or inspection type. If you work from a table-based scheme you will pick the nearest entry, while a fixed sample size can be typed directly. Document the LTPD and risk behind the number in the inspection plan text so the next engineer knows why it was chosen.

Common mistakes

Teams often confuse LTPD with AQL. AQL describes a quality level you would like to accept most of the time, while LTPD describes a level you want to reject almost always. Another mistake is applying c=0 to a process with real, tolerated defect rates, which rejects too many good lots. Finally, remember that a sample of one critical characteristic does not replace 100 percent checks on safety features.

Frequently Asked Questions

What is the difference between LTPD and AQL?

AQL is the defect rate a plan should usually accept, so it protects the producer. LTPD is the defect rate a plan should usually reject, so it protects the consumer. This calculator is built around LTPD and consumer risk.

Why does the hypergeometric size come out smaller?

Sampling without replacement from a small lot gives each draw more information, because the pool of untested units shrinks. The binomial formula ignores that and so asks for slightly more units.

Can I use this for variable data?

No. It applies to pass or fail attribute inspection. For measured characteristics a variables plan or a capability study usually needs fewer units for the same protection.

Does this match ANSI Z1.4 tables?

Not exactly. Z1.4 is indexed by AQL and inspection level, while this tool is built from a chosen LTPD and risk. Use it to sanity check or to design a custom c=0 plan.

If you want sampling decisions, lot history and usage decisions summarised from your SAP data without exporting reports, we can build that on your own system.