The success of a SAP Testing project largely depends on how well your teams understand the organization of data in SAP and where to find the right data. This blog explores the architecture of SAP data and provides practical insights into effective test data management for S/4HANA projects.
Understanding Real-World Test Data Challenge
An SAP Materials Management (MM) team encountered significant issues while testing their procure-to-pay (P2P) process. They had created synthetic purchase orders manually for their testing activities.
Issues Faced:
- The synthetic POs lacked historical goods receipt references, rendering them invalid for invoice verification (MIRO transaction)
- The team used outdated vendor master data (LFA1), which resulted in blocked payments in the Financial module
- The test data failed to include multiple tax codes, causing tax mismatches between purchase orders and invoices
Lessons Learned:
- Transactional data must be realistic and comprehensive, including all necessary historical references
- Using production-like purchase orders is essential for validating end-to-end processes
- Test data provisioning should be automated whenever possible to eliminate manual errors
This example illustrates how incomplete or unrealistic test data can derail testing efforts and potentially lead to incorrect conclusions about system functionality.
Understanding The Architectural Framework of SAP Data
Before diving into test data strategies, let us understand how data is organized within SAP systems.
SAP data falls into three primary categories, each with distinct characteristics and functions:
1. Master Data
Master data represents the stable entities that form the foundation of your business operations. These are the core elements that remain relatively unchanged over time.
Key Characteristics:
- Stored in persistent core tables
- Used across multiple SAP modules to ensure consistency
Examples of Master Data:
- Material Master (MARA): Contains all material-specific information used across purchasing, inventory, and production processes
- Customer Master (KNA1): Stores essential customer details for sales and billing operations
- Vendor Master (LFA1): Holds supplier information critical for procurement processes
- Business Partner (BP000): Contains unified business partner records in S/4HANA
Where to Access Master Data:
- via SAP Tables: MARA, KNA1, LFA1, BP000
- via SAP Fiori Apps: "Manage Business Partners," "Display Material"
- via Transaction Codes: SE16N, MM03, BP
2. Transactional Data
Transactional data captures the day-to-day business activities and operations like orders that constantly change as your business evolves.
Key Characteristics:
- More dynamic and shorter-lived than master data
- Drives real-time business processes
- High volume, often requiring robust archiving strategies
Examples of Transactional Data:
- Sales Orders (VBAK/VBAP): Header and item data generated during the order process
- Purchase Orders (EKKO/EKPO): Header and item information created during procurement
- Financial Documents (BKPF/BSEG): Accounting document headers and line items
Where to Access Transactional Data:
- SAP Tables: VBAK, VBAP, BKPF, BSEG, EKKO, EKPO
- SAP Fiori Apps: "Manage Sales Orders," "Display Purchase Orders"
- Transaction Codes: VA03, ME23N
3. Configuration Data
Configuration data refers to the settings and parameters that define how the SAP system behaves and operates according to a business’s needs. For example, setting up a Sales Document Type (ZINT) for Internet Orders.
Key Characteristics:
- Maintained through SPRO (SAP Project Reference Object)
- Stored in customization tables
- Configuration data is client-specific and is migrated or transported from one system (e.g., DEV) to another (e.g., QA, PROD) using transport requests.
Examples of Configuration Data:
- Pricing Configuration (T685): Defines how prices are determined in Sales & Distribution
- Material Types (T134): Categorizes materials (raw materials, finished goods, etc.)
- Company Codes (T001): Defines organizational units in Finance
- Account Determination (T030): Controls which GL accounts receive transaction postings
Where to Access Configuration Data:
- SAP Tables: T685, T001, T030
- SPRO Path: Various paths depending on the configuration area
- Transaction Codes: SPRO, OBYC
Methods to Create and Manage SAP Test Data
Once you have a clear understanding of how data is structured, you can leverage the following tools or methods to create and manage test data effectively:

Where to look for Existing SAP Test Data
it's not always necessary to create test data for testing. In many cases, we can leverage existing data already present in the system. Let us explore various methods for identifying and reusing suitable data.
Transaction Codes (T-Codes)
Transaction codes provide direct access to master data records within SAP GUI. Below are some commonly used T-codes:
- PA20 – Display HR Master Data: View detailed employee master data across various infotypes (read-only).
- FI03 – Manage Banks: Display bank master data after it is imported into SAP.
- MM03 – Material Master: Access material master records.
- MD04 – Master Data Overview: View real-time master data and stock levels.
- VA03 – Sales Order Display: Retrieve sales order details.
- FB05 – Financial Accounting: View financial accounting documents.
SAP Fiori Apps
SAP Fiori provides modern web-based applications to manage and display master data. Some useful apps include:
- Manage Product Master Data (F1602): Search, view, edit, create, and copy product master data.
- Manage G/L Account Master Data: Access G/L account details via the SAP Fiori launchpad.
- Manage Banks: View and update bank master data.
SAP Tables
The following SAP tables in SE16/ SE11 can help with master data
- MARA (Material Master)
- KNA1 (Customer Master)
- LFA1 (Vendor Master)
- BKPF (Accounting Document Header)
- VBAK – Sales Order Header
- AFKO – Production Order Header
SAP Reports and Queries
- You may use SAP Query (SQVI/ SQ01) to generate reports on master data.
You may also leverage standard SAP reports, for example, MB52, for material stock overview
Best Practices for SAP S/4HANA Test Data Management
- Begin Early: Start planning your test data strategy during the test design phase
- Automate Where Possible: Use automation tools for data creation, masking, and subsetting
- Document As Much As Possible: Maintain comprehensive documentation of test data