Sub topic 3
Suppliers as Business Partners
This chapter assumes you know the basics of purchasing and accounts payable, can navigate the SAP Fiori launchpad or SAP GUI, and understand the organizational units from the previous chapter (company code, purchasing organization, purchasing group). It explains how a supplier is stored in SAP S/4HANA, how to create one, and which mistakes cause trouble later in the procure-to-pay flow.
Why suppliers are Business Partners
In SAP ECC, a supplier was a "vendor master record". It lived in its own tables (LFA1, LFB1, LFM1) and had its own transactions (XK01, MK01, FK01). A customer was a separate record in separate tables.
In S/4HANA, the Business Partner (BP) is the single leading object for suppliers and customers. A business partner is one central record for a person, organization, or group that you do business with. Roles on that record decide what the partner can do. A partner with a supplier role can receive purchase orders and invoices. The same partner can also hold a customer role, so you maintain name and address once.
The old vendor transactions are no longer the way to create suppliers. You use transaction BP (or the Fiori app Maintain Business Partner).
The data model
A business partner has data at three levels.
| Level | What it holds | Examples |
|---|---|---|
| General data | Identity, valid for all roles | Name, address, tax numbers, bank details |
| Company code data | Accounting data for one company code | Reconciliation account, payment terms, payment methods |
| Purchasing organization data | Purchasing data for one purchasing organization | Order currency, incoterms, purchasing group |
The company code and purchasing organization levels come from the organizational structure. A supplier that exists only in the general data cannot be used in a purchase order or invoice.
Roles
Roles control which screens and data levels are available.
- FLVN00 (Supplier) gives access to purchasing data per purchasing organization.
- FLVN01 (FI Supplier) gives access to accounting data per company code.
- 000000 (Business Partner, General) is the generic role with only general data.
For a supplier that you both order from and pay, you need both FLVN00 and FLVN01. This is the most common source of "supplier not found" problems: the partner has the accounting role but no purchasing role, or the reverse.
Business partner category and grouping
Each partner has a category: Organization, Person, or Group. Suppliers are normally Organizations.
Each partner also has a grouping. The grouping decides the number range and whether numbers are assigned internally or externally. For example, one grouping might create numbers automatically, and another lets you enter your own number for a supplier that already has a number in an external system.
Customer-vendor integration
The link between old vendor numbers and new business partner numbers is handled by Customer/Vendor Integration (CVI). CVI keeps the BP record synchronized with the underlying supplier tables that purchasing and accounting still read. It also matters for migration from ECC.
Key points:
- Each business partner with a supplier role is linked to a supplier number. In a standard setup, the numbers are often kept identical, so BP number and supplier number match.
- The supplier number is what purchase orders and invoices store, in the field LIFNR (a ten-character supplier number).
- If CVI is not configured correctly, creating a BP with a supplier role fails with a synchronization error.
Creating a supplier: worked example
This walkthrough uses the BP transaction. The data values are examples. Use values that exist in your system.
- Open transaction BP.
- Choose Person, Organization, or Group, then select Organization.
- Choose the role BP General and enter the grouping, name, search term, and address (street, city, postal code, country).
- Save. The partner now exists with general data only.
- Switch the role to FLVN01 (FI Supplier). On the Vendor: Company Code tab, enter the company code (for example 1710), a reconciliation account, and payment terms. Add payment methods in the payment transactions tab.
- Switch the role to FLVN00 (Supplier). Enter the purchasing organization (for example 1710), order currency, and payment terms. Save again.
After step 6, the supplier can receive purchase orders from purchasing organization 1710 and invoices in company code 1710.
Reading supplier data with ABAP SQL
The spine's database access examples revolve around purchasing tables, but you will often need to check supplier data directly. The tables below are still the central supplier tables, kept in sync with the BP by CVI.
| Table | Content |
|---|---|
| BUT000 | Business partner general data |
| LFA1 | Supplier general data |
| LFB1 | Supplier company code data |
| LFM1 | Supplier purchasing organization data |
| CVI_VEND_LINK | Link between business partner and supplier |
A short ABAP query shows how the pieces fit together.
DATA lv_lifnr TYPE lfa1-lifnr VALUE '0017300001'.
SELECT SINGLE lfa1~lifnr, lfa1~name1, lfb1~bukrs, lfm1~ekorg
FROM lfa1
LEFT OUTER JOIN lfb1 ON lfb1~lifnr = lfa1~lifnr AND lfb1~bukrs = '1710'
LEFT OUTER JOIN lfm1 ON lfm1~lifnr = lfa1~lifnr AND lfm1~ekorg = '1710'
WHERE lfa1~lifnr = @lv_lifnr
INTO @DATA(ls_supplier).
IF sy-subrc <> 0.
WRITE / 'Supplier not found.'.
ELSEIF ls_supplier-bukrs IS INITIAL OR ls_supplier-ekorg IS INITIAL.
WRITE / 'Supplier exists but lacks company code or purchasing organization data.'.
ELSE.
WRITE: / ls_supplier-lifnr, ls_supplier-name1.
ENDIF.This is a read only. Do not write into these tables. Create and change suppliers through BP, the released APIs, or the standard BP function modules, so that the BP and supplier records stay consistent.
Common errors
- Supplier cannot be selected in a purchase order. The purchasing organization data is missing, or the supplier has no FLVN00 role. Check the BP in the purchasing role.
- Invoice cannot be posted for the supplier. The company code data is missing, or the FI supplier role is missing. Check FLVN01 and the reconciliation account.
- Synchronization error when saving the BP. CVI is not set up, or a mandatory supplier field (such as the reconciliation account) is missing. Read the message log shown on save.
- Duplicate suppliers. The same legal entity was created twice with different numbers. Search for the tax number before creating a new partner.
- Blocked supplier. A central or company code level block stops orders or payments. Check the block indicators on the relevant tab.
Blocking and deletion
You do not usually delete a supplier that has transactions. Instead you set a block.
- A central posting block stops postings for all company codes.
- A purchasing block stops new purchase orders.
- A payment block stops payments.
- A deletion flag marks the supplier for archiving, which only works once no open items remain.
Blocks keep history intact, which matters for audits and for the document flow covered in later chapters.
How suppliers connect to the rest of the process
- The purchase order stores the supplier number and the purchasing organization.
- Info records and contracts link the supplier to a material (next chapters).
- Invoice verification uses the company code data, including payment terms and tax settings.
- The payment run uses payment methods and bank data from the FI supplier role.
Exercise
A new supplier was created in transaction BP with the FI Supplier role (FLVN01) for company code 1710. A buyer cannot enter the supplier in a purchase order for purchasing organization 1710. What is the likely cause and the fix?
Show answer
The partner has no purchasing role (FLVN00) and no purchasing organization data for 1710. Open the partner in transaction BP, switch to the role Supplier (FLVN00), enter purchasing organization 1710 with its order data (such as order currency), and save.
Exercise
Why should you not insert rows directly into LFA1 to create a supplier in S/4HANA?
Show answer
The business partner is the leading object. Direct inserts skip the BP record and CVI synchronization, so the supplier and BP data become inconsistent. Create suppliers through BP or the released APIs.