SAP Knowledge Base Article - Public

3736580 - Error "An entry already exists with the same key" when assigning multiple storage locations or plants to one service employee

Symptom

When trying to assign a different plant/storage location to the same combination of Country + Sales Org. + Distr. Channel + Employee on the configuration activity "Assign Plant and Storage Location to Service Employee and Country/Region (ID: 102883)", the following error shows:

  • An entry already exists with the same key

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Open the configuration activity "Assign Plant and Storage Location to Service Employee and Country/Region" (ID: 102883).
  2. Attempt to assign multiple plants/storage locations to the same combination of Country + Sales Org. + Distr. Channel + Employee.
  3. Observe the error message: "An entry already exists with the same key".

Cause

It is not possible to assign the same combination of Country + Sales Organization + Distribution Channel + Employee to more than one entry.

Resolution

The current plant determination on service document works as bellow:

  1. The system gets the plant that is assigned to the Service Employee and Country in the configuration activity "Assign Plant and Storage Location to Service Employee and Country/Region" (ID: 102883).
  2. If the system cannot find a plant based on the 1st step, then it tries to get a plant that is assigned to Country in the configuration activity "Assign Plant and Storage Location to Service Employee and Country/Region" (ID: 102883).

Hence, if some employees are responsible for more than one plant or storage location, it's not advised to assign these employees via activity 102883, but instead, use the plant determination by regions through the 103352 activity.

See Also

KBA 3669855 - Error "Assign a Storage Location and Plant to the Service Employee" during Service Order Release in SAP S/4HANA Cloud Public Edition

Keywords

cbc, service employee, multiple storage locations, assign plant, storage location assignment, data already exists with the same key, 102883, 103352, plant determination, country region determination, sales organization, distribution channel, duplicate key, service order, assignment error , KBA , CRM-S4-SRV-SVO-2CL , S4CRM: Service Order (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions