I would like to conduct a CVI conversion: Vendor to business partner, and they should have the same number. Customer to business partner should also have the same number but with prefix 'xx' at the beginning.
Example:
Vendor 1234 -> BP 1234
Customer 1234 -> BP **xx**1234
Can this be done only with customizing or do you have to implement it in some BADI? If so, which BADI should I use, CVI_CUSTOM_MAPPER?
To achieve like this Vendor 1234 -> BP 1234 and Customer 1234 -> BP xx1234, you can make use of BAdI (Business Add-In).
However this can be done through customizing, but you're looking for specific number formats so implementing it in BAdI, CVI_CUSTOM_MAPPER, gives you more flexibility and control.
Great, you've created a BAdI implementation for CVI_CUSTOM_MAPPER. If your implementation is not being triggered, ensure that it is activated and correctly registered in your system and check if there are any conditions or configurations in your implementation that might prevent it from being executed.
To activate your own BAdI implementation, go to SPRO -> Cross-Application Components -> Master Data Synchronization -> Custom/Vendor Integration -> Business Partner Settings -> Business Add-Ins (BAdIs). There, deactivate the standard BAdI CVI_MAP_LEGAL_ENTITY and activate your own implementation.
If you're still having trouble, you can debug your BAdI implementation to resolve it.
Good luck.