SAP transaction codeObjectQA02ModuleQM

QA02 — Change Inspection Lot

QA02 changes an existing inspection lot's header data: sample size, inspection specifications, deadlines, stock posting rules, and quantities. It does not record characteristic results (QE01/QE51N) or post the usage decision (QA11/QA12). Most fields become read-only once results exist or a usage decision has been posted, which is the main source of confusion when a field will not open for edit.

This page covers QA02, the transaction for changing header-level data on an inspection lot that already exists in the system. It focuses on why fields lock, how that interacts with results recording and usage decision status, and how to prove in the data whether a change is actually blocked or just missing authorization.

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

Purpose

QA02 opens an existing inspection lot for change: sample size and sampling procedure, inspection specifications and characteristics assignment before results exist, planned and actual delivery dates, stock posting indicators, lot quantity adjustments, and status-relevant flags like skip or acceptance without inspection. The structural fact that explains most confusion is that QA02 edits the lot header and its planning data, not the results themselves and not the usage decision. Those live in separate transactions with their own status logic. A lot's editability in QA02 is gated by its status: once results recording has started for a characteristic, or a usage decision (even partial) has been posted, the corresponding fields are protected from change to preserve consistency between what was inspected, what was decided, and what the lot record says.

When it is used

QA02 is reached whenever an inspection lot's planning data needs correction after creation: a wrong sample size was proposed by the inspection plan and needs manual override, a deadline needs extending because the lab is behind, a stock posting rule needs adjusting before the usage decision, or a lot quantity needs correcting because a goods receipt was split or reversed. It sits between lot creation (automatic from goods receipt, production order, or QA01 for manual lots) and results recording. Consultants reach for QA02 specifically for header and sampling changes; they reach for QE01 or QE51N to enter or change measured values, and QA11 or QA12 to post or change a usage decision. In a Fiori-first S/4HANA landscape, quick single-field corrections may also be handled through a quality lot monitoring app, but the underlying change logic and locks are identical.

How to use it in practice

  • Call QA02 and enter the inspection lot number, or find it via the lot list if the number is not known.
  • Review the header screen: material, plant, inspection type, lot origin, and current status line at the bottom.
  • Navigate to the sample data tab to change sample size, sampling procedure, or valuation mode if no results have been recorded yet.
  • Navigate to the inspection specifications or characteristics tab to check or reassign characteristics before recording starts.
  • Adjust dates, stock posting proposals, or quantity fields on the relevant tab.
  • Save; check for a status message confirming the change was accepted rather than silently ignored due to a lock.

Key data objects

  • QALS - inspection lot header record: material, plant, inspection type, lot quantity, status, dates, origin.
  • QAVE - usage decision data linked to the lot; QA02 will not let header fields change once this record carries a posted decision.
  • Characteristic result tables underlying the inspection plan assignment - populated once results recording begins, and their existence is what locks the corresponding QA02 fields.
  • Stock and batch tables (goods movement history) - referenced indirectly when a lot quantity change would conflict with postings already made against that lot.

How to prove it in the data

Pull the lot from QALS by lot number and check the status field for usage-decision and results-existence indicators. Cross-check against QAVE for the same lot number: a row there with a decision code and date means the usage decision is posted and header changes will be blocked. If a change was attempted and appears to have had no effect, compare the lot's last-changed timestamp on QALS against the time of the attempted save; a mismatch confirms the change was rejected rather than lost.

ECC vs S/4HANA

The transaction and its underlying lock logic are unchanged on S/4HANA; QA02 still opens the same header and sampling data with the same status-driven field protection. What changes is the front end: quality lot monitoring and processing can be done through Fiori apps built for inspection lot management, which expose the same fields in a worklist-driven layout, but the classic transaction remains fully supported and is often faster for a single known lot number.

Common pitfalls and how to diagnose them

  • Status lock after usage decision: once QAVE shows a posted decision for the lot, sample size, characteristics, and often quantity fields in QA02 go read-only. Check the lot status before assuming a save failure is a bug; QA11/QA12 must be reversed first if the decision was posted in error.
  • Results already recorded: if any characteristic has a result saved, changing sample size or the characteristics list is blocked or restricted even without a usage decision. Check whether QE01/QE51N has already been used against the lot before trying to change sampling.
  • Wrong transaction for the actual intent: attempts to enter measured values or record defects in QA02 fail because those fields are not there; the fix is QE01 or QE51N, not forcing changes through QA02.
  • Quantity mismatch with goods movement: changing lot quantity in QA02 without a corresponding stock correction leaves the inspection lot quantity out of sync with the material document. Reconcile through the originating goods movement, not by repeatedly editing the lot.
  • Authorization scoped by plant or inspection type: a field appears editable on screen but the save is rejected; check plant-level and inspection-type-level authorization objects before escalating as a functional defect.
  • Automatically generated lots: lots created from goods receipt or production order carry origin-specific restrictions; some fields that look changeable are actually maintained by the triggering document and any QA02 change gets overwritten on the next relevant posting.

Whose problem this is

Functional QM territory. A handover to QM should include the lot number, its current status line from QALS, whether a usage decision exists, and whether results have been recorded, so the receiving consultant does not waste time trying to change a field that is locked by design rather than broken.

Related SAP objects

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

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