Sub topic 15
Migrating existing customers and suppliers
This chapter assumes you know the CVI link tables from the earlier chapters and the difference between a business partner (BP) number and a customer or vendor number. It also assumes you have seen a system conversion or a data load.
Two migration paths
Which path you take depends on how you move to SAP S/4HANA.
| Path | Starting point | How partners are created |
|---|---|---|
| System conversion | Existing ERP system with KNA1 and LFA1 data | CVI synchronization creates a BP for every customer and vendor |
| New implementation | Empty S/4HANA system | The SAP S/4HANA migration cockpit loads partners from files or a staging database |
In both paths the result is the same. Each BP holds the general data and roles, and CVI keeps the customer and supplier tables in sync.
Conversion: the order of work
The conversion has a fixed order. The synchronization must finish in the source system before the technical conversion starts.
- Pre-checks. The S/4HANA pre-transition checks report customers and vendors that cannot be converted, such as records with missing mandatory data.
- Configuration. Activate CVI and define the groupings and number ranges. Also define the mapping from account groups to BP groupings and from account groups to roles. Chapter "Configuring groupings, number ranges and role mapping" covers these settings.
- Synchronization. Run the CVI synchronization cockpit (transaction
MDS_LOAD_COCKPIT). It creates a BP and a link entry for each customer and vendor. - Completeness check. Run
CVI_COMPLETENESS_CHECKand fix everything it reports.
Number handling
The safest setup keeps the BP number equal to the old customer or vendor number. This works only if the number ranges do not overlap in a harmful way. Customer 1000 and vendor 1000 are two different companies in the old system. They cannot both become BP 1000, so one of them receives a new number.
The conversion can also merge a customer and a vendor into one BP. This needs an explicit link between the two old records. Without that link, the same company becomes two partners.
Checking for gaps
After synchronization, find customers that have no link to a business partner:
REPORT z_cvi_missing_links.
SELECT k~kunnr
FROM kna1 AS k
LEFT OUTER JOIN cvi_cust_link AS c
ON c~customer = k~kunnr
WHERE c~customer IS NULL
INTO TABLE @DATA(lt_missing)
UP TO 100 ROWS.
IF lt_missing IS INITIAL.
WRITE / 'Every customer is linked to a business partner.'.
ELSE.
LOOP AT lt_missing INTO DATA(ls_missing).
WRITE / ls_missing-kunnr.
ENDLOOP.
ENDIF.For vendors, use the vendor link table and LFA1 in the same way.
Common errors
- Starting the conversion before the synchronization is complete. The conversion then stops with a check error.
- Number range conflicts. An external range in the BP grouping is too narrow for the old numbers.
- Missing role mapping. An account group without a mapped role produces a BP that cannot be used as a customer or supplier.
- Old records with incomplete addresses or missing country keys. These fail the mandatory-field checks.
Exercise
A source system has customer 2000 and vendor 2000, which are different companies. Both ranges are kept as external numbers. What is the problem, and what do you do?
Show answer
Both records cannot become BP 2000. Give one of them a new BP number, usually by assigning it a BP grouping with a separate number range. Then check that the customer and vendor links point to the correct partner.