Sub topic 10
Supplier data: general, company code and purchasing organization
This chapter assumes you know the business partner roles and how CVI links a partner to a supplier record. It also assumes you know what a company code and a purchasing organization are. It shows where each kind of supplier data is stored and which role makes it editable.
Three levels of supplier data
In SAP ERP, a vendor master record had general data, company code data and purchasing organization data. S/4HANA keeps this structure. The business partner holds the data entered in transaction BP. CVI copies it into the classic supplier tables, so existing purchasing and accounting code keeps working.
| Level | Key | What it holds | Classic table | BP role that exposes it |
|---|---|---|---|---|
| General | Supplier | Name, address, tax numbers, bank details | LFA1, LFBK | Any supplier role |
| Company code | Supplier + company code | Reconciliation account, payment terms, payment methods, withholding tax | LFB1, LFBW | FLVN00 (Supplier, FI) |
| Purchasing organization | Supplier + purchasing organization | Order currency, payment terms, Incoterms, invoice verification settings | LFM1 | FLVN01 (Supplier) |
General data is entered once and applies to every company code and purchasing organization. The other two levels exist once for each organization you extend the supplier to.
How roles control the levels
The role decides which tabs appear in transaction BP.
- Create or open the partner and switch to role FLVN00. The tabs Company Code Data, Payment Transactions and Correspondence become available. Add a company code and fill in the reconciliation account.
- Switch to role FLVN01. The Purchasing tab becomes available. Add a purchasing organization and fill in the order currency and terms.
A partner with only FLVN00 can be posted to in accounting but cannot receive purchase orders. A partner with only FLVN01 can have purchase orders, but invoices for it cannot be posted in any company code.
Checking the result in the tables
After you save, CVI writes the supplier number to the link table and the data to the classic tables. This report lists suppliers with their company code data.
REPORT z_list_vendor_company_codes.
SELECT l~lifnr, b~bukrs, b~akont
FROM lfa1 AS l
INNER JOIN lfb1 AS b
ON b~lifnr = l~lifnr
INTO TABLE @DATA(lt_vendors)
UP TO 10 ROWS.
cl_demo_output=>display( lt_vendors ).A supplier that appears in LFA1 but has no LFB1 row has general data only. Either the role FLVN00 is missing or no company code was added.
Common mistakes
- Missing company code data. The role was never added, or the company code was not created inside it.
- Wrong reconciliation account. The account is entered per company code. Check that it is a vendor reconciliation account.
- Purchasing data in the wrong place. Terms entered at company code level do not replace the terms at purchasing organization level. Each level applies to its own process.
Exercise
A new supplier can receive purchase orders but invoice posting fails in company code 1010. Which role and which data level are probably missing?
Show answer
The FI supplier role FLVN00 and the company code data for 1010 (table LFB1). The partner has the purchasing role FLVN01 and its purchasing organization data, but no company code data.