OK, I had never tried this manual assignment of the ID type CRM002, but obviously this does not work.
So you have created a customer number in ERP with the same name as the vendor. And you need to CIF both. In that case you need this: Business Partner ID Mapping - Warehouse Structure - SAP Library
Brgds
Juergen