JinJin48
JinJin48
SAP Consultant | BTP · S/4HANA · US Global Rollout
· 12 min read

SAP CO Material Master

The Material Master is the foundation of product costing and variance analysis in SAP CO. Standard cost estimates, cost component structures, and production order variance settlement all depend on settings in this master. This article covers the Material Master’s structure, views, organizational levels, and the field-level detail CO consultants must own.


Part 1: Material Master — Core Concepts (All Modules)

1.1 What Is the Material Master?

The Material Master is the central repository that stores all information about every material (item/product) a company handles — raw materials, semi-finished goods, finished products, consumables, and everything else that flows through the enterprise.

AspectDetails
RoleSingle Source of Truth for all material attributes across the enterprise
Modules using itMM (Purchasing, Inventory), PP (Production Planning, MRP, BOM), SD (Sales, Shipping, ATP), WM/EWM (Warehouse Mgmt, Putaway/Pick), QM (Quality Inspection, CoA), FI (Inventory Valuation, Auto Posting), CO (Standard Cost, Variance Analysis), PM (Plant Maintenance, MRO Procurement), PS (Project Procurement, Material Allocation), CS (Customer Service, Spare Parts), EHS (Hazardous Material Mgmt, Environmental Compliance), GTS (Trade Compliance, HS Code, Export Control)
TransactionsMM01 (Create) / MM02 (Change) / MM03 (Display)
S/4HANA changeMaterial number length extended from 18 to 40 digits (MATNR field)

1.2 Three Defining Axes: Material Type × Industry Sector × Views

SAP Material Master — three defining axes: Material Type, Industry Sector, and Views

The structure of a Material Master record is determined by the combination of three axes:

AxisDescriptionExamples
Material TypeClassifies the material. Controls screen layout, number assignment, and valuation methodROH, FERT, HALB
Industry SectorIndustry branch. Controls which fields are displayed based on industry characteristicsM (Mechanical), C (Chemical), A (Automotive)
ViewsData sets organized by department. Only relevant views need to be extendedBasic Data, MRP, Accounting

Important: Once created, Material Type and Industry Sector cannot be changed as a general rule. Lock these in during design.


1.3 Key Material Types

SAP MM — 8 standard Material Types with stock management and valuation attributes

CodeNameUse CaseStock-ManagedQty / Value
ROHRaw MaterialInput materialsYesBoth
HALBSemi-FinishedInternally produced intermediatesYesBoth
FERTFinished ProductInternally produced / sold goodsYesBoth
HAWATrading GoodsBuy-and-sell merchandiseYesBoth
HIBEOperating SuppliesIndirect materials, consumablesYesBoth
DIENServiceService itemsNoValue only
NLAGNon-StockNo inventory managementNo—
UNBWNon-ValuatedQuantity tracking onlyYesQty only

1.4 View Structure

SAP Material Master — 30 Views grouped by owning module with org level

The Material Master is divided into department-specific Views. Only the views required by each department need to be extended. Approximately 30 standard views exist; the views to extend are selected based on Material Type and business requirements.

