Sub topic 3
Master data: customers, materials and conditions
This chapter assumes you know the order-to-cash steps and the organizational units from the previous chapters: sales organization, distribution channel, division, plant and company code. It also assumes you can read basic SQL.
Why master data matters
Master data is the stable information that a sales order copies when you create it. The order does not store a customer's address, a material's weight or a price from scratch. It reads them from master records and copies the results into the document. If the master data is wrong or incomplete, the error shows up in every document that follows.
Three kinds of master data drive order-to-cash:
| Master data | What it holds | What it controls in the order |
|---|---|---|
| Customer (Business Partner) | Address, payment terms, partner functions, shipping data | Ship-to and bill-to, terms, incoterms, credit exposure |
| Material | Units, weights, plant data, sales data, tax data | Item category, availability check, delivery plant, taxes |
| Condition records | Prices, discounts, surcharges, taxes | Net value of each item |
Customers as Business Partners
In S/4HANA you maintain customers through the Business Partner transaction BP. One business partner can hold several roles. For order-to-cash, the main roles are FLCU00 (customer, financial accounting view) and FLCU01 (customer, sales view).
A customer record has three levels of data:
- General data is valid everywhere: name, address, language.
- Company code data is used by accounting: reconciliation account, payment terms, dunning.
- Sales area data is used by sales: delivery priority, shipping conditions, incoterms, pricing procedure indicators, and partner functions.
Partner functions assign different business partners to one customer. The usual four are sold-to party, ship-to party, bill-to party and payer. A sold-to customer can have a different ship-to warehouse and a different payer.
Materials
The material master is organized by view. Each view belongs to one organizational level:
- Basic data is client-wide: base unit of measure, weight, material group.
- Sales organization data covers the sales organization and distribution channel: delivery plant, sales units, item category group.
- Plant data covers MRP, availability check group and storage.
- Accounting data holds valuation class and price control.
The material type and the item category group together help the system choose the item category in the order. The availability check group in the plant view decides whether the system checks stock.
Condition records
Condition records store prices and other pricing elements, such as the price PR00, a customer discount K007 or a freight surcharge. Each record belongs to a condition type and a key combination called an access sequence entry. A record can be valid for a customer and material, a price list and material, or a material alone. Each record also has a validity period and often scale rates.
Chapter 6 covers how the condition technique finds these records. For now, remember that condition records are master data. You change prices by maintaining records, not by changing the order.
Checking master data with SQL
You can read the sales area data of a customer from table KNVV. This query is a quick way to see why an order picked a particular delivering plant or payment term.
DATA(lv_kunnr) = CONV kunnr( '0000001000' ).
SELECT kunnr, vkorg, vtweg, spart, vsbed, zterm
FROM knvv
WHERE kunnr = @lv_kunnr
INTO TABLE @DATA(lt_sales_area).Common errors
- An order fails with a message that the customer is not maintained for the sales area. The sales area data is missing for that customer.
- The order has no price. No valid condition record exists for the key combination and date.
- The wrong plant appears. The plant comes from customer-material info record, then customer, then material, in that order. Check all three.
Exercise
A customer orders from a sales area for which the business partner has only the company code view maintained. What happens, and which view do you add?
Show answer
The system cannot create the order for that sales area, because it reads sales area data from the customer record. Add the sales area data (role FLCU01) for that sales organization, distribution channel and division.