# How to create an inspection plan in SAP QM (QP01)

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

## Short answer

Use QP01 to create the plan: enter the material and plant, fill the header (usage, status), add an operation with a work center, assign inspection characteristics, set the sampling procedure and save. The plan is only found at goods receipt when it is assigned to the material and the material has an active inspection type.

## Kind

how-to

## System

sap

## Erp

SAP ECC / S/4HANA

## Module

QM / Quality Planning

## Query

how to create inspection plan in sap qm

## Alternate Queries

- sap qm inspection plan report
- QP01 create inspection plan
- sap qm inspection plan tables PLKO PLPO MAPL

## Applies To

SAP ECC 6.0 and S/4HANA on-premise

## Steps

### Create an inspection plan with QP01

**Items:**

Run QP01. Enter the material and plant, leave the group blank so the system assigns a number, and press Enter. If you want to base the plan on an existing one, use the copy-from option instead.

On the header screen set the Usage (typically 5 for goods receipt inspection, or 1 for production), the Status (4 for released, so the plan can be selected), the planning group and the lot size range if required. Maintain the unit of measure.

Open the material assignment area on the header, or confirm the material you entered is already in the list. This creates the link stored in table MAPL.

Go to the operation overview and create operation 0010: enter the work center, a control key that supports inspection characteristics, and a short text.

Select the operation and open the inspection characteristics. Add master inspection characteristics (MICs) you created in QS21 by using the master characteristic reference, or define plan-specific characteristics directly.

For each characteristic set the control indicators (quantitative or qualitative, recording required), the target and tolerance limits, and the sampling procedure and sample size that applies.

Save. Verify in the material master QM view (MM02) that an inspection type such as 01 is active, otherwise no lot will be created from this plan.

## Sections

### What each part of the plan controls

**Body:**

The plan header holds identity and selection data: group and group counter, usage, status, planner group and the material allocation. Selection at lot creation uses material, plant, usage and status together, so a plan with the wrong usage or an unreleased status is invisible to the system even though it exists.

Operations describe where and how inspection happens. A work center and a control key are required, and the control key must allow inspection characteristics. Each operation can carry many characteristics; sequence them as the inspector will perform them because the order drives the results-recording screen.

Characteristics carry the actual requirement: which attribute, target value, limits, whether results are recorded numerically, and which sampling procedure determines the sample size. Re-using master inspection characteristics from QS21 keeps specifications consistent across plans and lets you change a limit once.

### Sampling procedures and dynamic modification

**Body:**

The sampling procedure (QDV3) defines how sample size is derived from lot size: fixed sample, percentage sample, or a table-based plan such as an AQL scheme. It can be set at plan, operation or characteristic level. If sample size comes out as zero or the whole lot, the cause is nearly always a mismatch between the lot-size range in the sampling procedure and the actual inspection lot quantity.

A dynamic modification rule (QDR2 for the rule, with a stage held on the plan or material) can tighten or relax the sample size over time based on quality history. Keep this off during first implementation of a plan; add it only once the baseline works.

### Listing plans and a simple plan report

**Body:**

QP03 displays a single plan. For a list of what exists, the standard transactions for task list reports differ by release, so many teams read the tables directly or build a query. The header is in PLKO, the allocation of materials to plans in MAPL, the operations in PLPO and the characteristics in PLMK.

A useful check is to find materials with an active inspection type that have no plan; those produce lots with no characteristics. Compare the material master QM data in table MARC and the allocation table MAPL.

**Code:**

- SE16N  table MAPL   fields: MATNR, WERKS, PLNTY (task list type, Q for inspection plans), PLNNR (group), PLNAL (group counter)
- SE16N  table PLKO   fields: PLNTY=Q, PLNNR, PLNAL, STATU (status), VERWE (usage), KTEXT (description)
- SE16N  table PLPO   fields: PLNTY=Q, PLNNR, PLNKN (node), VORNR (operation), ARBID (work center id)

### Why the plan is not picked up at goods receipt

**Body:**

The common causes are an inspection type that is not active in MM02 on the Quality Management view, a plan status that is not released, a usage code that the inspection type does not search for, and a plan assigned to a different plant. Fix selection first; do not duplicate plans to work around it.

## Pitfalls

- Leaving the plan status at 1 (created) so it is never selected.
- Creating plan-specific characteristics where a master inspection characteristic should be reused, which makes later limit changes a plan-by-plan exercise.
- Forgetting the inspection type in the material master, so the lot is never generated.
- Using a control key without inspection characteristics enabled, which hides the characteristic button.
- Skipping a transport for QS21 master characteristics and moving the plan alone, which fails in the target system.

## Ai Angle

A grounded assistant is useful here for audit-style questions: which materials have an active inspection type but no plan in MAPL, which plans are not released, or which characteristics have limits that differ across similar plans. It reads PLKO, MAPL, PLPO and PLMK on your own system and returns the rows, leaving any creation or change in QP01 to your planners.

## Faq

### What transaction creates an inspection plan in SAP QM?

**Answer:** QP01 creates an inspection plan, QP02 changes it and QP03 displays it. Master inspection characteristics are created separately in QS21, and sampling procedures are maintained in QDV3.

### What usage should I set on an inspection plan?

**Answer:** Usage 5 is the standard code for goods receipt inspection and 1 for production, but the codes are defined in customizing. The usage must match what the inspection type searches for, otherwise the plan is not selected at lot creation.

### How do I see all inspection plans for a material?

**Answer:** Read table MAPL for the material and plant with task list type Q, then join to PLKO for status and description. You can do this in SE16N or a query. QP03 only displays one plan at a time.

### Do I need a master inspection characteristic?

**Answer:** No, you can define plan-specific characteristics. Master characteristics from QS21 are recommended when several plans share a specification, because a limit change is made once and flows to every plan that references it.

## Search terms

create inspection plan sap qm, qp01 inspection plan, sap qm inspection plan, qs21 master inspection characteristic, sap qm sampling procedure, sap qm task list tables, sap qm inspection plan report, inspection plan material assignment

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