Symptom
While simulating or migrating the Migration Object "Product", the following errors are thrown:
- System error occurs when calling function module in target system - DMC_RT_MSG 231
- System error (portion 0000000001, conversion object Z_PRODUCT_XXX, at HHMMSS) - DMC_RT_MSG 39.
- A row already exists with this key (conversion object Z_PRODUCT_XXX) - DMC_RT_MSG 41.
Environment
SAP S/4HANA Cloud Public Edition.
Reproducing the Issue
- Open the Migration Project.
- Select the Migration Object "Product".
- Proceed with the steps until simulation/migration is complete.
- Check the errors of the failed simulation/migration.
Cause
Although the template file has different values for the 'Key Fields' in all sheets. These source values have then been mapped to the same Target Value during the Mapping process. As a result, the system interprets the key field combinations as identical.
For example:
In the sheet 'Alternative Units of Measure' you have the values below:
| Product Number | Alternative Unit of Measure (ISO Format) |
| 1234567 | KG |
| 1234567 | BAG |
However in the Mapping Task of 'Mapping of ISO Code for Unit of Measurement' the values below are seen:
| Source Value | S/4HANA Target Value |
| KG | KGM |
| BAG | KGM |
After mapping, both entries result in the same key field combination. Therefore, the system interprets them as duplicate records.
Each record must have a unique combination of key field values. If all key field values are identical, the system treats the entries as duplicates, which leads to the reported error.
Resolution
- Review the key fields in the migration template file.
- Check the corresponding mapping tasks.
- Ensure that the Source Values used in 'Key fields' are not mapped to the same Target Value when the remaining key field values are identical.
- Adjust the mapping or source data to maintain unique key combinations.
- Re-run the simulation.
For example:
In the mapping task Mapping of ISO Code for Unit of Measurement', the values are adjusted as follows:
| Source Value | S/4HANA Target Value |
| KG | KGM |
| BAG | BG |
After assigning distinct Target Values, the key field combination remains unique. As a result, the system no longer interprets the records as duplicates, and the error is resolved.
See Also
Keywords
System error occurs when calling function module in target system, migration cockpit, alternative units of measure, AUM sheet, duplicate target unit, unit of measurement mapping, Z_PRODUCT_XXX materials migration, product migration, duplicate inputs, value mapping, conversion object, runtime error, DMC_RT_MSG 41, DMC_RT_MSG 231, DMC_RT_MSG41, DMC_RT_MSG231, DMC_RT_MSG 39, DMC_RT_MSG39. , KBA , CA-LT-MC , S/4HANA Migration Cockpit , CA-GTF-MIG , SAP S/4HANA Data Migration Cockpit Content , Problem
SAP Knowledge Base Article - Public