Sub topic 1
The S/4HANA module landscape at a glance
SAP S/4HANA is an enterprise resource planning (ERP) system. It runs a company's core business processes on one database, SAP HANA. This chapter gives you a map of the functional areas, which the later chapters fill in. By the end you should be able to place any business document or table in the right area and say how it connects to the others.
Prerequisites
This chapter assumes you already have:
- A working idea of business processes such as buying, selling, and accounting.
- Familiarity with what an ERP system is for.
- Basic relational database concepts: tables, primary keys, and joins.
You do not need ABAP or SAP configuration experience. The few code snippets are only there to show where data lives.
What "module" means in S/4HANA
SAP groups functionality into modules, also called functional areas. The older abbreviations are still the common shorthand in job titles, transaction codes, and documentation:
- FI/CO: Financial Accounting and Controlling
- MM: Materials Management, which covers procurement and inventory
- SD: Sales and Distribution
- PP: Production Planning
- QM, PM, PS: Quality Management, Plant Maintenance, Project System
- HR: Human Resources, now often called Human Capital Management
These are not separate products or databases. They are areas inside one system that share organizational structure, master data, and, since S/4HANA, one accounting table. The shared foundation is what makes them an integrated suite.
Newer SAP material often organizes the same functions by business domain, such as "Finance", "Sourcing and Procurement", "Sales", and "Manufacturing". The classic abbreviations still appear in transaction codes and in table names (for example VBAK for sales documents and EKKO for purchasing documents). Expect to see both vocabularies.
The main functional areas
| Area | Responsible for | Typical documents |
|---|---|---|
| Finance (FI) | Legal accounting: general ledger, accounts payable and receivable, assets, period-end close | Journal entry, supplier invoice, customer invoice |
| Controlling (CO) | Internal management accounting: cost centers, internal orders, profitability | Cost allocation, settlement |
| Procurement (MM-PUR) | Buying goods and services from suppliers | Purchase requisition, purchase order |
| Inventory and warehouse management | Stock quantities and values, physical movements, warehouse storage | Goods receipt, goods issue, stock transfer |
| Sales (SD) | Selling to customers: quotation, order, delivery, billing | Sales order, delivery, billing document |
| Manufacturing (PP) | Planning and executing production | Planned order, production order, bill of materials |
| Other areas | Quality, maintenance, projects, people | Inspection lot, maintenance order, project WBS element, employee record |
Finance and Controlling
Finance records what happened in legal and monetary terms. Controlling analyzes it internally, for example by cost center or product. In S/4HANA both read from the same line-item table, which is why they no longer need reconciliation. Chapter later in this tutorial covers the Universal Journal in detail.
Procurement and inventory
Procurement turns a need into a purchase order and tracks delivery and invoice. Inventory records the physical and valuation effect when goods arrive, move, or leave. Procurement and inventory work closely together, and in classic SAP both belonged to MM.
Sales and distribution
Sales handles the customer side: pricing, availability checks, delivery, and billing. Its documents follow a chain, where each document references the one before it.
Manufacturing
Manufacturing consumes materials from inventory and produces finished goods that go back into inventory. It uses the bill of materials (BOM), routings, and work centers.
How the areas connect
The areas exchange data through documents. An operational document in one area triggers a follow-on document or posting in another. The two chains you will meet most often are procure-to-pay and order-to-cash:
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 the chains cross area boundaries. A goods receipt starts in Procurement but is an Inventory event, and it also creates a Finance posting. A billing document starts in Sales and creates a receivable in Finance. Those crossing points are where integration happens, and also where many errors appear, such as missing account determination.
Read the diagram top to bottom. Every operational area depends on the shared foundation, and Finance receives postings from all of them. Inventory sits in the middle because both buying and selling change stock, and production consumes and creates it.
The shared foundation
Two things hold the modules together.
- Organizational structure. Units such as the client, company code, plant, sales organization, and purchasing organization define who does what, for whom, and where. A purchase order, for example, belongs to a purchasing organization and delivers to a plant, and the plant belongs to a company code. The next chapters treat this as the skeleton of the system.
- Master data. Long-lived reference records such as materials and business partners are defined once and reused in every area. The business partner is the single model for both customers and suppliers in S/4HANA.
Transactional documents combine these two layers. An order says "this business partner wants this material from this sales organization", and each part of that sentence points to an organizational unit or a master data record.
Where the data lives
Tables show the integration in practice. All areas read the same database, and many documents have a header table and an item table. The next query reads Finance line items from the Universal Journal table ACDOCA:
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).The query filters by ledger 0L (the leading ledger), company code 1010, and fiscal year 2024. It sums the amount in company code currency (hsl) for each G/L account. The point for this chapter is that one table holds these line items for every area that posts to Finance.
A Sales example shows the header and item pattern:
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.VBAK is the sales order header and VBAP holds the items. The header names the customer (kunnr). Each item names a material (matnr). One document therefore links master data of two kinds.
The values '1010' and '0L' are sample values. Company codes and sales organizations differ in every system, so replace them with ones from yours.
The layers around the core
Around this core sit three layers that later chapters cover:
- SAP Fiori is the browser-based user interface layer. Users reach business functions through role-based apps instead of classic screens.
- Embedded analytics uses Core Data Services (CDS) views to report directly on live transactional data, without copying it to a separate warehouse first.
- Extensibility is the set of supported ways to add custom fields, logic, and apps. The clean core principle says to keep custom code out of the standard system so that upgrades stay simple.
Common mistakes when learning the landscape
- Treating modules as separate systems. They share one database and one set of master data. A change to a material or business partner affects every area that uses it.
- Assuming one document per business event. A single goods receipt can create a material document and an accounting document. When you trace a problem, check both.
- Confusing FI and CO. FI serves external, legal reporting. CO serves internal management. Both are fed by the same journal in S/4HANA, but they answer different questions.
- Looking for old tables. Many classic aggregate and index tables were replaced by views over new tables. Material documents, for example, now live in
MATDOC, not in separate header and item tables, and Finance totals are computed fromACDOCA.
Summary of the map
Think of the system in three layers. The bottom layer is the organizational structure and master data. The middle layer is the functional areas: Finance and Controlling, Procurement, Sales, Inventory, Manufacturing, and the smaller areas. Operational documents flow between them and end as postings in the Universal Journal. The top layer is Fiori, analytics, and extensions. The chapters that follow take these in the same order.
Exercise
A customer's sales order is delivered from a warehouse and then billed. Name the areas involved and say where the Finance posting happens.
Show answer
Sales creates the sales order, the delivery, and the billing document. Inventory records the goods issue when the goods leave the warehouse. Finance receives postings from two events: the goods issue (which reduces stock value and books the cost of goods sold) and the billing document (which creates the customer receivable). Both end up as line items in the Universal Journal, ACDOCA.
Exercise
Why can a query on VBAK and VBAP show both a customer and a material for the same sales document, and which two kinds of shared data does this illustrate?
Show answer
VBAK is the order header and holds the customer number (kunnr). VBAP holds the items, and each item holds a material number (matnr). The two tables are joined on the document number (vbeln). This illustrates the business partner master data (the customer) and the material master data, both defined once and reused by every area that needs them.