SAP Knowledge Base Article - Public

3594993 - Get ABAP Runtime Error "ITAB_DUPLICATE_KEY" in Change QM Inspection Setup - Collective Processing App

Symptom

An ABAP runtime error occurs during mass maintenance of quality settings in the Change QM Inspection Setup - Collective Processing app.
Checking the detailed dump information in ABAP Runtime Errors app, the error is ITAB_DUPLICATE_KEY and associated with the program RQMQMM00.

Environment

S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Open the Change QM Inspection Setup - Collective Processing app.
  2. Select a plant and materials.
  3. In the "Activate Inspection Type" tab, check "Assign Inspection Type" and "Activate Despite Insp. Stock".
  4. Select "Inspection Type" - "01".
  5. Click "Run".
  6. Select all materials.
  7. Click "Save".

Cause

The issue is caused by a duplicate assignment of inspection type to inspection lot origin.
Checking in 102518 - Maintain Inspection Lot Origins and Assign Inspection Types, there should be duplicate assignments in some inspection lot origins. For example, inspection type Z17 has been assigned to inspection lot origin 17 for 2 times.

Resolution

Delete the duplicate assignments.

See Also

Keywords

ABAP runtime error, Change QM Inspection Setup - Collective Processing, QA08, duplicate assignment, inspection type, inspection lot origin, RQMQMM00, ITAB_DUPLICATE_KEY  , KBA , QM-IM-2CL , Quality Inspection (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions