Sub topic 11
One partner as both customer and supplier
This chapter assumes you know how roles, CVI link tables and the customer and supplier data levels work. It covers what happens when one business partner holds both a customer role and a supplier role.
Why one record
In SAP ERP, a company that bought from you and sold to you needed two master records, such as a customer and a vendor. Their names, addresses and bank details were maintained twice and drifted apart. In SAP S/4HANA you keep one business partner and add roles to it.
What is shared and what is separate
The shared part is the general data. It includes name, address, communication data, tax numbers and bank details. It is stored once on the partner (BUT000 and related tables) and is valid for every role.
The role-specific part stays separate:
| Data | Customer side | Supplier side |
|---|---|---|
| Role (FI) | FLCU00 | FLVN00 |
| Role (sales or purchasing) | FLCU01 | FLVN01 |
| Company code data | KNB1 | LFB1 |
| Organization data | Sales area (KNVV) | Purchasing organization (LFM1) |
The two sides keep their own reconciliation accounts, payment terms and so on. The partner shares only its identity.
How the dual role is created
You do not create a second partner. Open the existing partner in transaction BP, switch to change mode and add the missing role, for example FLVN00. Then maintain the supplier data for that role. When you save, CVI creates the supplier record and an entry in the vendor link table. The customer record is unchanged.
Keeping the numbers aligned
If the customer and supplier numbers equal the business partner number, people can find the same company everywhere without a lookup. The usual setup is to give the grouping an external number range and to use the same number for the customer and supplier. This only works if the number ranges are compatible in customizing. If they are not, the partner can end up with different customer and supplier numbers, and CVI will not warn you.
Checking the result
This query lists partners that are both customer and supplier:
SELECT b~partner, c~customer, v~vendor
FROM but000 AS b
INNER JOIN cvi_cust_link AS c
ON c~partner_guid = b~partner_guid
INNER JOIN cvi_vend_link AS v
ON v~partner_guid = b~partner_guid
WHERE b~type = '2'
INTO TABLE @DATA(lt_dual)
UP TO 10 ROWS.A partner that has only one link entry has only one of the two roles.
Common mistakes
- Creating a second partner for the same company instead of adding a role. This duplicates the general data and removes the benefit of one record.
- Assuming that blocking the customer also blocks the supplier. Posting blocks are set per side and per level.
- Changing a shared address and forgetting that it affects documents on both sides.
Exercise
A partner already has the role FLCU00 and FLCU01. You add FLVN00 and FLVN01 and save. Which link table gets a new entry, and what do the customer's sales area data (KNVV) look like afterwards?
Show answer
CVIVENDLINK gets a new entry, because CVI creates the supplier record. The customer's sales area data in KNVV stays unchanged. The general data is shared, but nothing is copied between the customer and supplier sides.