Sub topic 5
Business partner as the single model for customers and suppliers
This chapter assumes you know the organizational units from earlier chapters (client, company code, sales organization, purchasing organization) and have seen the customer and supplier master data that Sales and Procurement depend on. It also assumes basic relational concepts: tables, keys and joins.
Why one model
In older SAP ERP releases, a customer lived in table KNA1 and a supplier lived in LFA1. Each had its own transaction codes, number ranges and address data. A company that both sold to and bought from the same firm kept two unrelated records. Names and addresses drifted apart, and netting receivables against payables meant manual cross-references.
S/4HANA replaces this with the business partner (BP). A business partner is a single master record for any person, organization or group that your company deals with. The BP holds the data that is the same no matter which relationship you have with it, such as name, address, tax numbers and bank details. What the partner does for you (buys, sells, or both) is expressed by roles.
Business partner is the only supported way to maintain customers and suppliers in S/4HANA. The transactions for the old model (XD01, XK01 and their relatives) are obsolete. You use transaction BP or the Fiori app Manage Business Partner Master Data.
Partner categories and groupings
Every BP has a category, which decides what general data it carries:
| Category | Code in BUT000-TYPE | Typical use | Name fields used |
|---|---|---|---|
| Person | 1 | Sole trader, contact person | First name, last name |
| Organization | 2 | Company, customer, supplier | Name 1 to Name 4 |
| Group | 3 | Household, shared account | Group name |
A grouping (field BU_GROUP) is a second classification. It controls which number range the BP gets and whether the number is assigned internally or typed by the user. It also acts as a template for which fields are required. Groupings are configuration, so each system defines its own list.
The data layers of a business partner
A partner's data sits on three levels. The levels match the organizational structure from the earlier chapter.
- General data, stored once per partner: name, addresses, communication data, identification numbers, bank accounts. The central table is BUT000. Addresses are held in the central address tables (ADRC) and linked through BUT020.
- Customer or supplier data per company code: reconciliation account, payment terms, dunning, payment methods. These are the equivalents of KNB1 and LFB1.
- Sales area or purchasing organization data: for a customer, sales organization, distribution channel and division, with pricing, shipping and partner functions (KNVV and related tables). For a supplier, purchasing organization data with order currency and incoterms (LFM1).
The roles decide which of these layers you can maintain.
Roles
A role (BP role) is a function a partner plays. It is stored in table BUT100. Roles that matter most for this tutorial:
| Role | Name | Layer it unlocks |
|---|---|---|
| FLCU00 | Customer (FI) | Company code data |
| FLCU01 | Customer | Sales area data |
| FLVN00 | Supplier (FI) | Company code data |
| FLVN01 | Supplier | Purchasing organization data |
| BUP003 | Employee | Links to HR data |
| 000000 | General partner | General data only |
The pairs matter. A partner needs FLCU00 to be posted to in Finance and FLCU01 to appear on a sales order. A partner that has FLVN00 and FLVN01 can receive purchase orders and be paid. If you add all four roles to one record, you have a firm that is both customer and supplier, with one name and one address.
Customer-vendor integration
The old tables did not disappear. Sales, Procurement and Finance code still reads KNA1, KNB1, KNVV, LFA1 and similar tables. The bridge is customer-vendor integration (CVI). When you save a BP that has a customer or supplier role, CVI creates or updates the matching record in the legacy tables, so existing logic keeps working.
The link between the two worlds is kept in two tables:
- CVICUSTLINK maps the BP's internal key (PARTNER_GUID) to a customer number.
- CVIVENDLINK does the same for suppliers.
The recommended setup gives the BP number and the customer or supplier number the same value. With identical number ranges, a user sees one number everywhere, and documents like sales orders show the same ID that transaction BP does.
Reading the model in the database
The first query lists partners with their customer and supplier roles. It joins the general table BUT000 to the role table BUT100.
REPORT zbp_roles.
SELECT FROM but000
INNER JOIN but100 ON but100~partner = but000~partner
FIELDS but000~partner,
but000~type,
but000~bu_group,
but000~name_org1,
but100~rltyp
WHERE but100~rltyp IN ( 'FLCU00', 'FLCU01', 'FLVN00', 'FLVN01' )
ORDER BY but000~partner
INTO TABLE @DATA(bp_roles)
UP TO 100 ROWS.
cl_demo_output=>display( bp_roles ).A partner with all four roles appears four times, once per role. That repetition shows the one-to-many link between a partner and its roles.
The second query uses CVICUSTLINK to find the customer number behind each partner.
REPORT zbp_customer_link.
SELECT FROM but000
INNER JOIN cvi_cust_link ON cvi_cust_link~partner_guid = but000~partner_guid
FIELDS but000~partner,
cvi_cust_link~customer,
but000~name_org1
ORDER BY but000~partner
INTO TABLE @DATA(customers)
UP TO 100 ROWS.
cl_demo_output=>display( customers ).If PARTNER and CUSTOMER differ for many rows, your number ranges are not aligned. That is not an error, but it makes support harder.
Relationships between partners
BP also models how partners relate to each other. A business partner relationship, stored in BUT050, ties two partners together with a type such as "has contact person" or "is subsidiary of". A contact person is a separate person-category partner linked to the company. Sales documents use a different but related idea, partner functions such as sold-to, ship-to, bill-to and payer. These point to customer records with the matching role and are covered with the Sales chapter.
Common errors and gotchas
- Missing role. A customer cannot be used in a sales order if FLCU01 is missing or has no sales area data. A supplier cannot be posted to if FLVN00 is missing for the company code. Error messages usually mention a missing "customer master record" even though the BP exists. Check roles first.
- Extending is not creating. To make an existing customer also a supplier, add the supplier roles to the same BP. Creating a second BP produces the duplicate this model is meant to remove.
- Number range mismatch. If the grouping uses internal numbering for the BP but the customer side uses external numbering, CVI cannot make the numbers equal.
- Direct writes to legacy tables. Inserting into KNA1 or LFA1 yourself bypasses CVI and leaves the BP side missing. Use the BP APIs or BAPIs, not table updates.
- Migration from ECC. Before conversion, the CVI synchronization step must create a BP for every existing customer and supplier. Records that fail consistency checks, such as incomplete addresses or duplicate keys, block the upgrade until you fix them.
Summary of the model
| Question | Answer |
|---|---|
| What is shared? | Name, addresses, identification, bank data (BUT000, ADRC, BUT020) |
| What is role-specific? | Company code, sales area and purchasing organization data |
| How are roles stored? | Table BUT100, with role codes such as FLCU01 and FLVN01 |
| How do legacy tables stay valid? | CVI synchronizes them from the BP |
| How do I find the customer number for a BP? | Join through PARTNER_GUID in CVI_CUST_LINK |
Exercise
A company already exists in your system as a supplier (BP 100045 with roles FLVN00 and FLVN01). The sales team now wants to sell to it. What should you do, and which roles must the record have before it can be used on a sales order?
Show answer
Open the existing BP 100045 in transaction BP and add the customer roles. Do not create a second partner. FLCU00 supplies the company code data for Finance, and FLCU01 supplies the sales area data that a sales order needs. The sales area data (sales organization, distribution channel, division) must also be filled in. The partner then holds both supplier and customer roles with one shared name and address.
Exercise
A user reports that a customer created in transaction BP cannot be selected on a sales order, although the partner is visible in BP. Name two checks you would make in the data model, and the table you would use for the first one.
Show answer
First, check the roles in BUT100 for FLCU01 (and FLCU00 for Finance postings). Second, check that sales area data exists for the sales organization, distribution channel and division used on the order. You can also confirm in CVICUSTLINK that a customer number was generated for the partner.