SAP transaction codeObjectQA12ModuleQM

QA12 — Change Usage Decision for an Inspection Lot

QA12 reopens and changes a usage decision that was already recorded for an inspection lot via QA11. It lets a consultant correct the UD code, catalog entries, or posting proposal quantities. It does not automatically reverse any stock movement the original UD already triggered, which is the source of most confusion around this transaction.

This page covers QA12, the transaction used to correct a usage decision already recorded against an inspection lot. It focuses on the gap between changing the UD code on screen and the stock movement that decision may have already generated, and on the diagnostic checks needed before touching a lot that has follow-up actions attached.

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

Purpose

QA12 changes a usage decision that has already been recorded for an inspection lot, normally via QA11. The consultant can correct the usage decision code, the associated catalog entries or long text, and in some configurations the stock posting proposal quantities. The structural fact that explains most confusion: the usage decision and the stock posting it triggers are two separate events in the system. If the original UD already generated a goods movement, QA12 reopening the decision does not reverse that movement automatically. Changing the code from, say, an acceptance decision to a rejection decision after stock has already moved to unrestricted use leaves the lot's UD text correct but the physical and system stock wrong until someone manually reverses the earlier posting.

When it is used

Used after the fact, never as the first step in the inspection workflow. A quality engineer reaches for QA12 when the wrong usage decision code was entered in QA11, when additional inspection results or a lab retest arrive after the initial UD was posted, when a customer complaint forces a reassessment of stock already released, or when a lot needs its posting proposal corrected before the batch is shipped. It sits downstream of QA11 (record UD) and QE01/QE51N (results recording) in the inspection process, and is reached for specifically when someone needs to undo or amend a decision rather than make a fresh one.

How to use it in practice

  • Enter the inspection lot number directly in QA12, or find it first through the QA32 lot list if the lot number is not known
  • Review the current usage decision code, date, and existing stock posting proposal on the screen that opens
  • Change the usage decision code by selecting a new code from the assigned catalog, or correct the long text
  • Adjust the stock posting proposal quantities across stock categories if the field is still editable
  • Save the change; the system checks the control key on the inspection lot to determine whether a new stock movement is generated or the change is blocked
  • If the original UD already posted a goods movement and the lot is locked, reverse that material document in inventory management first, then repeat the UD change

Key data objects

  • QALS - inspection lot header record: lot number, status flags, usage decision code and date, control key reference
  • QAVE - usage decision stock posting proposal: quantities proposed for each stock category tied to the decision
  • MKPF and MSEG - material document header and line items created when the usage decision triggers a goods movement
  • JEST - object status records for the inspection lot, including whether the usage decision is flagged complete or locked

How to prove it in the data

Pull QALS by the inspection lot number to read the current usage decision code and status flags. Cross check QAVE for that same lot number to see what stock posting proposal was saved with the decision. If a stock movement was generated, search MSEG for the material document tied to the lot period and material, since the inspection lot reference usually appears in the movement's reference fields. To see what actually changed and when, pull change documents for object type QALS through the standard change document tables, filtering on the lot number and the usage decision fields.

ECC vs S/4HANA

QA12 behaves the same way on S/4HANA as on ECC; the underlying tables and the separation between usage decision and stock posting are unchanged. There is no dedicated Fiori app that replaces the change-usage-decision use case specifically; Fiori apps for quality inspection largely cover recording a new usage decision, and correcting an existing one still runs through this classic transaction.

Common pitfalls and how to diagnose them

  • Stock already posted and locked: the lot's status shows usage decision complete and a goods movement already exists in MSEG. Changing the UD code in QA12 does not reverse that movement. Check MSEG first, reverse the movement in inventory management, then redo the UD change, otherwise book stock and UD text disagree.
  • Control key blocks the change: the inspection type or lot control key may not allow a usage decision to be changed once certain statuses are set. If fields on QA12 are greyed out or the save is rejected, check the lot's status in QALS and JEST before assuming it is an authorization problem.
  • Follow-up actions already executed: a certificate was printed, SPC data was transferred, batch classification was updated, or vendor evaluation scores were posted off the original decision. Changing the UD afterward leaves those downstream artifacts stale. These have to be corrected or rerun manually, QA12 does not touch them.
  • Split lots and partial quantities: when a lot's usable quantity was divided across multiple stock categories or partial usage decisions, changing the header-level code does not automatically reallocate each line. Check QAVE line by line rather than trusting the header code alone.
  • Authorization gaps: many configurations restrict who can change a usage decision versus who can merely record one. If the transaction opens in display-only mode with no error message, this is usually the cause, not a technical block.

Whose problem this is

Functional QM issue in the first instance. If a stock movement already tied to the original decision needs reversal, inventory management or MM ownership is required for that reversal before the UD change is safe. ABAP involvement is rare, typically only if a custom UD workflow or approval step is in place. A clean handover includes the lot number, the original and intended usage decision codes, and any material documents already posted against the lot.

Related SAP objects

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

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