Message type: E = Error
Message class:  CNV_DMC_SIN - Messages for s-innovations migration 
Message number: 342
Message text: Unexpected legacy contract number &1 in the company code &2
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message CNV_DMC_SIN342, which indicates "Unexpected legacy contract number &1 in the company code &2," typically arises during data migration processes, particularly when using the SAP Data Migration Cockpit (DMC) or similar tools. This error suggests that the system has encountered a legacy contract number that it did not expect to find in the specified company code.
Cause: Data Inconsistency: The legacy data being migrated may contain contract numbers that do not match the expected format or range defined in the target SAP system.
Configuration Issues: The company code may not be properly configured to recognize or process the legacy contract numbers. Mapping Errors: There may be issues with the mapping of legacy data to the new system, leading to unexpected contract numbers being referenced. Missing Data: The contract number may not exist in the target system, or there may be missing entries in the migration data.
Solution: Data Validation: Check the legacy data for
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
CNV_DMC_SIN341 Record &1 was imported
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
CNV_DMC_SIN340 Record &1 was checked without errors
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
CNV_DMC_SIN343 Legacy contract number &1 already exists in company code &2
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
CNV_DMC_SIN344 The plant can not be empty in the selected set &1
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.