Sub topic 1
The S/4HANA module landscape at a glance
Prerequisites
This chapter assumes you know basic business processes (buying, selling, accounting), the general idea of an ERP system, and simple relational database concepts such as tables, keys, and joins. You do not need any SAP experience.
The working model
SAP S/4HANA is one system built from functional areas. Each area owns a set of business documents and data. Finance sits at the center, because almost every operational event ends in an accounting posting.
The areas you will meet in this tutorial are:
| Area | Typical abbreviation | Responsible for |
|---|---|---|
| Finance and Controlling | FI/CO | General ledger, payables, receivables, cost and profit analysis |
| Procurement and Materials Management | MM | Requisitions, purchase orders, goods receipts, supplier invoices |
| Sales and Distribution | SD | Sales orders, deliveries, billing |
| Inventory and warehouse management | MM-IM, EWM | Stock quantities, stock values, storage locations |
| Production Planning and Manufacturing | PP | Planning, production orders, material consumption |
| Quality, Plant Maintenance, Project System, Human Resources | QM, PM, PS, HR | Supporting areas covered later |
The abbreviations come from older SAP releases. You will still see them in menus, table names, and job descriptions, so learn them.
What holds the areas together
Three shared foundations make the areas behave as one system:
- Organizational structure. Units such as client, company code, plant, and sales and purchasing organizations decide who owns each transaction.
- Master data. Shared records such as the business partner (customers and suppliers) and the material are created once and used by many areas.
- The Universal Journal. Finance line items are stored in one table, ACDOCA. FI and CO read the same records.
Later chapters cover each of these in turn.
Two chains to remember
Two end-to-end chains show how the areas connect. Each starts with an operational document and ends in Finance.
Procure-to-pay (Procurement -> Inventory -> Finance)
Purchase requisition -> Purchase order -> Goods receipt -> Supplier invoice -> Payment
Order-to-cash (Sales -> Inventory -> Finance)
Sales order -> Delivery -> Goods issue -> Billing document -> Customer paymentLook at where Inventory appears. A goods receipt increases stock, and a goods issue decreases it. Both events usually create an accounting document at the same moment. Finance is therefore updated by the operational modules, not only by accountants.
Seeing the landscape in the data
Each area has its own tables, and you can query them directly. This query sums Finance line items per G/L account in the leading ledger 0L:
SELECT rbukrs, racct, SUM( hsl ) AS balance
FROM acdoca
WHERE rldnr = '0L'
AND rbukrs = '1010'
AND gjahr = '2024'
GROUP BY rbukrs, racct
INTO TABLE @DATA(balances).This query joins sales order headers (VBAK) to their items (VBAP). It shows how a sales document links a customer to materials:
SELECT FROM vbak
INNER JOIN vbap ON vbap~vbeln = vbak~vbeln
FIELDS vbak~vbeln, vbak~kunnr, vbap~posnr, vbap~matnr, vbap~netwr
WHERE vbak~vkorg = '1010'
INTO TABLE @DATA(order_items)
UP TO 100 ROWS.Common errors
- Treating modules as separate systems. A sales billing document and a supplier invoice both post to the same Finance data. Problems in one area often show up in another.
- Confusing the module name with the process. MM is a module. Procure-to-pay is a process that crosses MM, Inventory, and Finance.
- Ignoring organizational values. Both queries above filter on organizational fields (company code
rbukrs, sales organizationvkorg). Leaving them out returns data from every unit in the client.
Exercise
A goods issue is posted for a customer delivery. Which three areas does this event involve, and which chain does it belong to?
Show answer
It involves Sales (the delivery), Inventory (stock is reduced), and Finance (an accounting document is posted). It belongs to the order-to-cash chain.
Exercise
Why does a query on ACDOCA usually filter on the company code field RBUKRS?
Show answer
The company code is an organizational unit that owns the postings. Without the filter, the query would sum amounts across all company codes in the client.