Sub topic 5
Business partner as the single model for customers and suppliers
This chapter assumes you know what master data is, how company codes and sales organizations are structured, and basic relational concepts such as keys and joins. It covers how S/4HANA represents customers and suppliers.
One model instead of two
Older SAP ERP releases kept customers (SD and FI) and vendors (MM and FI) as separate master records. A company that both sold to and bought from the same firm had to maintain two records, and the data could drift apart.
S/4HANA uses the business partner (BP) as the single leading object. A BP is a person, organization, or group. Its role decides how it takes part in processes. The same BP can be a customer, a supplier, or both.
Transaction BP is the entry point. The classic transactions XD01 and XK01 are not supported for creating records in S/4HANA.
Roles and views
A BP has a general part and role-specific parts.
- General data: name, address, communication data, tax numbers, and bank details. It is entered once.
- Customer data: the FI customer role holds reconciliation account data per company code. The sales role holds data per sales area, such as payment terms and shipping conditions.
- Supplier data: the FI vendor role holds company-code data. The purchasing role holds data per purchasing organization, such as order currency.
The BP number identifies the partner. Customer and vendor numbers still exist as KUNNR and LIFNR, because SD, MM, and FI documents refer to them.
Customer-vendor integration
In S/4HANA, a customer or supplier is created by first creating a BP and then extending it with the matching role. Customer-vendor integration (CVI) keeps the classic tables in sync. When you save a BP, CVI generates or updates the KNA1 (customer) or LFA1 (supplier) record. The link between a BP and these records is stored in tables such as CVI_CUST_LINK and CVI_VEND_LINK.
In practice, the BP number and the customer or vendor number are often set to match, using number-range settings. This is a configuration choice. Check it before you assume the numbers are equal.
Common errors
- Role missing: a sales order fails because the BP has no customer role for the sales area. Extend the BP with the sales role. Do not change the order.
- Wrong table for lookups: reading
KNA1alone ignores BP data such as relationships. Start fromBUT000(BP general data) when you need BP attributes. - Incomplete CVI setup in migrations: loading customers straight into
KNA1skips the BP layer. Use the migration tools that create BPs. - Assuming one number: a BP can have a customer number and a supplier number that differ. Map them through the link tables.
SELECT FROM but000
FIELDS partner, type, name_org1
WHERE partner = '0001000123'
INTO TABLE @DATA(bp_header).Exercise
A company buys from and sells to the same firm. How should this be modeled in S/4HANA, and what must exist before a sales order can be created for it?
Show answer
Create one business partner and give it both a supplier role and a customer role. Before a sales order can be created, the BP needs the customer role, with sales area data for the order's sales area and company code data in FI. CVI then maintains the matching KNA1 record.