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.
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:
QEVA0001 and QEVA0004 directly modified internal table buffers without triggering standard stock consistency validations.QM01/QM02) failed to integrate directly with supplier collaboration portals, slowing 8D corrective actions.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 |
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.
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.
Model your Quality Management landscape, evaluate automated UD sizing, and generate clean core BAdI and RAP EML code with Tool #106: