Sub topic 6
Business Partner as the Single Master Data Model
This chapter assumes you know the FI, MM and SD modules, and that you have used customer (XD01) and vendor (XK01) master data in ECC. It also assumes you can read basic ABAP. The goal is to explain what Business Partner (BP) is, how it replaces the old masters, and which errors appear during conversion.
The ECC problem: two masters for one company
In ECC, a company that both buys from you and sells to you needs two records. The customer lives in KNA1 and the vendor lives in LFA1. Each has its own number, its own address data, and its own maintenance transactions. Keeping name, address and bank details in sync is manual work, and the copies drift apart.
S/4HANA fixes this with the Business Partner. A BP is one record for a person, organization or group. Customer and vendor are roles attached to that record.
How the model works
The BP holds the general data once: name, addresses, communication data, and bank details. Roles then add the data specific to each business function.
- A role such as FLCU00 (customer, FI) or FLVN00 (vendor, FI) opens the screens and tables for that function.
- A BP number identifies the partner across all roles.
- The old KNA1 and LFA1 tables still exist. They are filled from the BP, so existing reports and code keep working.
Transaction changes
In S/4HANA, the transactions XD01, XK01 and their relatives are no longer the way to maintain these records. Use transaction BP instead. SAP's simplification items describe this change, and you can look up the exact list for your release in the Simplification Item Catalog.
Reading BP data in ABAP
Reading a customer's BP number is a lookup in the link table CVICUSTLINK. The following code assumes you have a customer number in lv_kunnr.
DATA lv_kunnr TYPE kunnr VALUE '0000100000'.
SELECT SINGLE partner_guid
FROM cvi_cust_link
WHERE customer = @lv_kunnr
INTO @DATA(lv_guid).
IF sy-subrc = 0.
SELECT SINGLE partner, name_org1
FROM but000
WHERE partner_guid = @lv_guid
INTO @DATA(ls_bp).
ENDIF.The conversion step: Customer/Vendor Integration
During a system conversion, existing customers and vendors must become Business Partners. The Customer/Vendor Integration (CVI) does this. Before conversion you run synchronization to create a BP for each customer and vendor. Plan time for this step.
The usual setting is to give each BP the same number as the old customer or vendor, where the number ranges allow it. If a customer and a vendor represent the same company, you can merge them into one BP.
Common errors
- Missing BP for a customer. The conversion check stops with errors if some customers have no BP. Run the CVI synchronization and fix the inconsistent records first.
- Number range conflicts. Customer and vendor numbers can overlap. Define the BP number ranges and the mapping before you start.
- Custom code that writes to KNA1 or LFA1 directly. Direct table updates bypass the BP, so the data is not consistent. Use the supported APIs instead.
- Duplicates. A company that exists as both customer and vendor may become two BPs. Decide up front whether to merge them.
Exercise
A customer and a vendor in ECC are the same legal company. How does S/4HANA let you represent them, and what must you check before conversion?
Show answer
Both can be roles of a single Business Partner, so name and address are stored once. Before conversion, run the CVI synchronization, check that number ranges do not conflict, and decide whether to merge the customer and vendor into one BP.