Sub topic 6
Business Partner as the Single Master Data Model
This chapter assumes you know the FI, CO, MM and SD modules, you have created customers or vendors in ECC, and you can read basic ABAP and open SQL. It covers how S/4HANA replaces separate customer and vendor masters with one object, how the old tables stay in sync, and what that means for conversion projects and custom code.
The ECC baseline: two masters, one real-world party
In ECC, the same company is often stored twice. A customer is created with transactions such as XD01 or VD01 and lives in tables such as KNA1 (general data), KNB1 (company code data) and KNVV (sales area data). A vendor is created with XK01 or MK01 and lives in LFA1, LFB1 and LFM1. A company that both buys from you and sells to you needs two records with two numbers. Name, address and bank data are kept twice and drift apart.
SAP did offer a Business Partner object in ECC, mainly in industry solutions and CRM-related scenarios. Most ECC systems never used it for plain customers and vendors.
What changes in S/4HANA
In S/4HANA the Business Partner (BP) is the leading master data object for customers and vendors. You create and maintain both through transaction BP. The old customer and vendor transactions (XD01, XK01 and similar) are not used for maintenance and are redirected to BP.
A BP is one real-world party, such as a person, an organization or a group. Its general data is stored once. What it does for you is expressed through roles:
- A customer is a BP with a customer role, typically FLCU00 (FI customer) and FLCU01 (customer, sales-related data).
- A vendor is a BP with a vendor role, typically FLVN00 (FI vendor) and FLVN01 (supplier).
- One BP can hold both kinds of role. A company that is a customer and a vendor then has one name, one address and one set of identification data.
| Aspect | ECC 6.0 | S/4HANA |
|---|---|---|
| Leading object for customers and vendors | Customer master and vendor master | Business Partner |
| Maintenance transaction | XD01, XK01, VD01, MK01 and others | BP |
| Customer who is also a vendor | Two records, linked by fields such as KNA1-LIFNR | One BP with two roles |
| General data (name, address) | Stored in KNA1 and LFA1 separately | Stored once in BP tables such as BUT000 |
| Contact persons | Separate contact person records (for example in KNVK) | BP of category person, linked by a relationship |
Tables: the new store and the compatibility layer
The BP data lives in tables whose names start with BUT. The most useful ones are:
- BUT000 holds general data. Its key is PARTNER, the BP number. It also has a technical key, PARTNER_GUID, and a field TYPE for the BP category (1 person, 2 organization, 3 group).
- BUT100 holds the roles assigned to each BP.
- BUT020 links a BP to its addresses.
- BUT0ID holds identification numbers such as tax or registration numbers.
KNA1, LFA1 and their company code and sales data tables still exist. Standard SAP applications, such as sales order processing and invoice posting, still read customer and vendor data from them. This works because of Customer/Vendor Integration (CVI). CVI is a synchronization layer. When you save a BP that has a customer or vendor role, CVI writes the matching KNA1 or LFA1 record (and the related tables). Two link tables record the relationship:
- CVICUSTLINK maps PARTNER_GUID to a customer number.
- CVIVENDLINK maps PARTNER_GUID to a vendor number.
The direction matters. The BP is the source, and KNA1 and LFA1 are derived. If code writes directly to KNA1 or LFA1, the BP tables do not learn about the change, and the two sides go out of sync.
Looking up the BP behind a customer
The link table lets you go from a classic customer number to its BP. This report finds the BP number, category and grouping for a customer.
REPORT zdemo_bp_lookup.
PARAMETERS p_kunnr TYPE kunnr OBLIGATORY.
SELECT SINGLE b~partner, b~type, b~bu_group
FROM cvi_cust_link AS l
INNER JOIN but000 AS b
ON b~partner_guid = l~partner_guid
WHERE l~customer = @p_kunnr
INTO @DATA(ls_bp).
IF sy-subrc = 0.
WRITE: / 'BP number:', ls_bp-partner,
/ 'Category:', ls_bp-type,
/ 'Grouping:', ls_bp-bu_group.
ELSE.
WRITE: / 'No Business Partner linked to this customer.'.
ENDIF.For vendors, use CVIVENDLINK and its VENDOR field in the same way.
Number ranges and the same-number recommendation
A BP has its own number, and the customer or vendor it creates has another. The two numbers can differ, which makes support harder. The common recommendation is to keep them identical. You do this in customizing by assigning number ranges so the BP number, customer number and vendor number come from compatible ranges, and by using the same-number option in the CVI settings. Decide this early. Changing number logic after go-live is painful, and reports, interfaces and users all refer to these numbers.
The BP grouping (field BU_GROUP) controls which number range a new BP uses. It also controls the screen layout in some setups. In a conversion, existing customer and vendor accounts need a grouping and number range that preserve their old numbers.
Impact on a system conversion
Business Partner is not optional in S/4HANA. A system conversion from ECC therefore has a dedicated step. Every existing customer and vendor must get a BP, and the CVI links must exist before the technical conversion runs. The practical sequence looks like this:
- Review the relevant simplification item (the BP approach item is described in SAP Note 2265093; confirm the current note and steps in the SAP Support Portal).
- Configure CVI and the number ranges, including any mapping from account groups to BP groupings and from customer or vendor fields to BP fields.
- Run the pre-check that SAP provides for CVI. It finds records that cannot be converted, such as inconsistent address data, missing mappings and duplicate links.
- Clean up the data in ECC and rerun the pre-check until it is clean.
- Run the synchronization that creates BPs for existing customers and vendors, then proceed with the technical conversion.
In a new implementation, you do not convert anything. You load BPs directly, usually through the SAP S/4HANA Migration Cockpit. In a selective data transition, you must plan which master data subsets get BPs and how numbers are kept stable.
Common errors and gotchas
- Direct table writes. Custom programs that INSERT or UPDATE KNA1 or LFA1 bypass the BP. Replace them with BP maintenance APIs. For creating or changing a BP together with its customer and vendor data, SAP provides the class CLMDBPMAINTAIN. The older function module BAPIBUPACREATEFROM_DATA covers general data.
- Direct reads are usually fine. Reading KNA1 or LFA1 still works in most cases. The risk is in writes and in code that assumes the customer number is the master key for all party data.
- Missing CVI links. A customer that exists in KNA1 but has no row in CVICUSTLINK is invisible to BP transactions. This is the main finding of the pre-check.
- Different numbers on each side. If BP and customer numbers differ, interface mappings and reports must translate between them. Plan this once, centrally.
- Contact persons. Contact persons become BPs of category person, linked to the organization by a relationship. Custom code that reads KNVK directly needs a review.
- Authorizations. Users now need authorizations for BP transactions and roles, not only for the old customer and vendor objects. Role redesign is part of the project.
Exercises
Exercise
A custom report inserts new rows directly into LFA1 to create vendors during an interface load. After conversion to S/4HANA, users cannot find these vendors in transaction BP. What is the cause, and what should the report do instead?
Show answer
The rows exist only in the classic vendor table. No Business Partner was created and there is no entry in CVIVENDLINK, so BP knows nothing about them. The report should create the vendor through a BP maintenance API, such as CLMDBP_MAINTAIN, with the vendor role data. CVI then writes LFA1 and the related tables itself.
Exercise
Which tables would you join to find the BP category (person, organization or group) for a given vendor number, and on which field?
Show answer
Join CVIVENDLINK to BUT000 on PARTNERGUID, filter CVIVEND_LINK-VENDOR on the vendor number, and read BUT000-TYPE (1 person, 2 organization, 3 group).