Sub topic 5
Roles that turn a partner into a customer or supplier
This chapter assumes you know what a business partner is, the difference between person, organization and group categories, and the basics of customer and vendor master data in SAP ERP. It covers business partner roles: what they are, which ones matter, and the errors that occur when they are missing.
What a role does
A business partner is one record that holds general data such as name, address and bank details. On its own, it is neither a customer nor a supplier. A business partner role defines in which business context the partner is used. The role also decides which screens and data sets transaction BP shows.
A partner can have many roles at the same time. The general data is stored once and shared by all roles.
Roles you will use most
| Role | Technical ID | Purpose |
|---|---|---|
| Business Partner (Gen.) | 000000 | Default role with general data only |
| FI Customer | FLCU00 | Customer data in company codes (accounting) |
| Customer | FLCU01 | Customer data in sales areas |
| FI Vendor | FLVN00 | Supplier data in company codes (accounting) |
| Supplier | FLVN01 | Supplier data for purchasing organizations |
The role FLCU00 stores the accounting view of a customer. FLCU01 stores the sales view. FLVN00 and FLVN01 do the same for suppliers. A customer who is invoiced and delivered to needs both FLCU00 and FLCU01.
How roles drive CVI
Adding a customer or supplier role is the trigger for Customer/Vendor Integration (CVI). When you save a partner with a role such as FLCU00 or FLVN00, CVI creates the matching customer or supplier record. It uses the same number as the partner if the number ranges allow it. Without such a role, the partner stays a plain partner and no customer or supplier exists.
Adding a role in transaction BP
- Open transaction BP and display or change an existing partner.
- Choose Change in BP role and select the role, for example FI Customer.
- Fill the role-specific data, such as the company code and reconciliation account.
- Save.
You can also create the partner directly with a role. The API example in the Topic Spine does this in one call by sending FLCU00 in to_BusinessPartnerRole.
Common errors
- The role is missing from the selection. The role may not be allowed for the partner's grouping or category. Check the configuration, which a later chapter covers.
- No customer exists after saving. The partner only has the general role 000000. Add a customer role.
- A sales order rejects the partner. The partner has FLCU00 but not FLCU01, so no sales area data exists.
- A role cannot be added in company code data. Required fields such as the reconciliation account are empty.
Check the result
You can confirm that CVI created a customer by joining the partner table to the link table:
SELECT b~partner, c~customer
FROM but000 AS b
INNER JOIN cvi_cust_link AS c
ON c~partner_guid = b~partner_guid
WHERE b~type = '2'
INTO TABLE @DATA(lt_customers)
UP TO 10 ROWS.A partner with a customer role appears in the result. A partner with only role 000000 does not.
Exercise
A business partner has only the roles 000000 and FLCU00. A user wants to create a sales order for it and fails. Which role is missing, and why?
Show answer
FLCU01 (Customer). FLCU00 holds only company code (accounting) data. The sales order needs sales area data, which is stored under the Customer role FLCU01.
Exercise
Why does the join of BUT000 and CVICUSTLINK not return a partner that has only role 000000?
Show answer
No customer role was added, so CVI never created a customer record and the link table has no entry for that partner.