# How to Create a Sampling Procedure in SAP QM

> Source: https://netray.co/erp-help/how-to-create-sampling-procedure-in-sap-qm
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: ERP Help

## Short answer

In SAP QM, a sampling procedure decides how many units to inspect and how to accept or reject the lot. Maintain it in QDV3, choose a sample type (fixed, percentage, sampling scheme or 100 percent) and a valuation mode, and where needed build the scheme in QDP1. Then assign the procedure to a master inspection characteristic or inspection plan.

## Kind

how-to

## System

sap

## Erp

SAP ERP / S/4HANA

## Module

QM / Sampling Procedures and Schemes

## Query

how to create sampling procedure in sap qm

## Alternate Queries

- sampling procedure create
- qdv3 sap sampling procedure
- sap qm sampling scheme qdp1

## Applies To

SAP ECC 6.0 and S/4HANA QM; QDV3, QDP1, QP01 and QS21

## Steps

### Create and use a sampling procedure

**Items:**

- Decide the inspection need: fixed sample size, percentage of the lot, 100 percent, or a size from a statistical scheme such as an AQL table.
- If you need a scheme, run QDP1 (Create Sampling Scheme), define the lot size ranges and the sample size and accept or reject numbers for each, then save.
- Run QDV3 (Maintain Sampling Procedure) and create a new procedure with a key and a short text.
- Choose the sample type: for example fixed sample, percentage sample, or use the sampling scheme created earlier.
- Set the valuation mode, which defines how the sample result decides accept or reject, for example by number of defectives.
- Optionally link a dynamic modification rule so inspection stringency changes automatically with quality history.
- Assign the procedure to a master inspection characteristic (QS21) or directly to the characteristic in an inspection plan (QP01), then test with a sample lot.

## Sections

### Procedure, scheme and valuation mode

**Body:**

The sampling procedure is the object plans reference. It defines the sample type and valuation mode. A sampling scheme is optional and holds the table of lot size versus sample size and accept and reject numbers, typically built from a standard such as ISO 2859 or ANSI tables your quality department uses.

The valuation mode tells QM how to evaluate the results. For attributes, it often uses the number of defectives against the accept number from the scheme. For variables, it may use mean and standard deviation rules. Choose the mode that matches your quality standard.

### Choosing the sample type

**Body:**

Fixed sample is simplest: always inspect the same number of units, such as one for first article. Percentage sample scales with the lot. Sampling by scheme gives statistical rigor and the right lot size dependency. 100 percent inspection checks every unit and suits critical features or small lots.

Match this to risk. High-risk safety characteristics should not use a lenient sample. Low-risk visual checks seldom justify 100 percent. Document the reasoning, since auditors often ask.

### Assigning to plans and dynamic modification

**Body:**

A procedure is used where a characteristic is defined: on the MIC in QS21 or on the plan line in QP01. If the plan line has none, the MIC default is used. Check the sample size in the inspection lot (QA03) after creation to confirm the system calculated what you expected.

Dynamic modification rules, created in QDR1, adjust inspection stringency by quality history, moving from normal to reduced or tightened inspection. They need to be assigned in the material master QM view or plan and rely on lot results being recorded promptly.

## Pitfalls

- Defining a scheme with overlapping or missing lot size ranges.
- Assigning a sampling procedure that does not match the characteristic type.
- Forgetting to release or assign it, so the lot gets a default sample.
- Mixing attribute and variable valuation modes without testing.
- Turning on dynamic modification without capturing results timely.

## Ai Angle

A private AI layer can read your sampling procedures, plans and past inspection lots to show where the sample size is inconsistent or where a characteristic has no procedure. It supports review and training, while procedures and schemes continue to be maintained in SAP QM.

## Faq

### What transaction creates a sampling procedure?

**Answer:** QDV3 maintains sampling procedures in SAP QM. If you need a sampling scheme with lot size ranges and accept numbers, create it first in QDP1 and then reference it in the procedure.

### What is the difference between a procedure and a scheme?

**Answer:** The procedure defines the sample type and valuation mode and is what plans reference. The scheme is a table of lot sizes, sample sizes and accept or reject numbers used when the sample type is scheme-based.

### How do I assign it to an inspection plan?

**Answer:** In QP01 enter the procedure on the characteristic line, or define it on the master inspection characteristic in QS21 so it is the default. Then check the lot in QA03 to confirm the calculated sample size.

### Can I change inspection stringency automatically?

**Answer:** Yes, with dynamic modification rules. They move between normal, reduced and tightened inspection based on quality history, and need assignment on the material or plan together with consistent results recording.

## Search terms

how to create sampling procedure in sap qm, sampling procedure create, qdv3 sap, qdp1 sampling scheme, sap qm sampling scheme, sap qm valuation mode, dynamic modification rule sap, sap inspection sample size

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
