SAP transaction codeObjectQP02ModuleQM

QP02 — Change Inspection Plan

QP02 changes an existing quality inspection plan: its operations, characteristics, sampling procedures, and material assignments. Inspection plans are identified by a plan group and group counter, not by material, so the same plan can serve several materials through a separate allocation table. Changes only take effect for inspection lots created after the change, not for lots already open.

This page covers QP02, the transaction for changing quality inspection plans in QM, including how the plan group/counter structure works, what gets written where, and the recurring diagnostic problems around release status, material assignment, and characteristics not appearing where expected. It is aimed at consultants troubleshooting why a plan change did not show up in an inspection lot or why a plan cannot be found for a material.

Reviewed by an ERPClimb SAP consultant on 15 Sept 2026· 1,234 words

Purpose

QP02 opens an existing inspection plan for editing: header data, operations, the quality characteristics attached to each operation, sampling procedures, and the materials that use the plan. The structural fact that causes most confusion is that an inspection plan is keyed by a plan group and group counter, completely independent of material number. A material is linked to a plan through a separate assignment, meaning several materials, or several plants, can share one plan, and one material can in principle have several plan counters valid for different periods or usages. Editing the wrong counter, or editing a plan that is not the one actually assigned to the material in that plant, is a routine source of wasted time. If change number management or engineering change management is active for the task list type, changes may generate a new version instead of overwriting the current one.

When it is used

QP02 is reached after a plan already exists via QP01, whenever an existing inspection needs adjustment: a tolerance changes, a characteristic is added or removed, a sampling procedure is swapped, a new material needs to be added to an existing plan group, or an operation's work center changes. It sits in the master-data layer of quality inspection, upstream of inspection lot creation (QA01/QA02) and results recording (QE01/QE51n). A consultant reaches for QP02 rather than a Fiori app when doing detailed characteristic-level edits, long text maintenance, or bulk operation changes, since classic inspection plan maintenance in many landscapes is still handled through the SAP GUI transaction rather than a browser app.

How to use it in practice

  • Open QP02 and enter the plan group and group counter directly, or use the material/plant search to locate the plan attached to a specific material
  • Confirm the plan's status and validity period on the header screen before editing anything
  • Navigate into the operation overview and select the operation whose characteristics need to change
  • Open the characteristic overview for that operation, add, remove, or amend characteristics, and check whether each characteristic is inheriting from a master inspection characteristic or has been overridden locally
  • Adjust the sampling procedure and any dynamic modification rule attached to the characteristic if the inspection scope needs to change
  • Check the material assignment tab if the change is meant to apply to an additional material or plant
  • Save, then verify the status is still in a usable state for inspection lot creation, changing it if the save reset it to in-preparation

Key data objects

  • PLKO - inspection plan header, holds plan group, group counter, status, validity dates and usage
  • PLPO - operation-level data for the plan, sequence, work center, and control key
  • PLMK - characteristic data attached to each operation of the plan, including the link to the master inspection characteristic and any local override
  • MAPL - allocation table linking material and plant to a specific plan group and counter, this is what inspection lot creation reads to find the applicable plan

How to prove it in the data

To confirm which plan a material actually uses, check MAPL filtered on material number and plant, and read off the plan group and group counter it points to. Then check PLKO for that group/counter to see status and validity dates. To confirm a specific characteristic is really on the plan, check PLMK filtered on the plan group, counter, and operation, and compare the characteristic number and sampling procedure fields against what QP02 displays on screen, since a discrepancy usually means the wrong counter was edited or the change was saved to a new version.

ECC vs S/4HANA

Inspection plan maintenance itself is essentially unchanged between ECC and S/4HANA; QP01, QP02 and QP03 remain the primary transactions and the underlying data model (plan group, counter, material assignment) carries over directly. Some Fiori apps exist around master inspection characteristics and quality planning overviews, but detailed plan and characteristic editing is still routinely done through the classic transaction in most implementations, so no forced migration to a browser app applies here.

Common pitfalls and how to diagnose them

  • Plan not found for the material: MAPL has no entry for that material/plant combination, the usage indicator on the plan header is not set for quality inspection, or the plan's validity dates have lapsed or not yet started. Check MAPL first, then PLKO validity, before assuming the plan itself is broken.
  • Change not visible in inspection lot creation: the plan is still in status in-preparation rather than released, so QA01 cannot pick it up. Check the status field on the header and the associated status profile; a plan can look complete and still be functionally invisible to lot creation.
  • Change not visible on an existing open lot: inspection lots copy the plan's characteristics at creation time. Editing the plan afterwards does not retroactively update lots already created. This is the most common false-bug report; the fix is either to close and recreate the lot or accept the change applies only going forward.
  • Characteristic edit has no effect: the characteristic was inherited from a master inspection characteristic (maintained via QS21/QS23) and was never overridden at plan level, so editing the master does not touch the plan copy and vice versa. Check whether the characteristic on the plan is flagged as locally changed or still linked to the master.
  • Sampling behaviour looks wrong at results recording: the sampling procedure or dynamic modification rule was changed at the characteristic level inside the plan rather than at the master characteristic, and only applies to this plan-material combination, not to other plans using the same master characteristic.
  • Editing the wrong group counter: when engineering change management or task list change numbers are active, saving a change on a released plan can silently create a new counter or version rather than updating the one being viewed, leaving the consultant convinced the save failed.

Whose problem this is

This is a functional QM problem in almost every case: inspection plan structure, characteristic assignment, sampling procedures and status handling are all configuration and master-data decisions owned by the QM consultant. ABAP involvement is rare and limited to custom characteristic determination logic or user exits around plan selection. A clean handover states the plan group/counter, the material/plant affected, the exact characteristic or operation in question, and whether the issue is about a new lot or an already-open one.

Related SAP objects

Reviewed pages this object connects to in the ERPClimb knowledge graph.

Source: ERPClimb — https://erpclimb.com/sap-tcodes/qp02ERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.