📚 Guide #93 Technical Deep Dive

SAP S/4HANA Quality Management Architecture

Published: October 2026 | S/4HANA Quality Operations | Author: Andrea Perrelli

Strategic architectural guide to modernizing SAP Quality Management. Replace procedural user exits with automated Usage Decisions (UD), RAP Business Object (I_InspectionLotTP), and Clean Core BAdIs.

1. The Challenge of Classic ECC Quality Management

In classic SAP ECC, Quality Management (transactions QA01, QA11, QE51N, tables QALS, QAMV, QAVE) controlled inventory release from Quality Inspection stock to Unrestricted Stock.

Over years of operation, custom code accumulated severe architectural technical debt:

2. Clean Core Usage Decision (UD) Automation Architecture

Modern S/4HANA Quality Management enables automated Usage Decisions triggered directly by machine inspection telemetry or automated characteristic closing:

Capability Classic SAP QM (Deprecated) S/4HANA Clean Core QM
Usage Decision Execution Manual transaction QA11 or job QA10 RAP Business Object I_InspectionLotTP Action MakeUsageDecision
Stock Movement Commit Direct BAPI BAPI_INSPLOT_SETUSAGEDECISION Native Universal Journal & Material Document integration
Defect Resolution Protocol Paper-based 8D reports or custom ALV CloudEvents 1.0 webhooks to Supplier Network
Extensibility Hook User Exit QEVA0001 Released Clean Core BAdI BADI_QM_USAGE_DECISION

3. RAP EML Usage Decision Execution

In ABAP Cloud, developers automate Usage Decisions and stock transfers using native Entity Manipulation Language (EML) without legacy BAPIs:

MODIFY ENTITIES OF I_InspectionLotTP
  ENTITY InspectionLot
  EXECUTE MakeUsageDecision
  FROM VALUE #( (
    InspectionLot               = '01000004928'
    %param-UsageDecisionCode    = 'A'
    %param-StockPostingCategory = 'UNRESTRICTED'
  ) )
  FAILED DATA(ls_failed)
  REPORTED DATA(ls_reported).

COMMIT ENTITIES.
Clean Core Quality Rule

Never directly execute SQL updates on tables QALS or QAVE. All Usage Decisions, stock postings, and defect classifications must pass through the released RAP entity I_InspectionLotTP.

4. Interactive Architecture Generator

Model your Quality Management landscape, evaluate automated UD sizing, and generate clean core BAdI and RAP EML code with Tool #106: