What is SAP functional testing?
SAP functional testing checks that one business function in SAP, such as creating a purchase order or posting a supplier invoice, does what the functional specification says. A tester enters defined input, runs the function and compares what SAP saved with the expected result. PostNow.ai SAP Testing posts through BAPIs, reads the SAP tables, compares the fields and stores each run with a checksum.
- Write the expected result first. A test case names the table and the field values that prove the function worked, before anyone runs it.
- Test the rejection as well as the posting. A function is only correct when SAP also refuses the input it should refuse.
This guide is for SAP functional consultants and test leads who have to prove that new configuration or development works before it moves on. It covers what to test in FI, MM and SD, how to write a test case, a six-step process, a worked purchase order example, the tools teams use and what to automate. Functional testing is the first phase of SAP testing, and the later phases build on it.
Functional testing in SAP vs integration, regression and UAT
Functional testing in SAP looks at one function at a time. You give the function known input, run it and check the output against the specification. The question is narrow on purpose: does this purchase order type, this posting key or this pricing condition behave as designed?
On many projects the first round is called functional unit testing in SAP. The consultant who configured the function tests it alone, before it is joined to the steps before and after it. The other test phases each answer a different question:
| Test type | Question it answers | Typical SAP example |
|---|---|---|
| Functional test | Does this one function do what the specification says? | A purchase order for a new plant saves with the right company code and payment terms |
| Integration test | Do the connected functions work together? | Purchase order, goods receipt and invoice in one chain (SAP integration testing) |
| Regression test | Does a function that already worked still work after a change? | The same purchase order test, run again after a transport (SAP regression testing) |
| User acceptance test | Does the business accept the result? | A buyer runs the process and signs it off (SAP UAT testing) |
The order matters. A function that fails on its own will also fail inside a chain, and there it is harder to see why. Good functional testing for SAP keeps the later phases short, because integration and acceptance testers then meet process questions and not basic configuration errors.
How PostNow.ai runs SAP functional testing
PostNow.ai turns a functional test case into steps that post to SAP and read the result back. Four steps take one function from specification to a stored result.
- 01
Describe the function
Write what the function should do in plain words. Create with AI drafts the test steps from that description.
- 02
Post through a BAPI
The action step uses the same automation your team publishes from Excel, with your own SAP login.
- 03
Compare the fields
A check step reads the SAP tables and compares each field with the expected value.
- 04
Store the result
The run is saved as a read-only record with a SHA-256 checksum, ready for sign-off.
What to test: FI, MM and SD examples
Every module has a small set of functions that carry most of the business. Start with those. For each one, decide what the test must check and which SAP table holds the proof. In PostNow.ai SAP Testing the check step reads that table directly, so the result is the stored value and not a screen message.
| Module | Process | What the test checks | SAP table read |
|---|---|---|---|
| FI | Post a G/L journal entry | Company code, document type, posting date, accounts and amounts on each line; debits equal credits | BKPF, BSEG |
| FI | Post a supplier invoice | Supplier line, payment terms, tax code and the expense account | BKPF, BSEG |
| MM | Create a purchase order | Supplier, document type, purchasing organization, material, quantity, price and plant | EKKO, EKPO |
| MM | Create a material master | Material type, base unit of measure and material group | MARA |
| MM | Create a supplier | Name, country and account group | LFA1 |
| SD | Create a sales order | Sold-to party, order type, sales organization, material and quantity | VBAK, VBAP |
Positive and negative tests
A positive test proves that valid input posts. A negative test proves that SAP stops invalid input: a posting to a closed period, an order for a blocked customer, a purchase order for a material that does not exist in the plant. Plan both for every function. A check that can never fail tells you nothing.
Master data comes first
A functional test fails for the wrong reason when its supplier, material or customer is missing from the test system. With PostNow.ai you can create test data in the test system from Excel, and SAP's result is written back on every row. The guide to SAP test data management covers this in detail.
How to write an SAP functional test case
A functional test case is a short document that another person could run and get the same result. In PostNow.ai SAP Testing the same content becomes a chain of steps with a data set. A complete test case contains:
- ID and title: a title that states the expected behavior, not just the transaction.
- Requirement: the specification item or configuration change the test proves.
- Preconditions: the master data, open periods and settings that must exist.
- Test data: the exact values to enter, one row per scenario.
- Steps: what to post and what to read afterwards.
- Expected result: the table and field values that prove success, or the rejection you expect.
- Actual result and status: what SAP returned, and pass or fail.
- Evidence: the document number, SAP's messages and the values read.
Here is a small example for purchasing. The values are illustrative.
| Part | Example |
|---|---|
| Title | Standard purchase order saves with the supplier and quantity entered |
| Requirement | Purchasing specification, item "standard PO for stock material" |
| Preconditions | Supplier and material exist and are maintained for the plant |
| Step 1 (action) | Create a purchase order of type NB with BAPI_PO_CREATE1 |
| Step 2 (check) | Read EKKO and EKPO for the purchase order number from step 1 |
| Expected result | EKKO-LIFNR equals the supplier in the test data; EKPO-MENGE equals the quantity |
| Negative scenario | A supplier number that does not exist: SAP must reject the order |

Writing the first draft is the slow part. In PostNow.ai, Create with AI drafts a test from a plain description, and Generate scenarios proposes extra test rows from the column names of your data set. You review and adjust the draft. See AI test case generation for SAP for how that works.
SAP functional testing process: 6 steps
The SAP functional testing process is the same for a small configuration change and for a full project phase. Only the number of test cases changes. The six steps below show the process, with the matching screens from PostNow.ai SAP Testing.
1. List the functions in scope
Take the functional specification, the configuration list and the development list. Write down every function they change or create: a document type, a pricing procedure, a release strategy, a new field. Mark the ones that post money or goods. Those get tested first and in the most depth.
2. Write the test cases and expected results
Write one test case per function, with the expected result stated as table and field values. Ask the process owner to read the expected results before testing starts. An error found at this point costs a conversation. The same error found during UAT costs a transport and a retest.
3. Prepare the test data
Check that the suppliers, materials, customers and G/L accounts the tests need exist in the test system and are not blocked. Then list the scenarios: the standard case, the edge cases and at least one case SAP must reject. In PostNow.ai each row of a data set is one scenario, marked to expect success or to expect a rejection.

4. Run the tests in the test system
Run each test case in the quality or test system, never from memory and never with changed data. In PostNow.ai the action step posts through the BAPI and the check step reads the tables straight after. Each person runs tests with their own SAP login, so the SAP document shows who created it.
5. Compare actual with expected and record defects
Compare every field in the expected result with what SAP saved. A difference is a defect, a wrong expected result or bad test data. Decide which one before you move on. Record each defect with the test case, the scenario, the step and the values, so the person who fixes it can repeat it.
6. Retest, sign off and keep the evidence
After a fix is transported, run the same test with the same data. When every test case has passed, the test lead signs off the phase. PostNow.ai groups the runs of a phase into a cycle and stores every run as a read-only record with a SHA-256 checksum, kept for one, three or seven years.

Manual SAP functional testing vs PostNow.ai
Keyed in and checked on screen
- Each scenario is typed into the transaction
- The tester looks up the document to check it
- Results are written into a spreadsheet
- A retest means typing it all again
Posted, read back and compared
- Every row of the data set runs as a scenario
- A check step reads the tables and compares the fields
- Expected and actual values sit in the run record
- A retest runs the same data set again
Worked example: a purchase order test
This example shows one functional test from start to finish, as it would be built in PostNow.ai SAP Testing. The organizational values are illustrative. The BAPI, tables and fields are standard SAP.
The change. A company opens a new plant, 2010, in company code 2000. Purchasing has been configured for it. The specification says that a standard purchase order for the plant must save with the supplier's payment terms from the supplier master, and that an order for a material that is not maintained in the plant must be refused.
The test. Step 1 is an action. It creates a purchase order of type NB through BAPI_PO_CREATE1, with the supplier, purchasing organization, material, quantity and plant taken from the data set. Step 2 is a check. It reads EKKO and EKPO for the purchase order number that step 1 returned and compares seven fields.
| Field | Meaning | Expected value | Where it comes from |
|---|---|---|---|
EKKO-BSART | Document type | NB | Sent by the test |
EKKO-LIFNR | Supplier | Supplier in the data set | Sent by the test |
EKKO-BUKRS | Company code | 2000 | Sent by the test |
EKKO-ZTERM | Payment terms | The supplier's payment terms | Taken by SAP from the supplier master |
EKPO-MATNR | Material | Material in the data set | Sent by the test |
EKPO-MENGE | Quantity | Quantity in the data set | Sent by the test |
EKPO-WERKS | Plant | 2010 | Sent by the test |
The scenarios. The data set has three rows. Row 1 is a standard order for 10 pieces and expects success. Row 2 is the same order with a quantity of 2,500 pieces, to prove that a large quantity is stored in full. Row 3 uses a material that is not maintained in plant 2010 and expects a rejection.
Reading the result. Rows 1 and 2 pass when step 1 returns a purchase order number and all seven fields in step 2 match. The payment terms field is the important one. The test did not send it, so a match proves that SAP picked it up from the supplier master as the specification requires. Row 3 passes when SAP refuses the order and returns an error message. No purchase order is created, so there is nothing for step 2 to read.
When a field does not match. Suppose row 1 returns a purchase order number but EKKO-ZTERM is empty. The posting worked and the function is still wrong. The run record shows the expected and the actual value side by side, which points the consultant at the supplier's purchasing data for that purchasing organization. After the fix, the same three rows run again.
SAP functional testing for every kind of project work
Prove a configuration change before it moves on
A new document type, plant or condition goes into a transport. PostNow.ai lists the tests that use the objects in the transport and runs them together.
- Tests matched to the transport's objects
- Positive and negative scenarios in one run
- One stored record for the change request
Check that a changed report still returns the right rows
A report check runs an SE38 report and compares the output with a saved baseline. Expected-change rules describe the difference you planned for.
- Report output compared with a baseline
- Expected changes written as rules
- AI report rules drafted for you to review
Confirm each function behaves the same in the new system
Run the same functional tests on ECC and on S/4HANA and compare the two systems, so every difference is seen and explained.
- One test, two systems
- ECC and S/4HANA results compared
- Suites grouped by module and cycle
SAP functional testing tools
SAP functional testing tools fall into four groups. They differ in how a test is run and in what it checks: the screen, or the data SAP stored. Many teams use more than one.
| Kind of tool | How a test runs | Good fit for |
|---|---|---|
| Manual scripts in a spreadsheet | A tester follows written steps in the SAP transaction and records the result by hand | First tests of a new function, and steps that need a person's judgment |
| SAP's own tools | eCATT records and replays test scripts inside SAP. SAP Cloud ALM provides test management: test cases, test plans and execution tracking | Teams that want test planning inside their SAP application lifecycle tools |
| Screen-level automation tools | The tool replays the user's steps on the SAP screens and reads values from the screen | Tests where the screen flow itself is what must be proven |
| BAPI and table-level tools | The tool posts through a BAPI or API and reads the SAP tables to compare fields. PostNow.ai SAP Testing works this way | Functional tests of postings and master data, run with many scenarios |
When you choose, look at three things: who will write the tests, what counts as proof for your auditors, and how many scenarios each function needs. PostNow.ai is an SAP testing tool built for functional consultants. Tests reuse the automations the team already publishes from Excel, and UAT manual steps and sign-off sit in the same place as the automated checks.
What an untested SAP function costs the business
A function that was never tested on its own gets tested by the business, in production, on a real document. The fix then needs a correction, a transport and an explanation.
- A default nobody checked. Payment terms, tax code or account come out wrong on every new document.
- A rejection that never happens. SAP accepts an order it should have stopped, and someone has to reverse it.
- A UAT that turns into unit testing. Key users spend their test days finding basic configuration errors.
SAP functional testing automation
SAP functional testing automation means a tool posts the test data and compares the result, so people spend their time on the expected results and on the failures. PostNow.ai SAP Testing automates functional tests at BAPI and table level. Not every test needs it on day one. Automate first where the return is clearest:
- Functions with many scenarios. Ten document types across five company codes is fifty rows of data, not fifty manual tests.
- Functions that change often. Pricing, tax and account determination are adjusted again and again, and every change needs the same tests.
- Functions that post money or goods. Journal entries, invoices, purchase orders and sales orders deserve a check on every field that matters.
- Tests you will keep. A functional test that passes today becomes a regression test tomorrow, with no extra work.
In PostNow.ai, automated tests are grouped in suites. A cycle collects the runs of one test phase, and a schedule runs a suite at fixed times. When a transport arrives, a transport run lists and runs the tests that use its objects. Steps that need a person, such as checking a printed form, stay in the same test as manual steps.
The wider picture, including how to choose what to automate across a landscape, is in the guide to SAP test automation.
SAP functional testing best practices
These SAP functional testing best practices come up on every project, whatever the module. Each one is quick to apply in PostNow.ai SAP Testing, and each works just as well on paper:
- Test against the specification, not against the configuration. If you only confirm what you configured, you repeat your own mistake.
- State expected results as table and field values. "Order is created" is not a result. "
VBAK-AUARTis the order type in the data set" is. - Check at least one value SAP derived. Payment terms, tax code, account or partner: something the test did not send.
- Give every function a negative scenario. One input SAP must reject proves that the validation works.
- Keep test data separate from test steps. The same steps then run for every company code, plant and document type.
- One function per test case. A failure should point at one piece of configuration.
- Use your own SAP login. The run record and the SAP document then show who ran the test.
- Retest with the same data. A fix is proven only when the failed scenario passes unchanged.
- Keep the evidence with the run. Document numbers, messages and compared values belong in one record that nobody can edit afterwards.
- Reuse functional tests later. Chain them for integration testing and schedule them for regression.
What to report
A test lead needs three views at the end of each day: test cases planned against run, passed against failed, and open defects by function. Report by business process as well as by module, because that is how the steering committee asks the question.