#ViewOwning DeptKey FieldsOrg Level
1Basic Data 1Cross-moduleMaterial description, Base UoM, Material group, Weight/VolumeClient
2Basic Data 2Cross-moduleDimensions, EAN/UPC, Old material number, DivisionClient
3ClassificationCross-moduleClass assignment, Characteristic valuesClient
4PurchasingPurchasing (MM)Purchasing group, Order unit, GR processing time, Source list required flagPlant
5Purchase Order TextPurchasing (MM)PO text, Text ID, LanguagePlant
6Foreign Trade: ImportPurchasing (MM) / GTSCountry of origin, HS code (import), CAS number, Import licensePlant
7MRP 1Purchasing / PP (MM/PP)MRP type, MRP controller, Lot size, Reorder pointPlant
8MRP 2Purchasing / PP (MM/PP)Procurement type, Special procurement, Planned delivery time, Safety stockPlant
9MRP 3Purchasing / PP (MM/PP)Strategy group, Consumption mode, Availability checkPlant
10MRP 4PP-orientedBOM selection, Individual/collective requirements, Discontinuation flagPlant
11ForecastingPurchasing / PP (MM/PP)Forecast model, Historical/forecast periods, Smoothing factorsPlant
12Work SchedulingProduction (PP)Production unit, Receiving storage location, In-house production timePlant
13Production Resources/ToolsProduction (PP)Production resource/tool dataPlant
14General Plant Data / Storage 1Inventory (MM) / EHSPlant-specific material status, Storage conditions, Hazardous material number, EHS hazard dataPlant
15General Plant Data / Storage 2Inventory (MM)Shelf life management, Minimum remaining shelf life, Temperature conditionsPlant
16Warehouse Management 1Warehouse (WM/EWM)Warehouse number, Storage type, Storage sectionWarehouse
17Warehouse Management 2Warehouse (WM/EWM)Picking type, WM unit of measureWarehouse
18Quality ManagementQuality (QM)QM procurement key, Inspection type, Certificate typePlant
19Accounting 1Finance (FI)Valuation class, Price control (S/V), Standard price / Moving average priceValuation Area
20Accounting 2Finance (FI)Tax-based valuation, Commercial valuation, Devaluation flagValuation Area
21Costing 1Controlling (CO)Costing lot size, With/without quantity structure, Variance keyPlant
22Costing 2Controlling (CO)Standard cost (Future/Current/Previous), Costing statusPlant
23Sales: Sales Org 1Sales (SD)Sales unit, Tax classification, Item category groupSales Org / DCh
24Sales: Sales Org 2Sales (SD)Material statistics group, Material group 1–5Sales Org / DCh
25Sales: General/PlantSales (SD)Delivering plant, Transportation group, Loading group, Profit centerPlant
26Sales TextSales (SD)Sales/shipping textsClient
27Foreign Trade: ExportTrade (SD/GTS)HS code (export), Export statistics group, Preference status, Export controlPlant
28Plant StockReference (display only)Plant stock quantity / value (read-only)Plant
29Storage Location StockReference (display only)Storage location-level stock (read-only)Storage Loc
30Environment (EHS)EHSHazardous substance regulations, Waste codePlant

1.5 Organizational Levels and Data Hierarchy

SAP Material Master — organizational levels from Client down to Storage Location and Warehouse

Each view stores its data at a different organizational level. This is the core design challenge of the Material Master.

Client (300)
   │
   ├── Basic Data, Classification ← Client-level (one record for entire enterprise)
   │
   ├── Plant (1000, 2000, ...)
   │      │
   │      ├── MRP, Purchasing, Work Scheduling ← Plant-level
   │      │
   │      ├── Storage Location (0001, 0002, ...)
   │      │      └── Storage Data ← Storage Location-level
   │      │
   │      └── Warehouse Number (WH1, ...)
   │             └── WM Data ← Warehouse-level
   │
   ├── Valuation Area = Plant ← Accounting is typically at Plant level
   │      └── Valuation class, Standard cost
   │
   └── Sales Org × Distribution Channel
          └── Sales Data ← Sales Org-level
Org LevelPrimary UseRepresentative FieldsNotes
ClientEnterprise-wide common attributesMaterial description, Base UoM, ClassificationOne record shared across entire enterprise
Company CodeFinancial accounting unitAccounting View (valuation class, price control)When Valuation Area = Company Code
Controlling AreaManagement accounting unitCosting View (cost estimate, variance analysis)May span multiple Company Codes
Purchasing OrganizationPurchasing org unitPurchasing Info Record (price, conditions)Material Master itself is at Plant level; purchase conditions are at Purch. Org level
PlantFactory / site unitMRP, Purchasing, Work Scheduling, General Plant DataThe primary level with the most views
Purchasing GroupBuyer groupPurchasing View: Purchasing Group (EKGRP)Buyer group within a Plant; starting point for PO release strategy routing
Valuation AreaInventory valuation unitAccounting 1 (valuation class, standard price)Typically = Plant; Company Code-level valuation is also configurable
Storage LocationStorage area unitGeneral Plant Data / Storage (storage location stock)Warehouse / bin area within a Plant
Warehouse NumberWarehouse management unitWM View (storage type, picking strategy)Used in Plants with WM/EWM
Sales OrganizationSales org unitSales: Sales Org View (sales unit, tax classification)Keyed together with Distribution Channel
Distribution ChannelDistribution channel unitSales: Sales Org ViewExtended in combination with Sales Org
(GTS reference)Trade compliance managementForeign Trade View (HS code, country of origin, export control)No GTS-specific org level key in Material Master; GTS references the Foreign Trade View data

Part 2: CO-Specific View Details (Controlling)

2.0 All Views × CO Involvement

#ViewPrimary ModuleCO Involvement
1Basic Data 1Cross-module○
2Basic Data 2Cross-module△
3ClassificationCross-module△
4PurchasingMM△ (purchase price feeds standard cost)
5Purchase Order TextMM×
6Foreign Trade: ImportMM×
7MRP 1MM / PP△ (lot size affects unit cost)
8MRP 2MM / PP△ (procurement type E/F determines cost source)
9MRP 3MM / PP×
10MRP 4PP×
11ForecastingMM / PP×
12Work SchedulingPP○ (in-house production time feeds scheduling)
13Production Resources/ToolsPP×
14General Plant Data / Storage 1MM×
15General Plant Data / Storage 2MM×
16Warehouse Management 1WM / EWM×
17Warehouse Management 2WM / EWM×
18Quality ManagementQM×
19Accounting 1FI◎ (valuation class + price control)
20Accounting 2FI△
21Costing 1CO◎ (Owner)
22Costing 2CO◎ (Owner)
23Sales: Sales Org 1SD×
24Sales: Sales Org 2SD×
25Sales: General/PlantSD○ (profit center)
26Sales TextSD×
27Foreign Trade: ExportSD / GTS×
28Plant StockReference—
29Storage Location StockReference—
30Environment (EHS)EHS×

Legend: ◎ = Owner / Critical, ○ = Direct involvement, △ = Reference / Integration, × = Other module owns, — = Display-only view


2.1 Costing 1 View

The prerequisite settings for running a standard cost estimate (CK40N) via BOM × Routing.

FieldDescriptionPractical Usage
Costing Lot SizeBase quantity for cost rollupFixed costs (setup, depreciation) are spread over this quantity to calculate unit cost. Set close to the actual average production lot size — deviations cause systematic price variances at every GR. A common mistake is leaving it at 1, which inflates unit cost by concentrating all setup costs on a single unit.
With Qty StructureBOM/Routing cost rollup flagCheck for FERT/HALB — enables CK40N to roll up cost from BOM × Routing. Leave blank for ROH/HAWA where cost comes from the purchasing price. The most important flag in the Costing view.
Material OriginCost breakdown by componentWhen checked, the cost estimate shows cost by individual material rather than aggregated by cost component. Enable for key purchased components where visibility into material cost variance is required.
Variance KeyVariance analysis keyDetermines how production order variances are categorized (input price, quantity, remaining variance, etc.) and settled. 000 = standard; define additional keys for split variance reporting by product line.
Production Version (Costing)Default costing production versionWhen multiple Production Versions exist (different routings or BOMs), this determines which version is used for the standard cost estimate. Locks “which manufacturing method” into the cost.

2.2 Costing 2 View

Displays the three generations of standard cost and the current workflow state.

FieldDescriptionPractical Usage
Standard Cost — FutureMarked but not yet releasedResult of CK40N Mark step. Visible for review but does not yet affect inventory value or GR postings. Used for simulation and review before the annual or mid-year cost release.
Standard Cost — CurrentActive released standardReleased via CK40N Release step. This value populates the Standard Price in Accounting 1 and drives all inventory GR postings in the current period. Changing this mid-period triggers mass revaluation.
Standard Cost — PreviousPrior released standardRetained automatically when a new cost is released. Used for year-over-year variance analysis, budget vs. actual cost comparison, and audit trail.
Costing StatusMark/release workflow statusKA = Marked (review phase), FR = Released (active). Use to build a governance workflow: cost accountants mark → controller reviews → FI releases. Prevents accidental release of incorrect costs.

2.3 Accounting 1 View (CO perspective)

While FI owns Accounting 1, CO must understand the key fields that drive product costing.

FieldDescriptionPractical Usage
Price Control (S/V)Cost method selectorS = Standard Price — variances between actual and standard are posted to price difference accounts and settled via production orders. V = Moving Average — actual cost is absorbed into inventory directly. CO’s preferred mode is S, as it enables variance analysis. Never mix S and V within the same product line without a clear policy.
Valuation ClassAccount determination keyIn CO-PA (account-based), the Valuation Class contributes to the revenue account determination matrix. Also determines which cost of goods sold (COGS) account is posted at goods issue to sales.
Standard PriceActive unit costThe value CO uses as the basis for all standard cost calculations, production order settlement, and CO-PA COGS posting. Must be released before the fiscal year start to enable clean variance reporting from day one.

2.4 MRP 2 View (CO perspective)

FieldDescriptionPractical Usage
Procurement Type (E/F/X)In-house vs. external sourcingE = In-house: CK40N rolls up cost from BOM + Routing. F = External: CK40N uses the Planned Price or purchasing info record price as the cost source. X = Both: CO must decide which source drives the standard cost — document this policy explicitly. Misalignment between actual procurement and the Procurement Type causes systematic variances.
Special Procurement (40 = Subcontracting)Subcontracting flagWhen set to 40, CK40N includes the subcontracting service cost (from the Purchasing Info Record or planned price) on top of the component cost. A common source of unexpected cost in BOM rollups for subcontracted assemblies.

2.5 Work Scheduling View (CO perspective)

FieldDescriptionPractical Usage
In-house Production TimeFixed lead time (days)Used in simplified scheduling when no Routing exists. CO must ensure this is aligned with the Routing-based lead time — discrepancies affect MRP scheduling and in turn affect which cost period absorbs the production order variance.
Production VersionBOM × Routing combinationCO must confirm which Production Version is selected in Costing 1 and verify it represents the intended manufacturing method. A wrong Production Version selection in costing produces a standard cost that does not match actual production — the root cause of large, unexplained variances.

2.6 Sales: General/Plant View (CO perspective)

FieldDescriptionPractical Usage
Profit CenterCO-PA / PCA profit centerIn S/4HANA, Profit Center is mandatory for all inventory-holding materials. Revenue, COGS, and inventory value flow here. In account-based CO-PA, the Profit Center is the primary drill-down axis for profitability reporting. Design the Profit Center hierarchy together with the CO-PA characteristic set.

L1) Big Picture

IDCategoryTitle
co-001OverviewWhat is SAP CO?

L2-A) Master Data

IDCategoryTitle
co-a01OverviewSAP CO Master Data: Overview, Hierarchy & Relationships
co-a02-01Master DataSAP CO Material Master 📍
co-a03-01Master DataSAP CO Cost Element
co-a03-02Master DataSAP CO Cost Element Group
co-a04-01Master DataSAP CO Profit Center Group
co-a04-02Master DataSAP CO Profit Center
co-a05-01Master DataSAP CO Cost Center Group
co-a05-02Master DataSAP CO Cost Center
co-a05-03Master DataSAP CO Activity Type Group
co-a05-04Master DataSAP CO Activity Type
co-a05-05Master DataSAP CO Statistical Key Figure
co-a06-01Master DataSAP CO Internal Order Group
co-a06-02Master DataSAP CO Internal Order
co-a07-01Master DataSAP CO Cost Component Structure
co-a07-02Master DataSAP CO Costing Variant
co-a08-01Master DataSAP CO Operating Concern

L2-B) Transaction

IDCategoryTitle
co-b01OverviewSAP CO Transactions: Process Flow, Hierarchy & Relationships