Quick answer

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 typeQuestion it answersTypical SAP example
Functional testDoes 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 testDo the connected functions work together?Purchase order, goods receipt and invoice in one chain (SAP integration testing)
Regression testDoes 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 testDoes 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.

PostNow.ai SAP Testing

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.

  1. 01

    Describe the function

    Write what the function should do in plain words. Create with AI drafts the test steps from that description.

  2. 02

    Post through a BAPI

    The action step uses the same automation your team publishes from Excel, with your own SAP login.

  3. 03

    Compare the fields

    A check step reads the SAP tables and compares each field with the expected value.

  4. 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.

ModuleProcessWhat the test checksSAP table read
FIPost a G/L journal entryCompany code, document type, posting date, accounts and amounts on each line; debits equal creditsBKPF, BSEG
FIPost a supplier invoiceSupplier line, payment terms, tax code and the expense accountBKPF, BSEG
MMCreate a purchase orderSupplier, document type, purchasing organization, material, quantity, price and plantEKKO, EKPO
MMCreate a material masterMaterial type, base unit of measure and material groupMARA
MMCreate a supplierName, country and account groupLFA1
SDCreate a sales orderSold-to party, order type, sales organization, material and quantityVBAK, 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.

PartExample
TitleStandard purchase order saves with the supplier and quantity entered
RequirementPurchasing specification, item "standard PO for stock material"
PreconditionsSupplier 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 resultEKKO-LIFNR equals the supplier in the test data; EKPO-MENGE equals the quantity
Negative scenarioA supplier number that does not exist: SAP must reject the order
PostNow.ai functional test case with two steps: a BAPI_PO_CREATE1 action that creates a purchase order, then a check that reads EKKO and EKPO and compares LIFNR with the supplier in the test data
The test case as steps in PostNow.ai: step 1 posts the purchase order, step 2 reads EKKO and EKPO for the document number step 1 returned.

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.

PostNow.ai test data set for a purchase order test with three scenarios: two expect success and one unknown supplier expects a rejection, with Download Excel, Upload Excel and Generate scenarios buttons
One test, three scenarios. The unknown supplier is a negative test: it passes when SAP rejects it.

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.

PostNow.ai run record for a purchase order test: 1 of 3 scenarios failed because the supplier did not match, with the run number, test case version, SAP system and client, a sha256 checksum and the retention date
A failed run is kept exactly as it ran: the scenario, the reason, the test case version and the checksum.
Check: open one passed scenario and one rejected scenario, and confirm the record shows the document number, SAP's messages and the value each check read.
Before and after

Manual SAP functional testing vs PostNow.ai

Manual testing

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
With PostNow.ai

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.

FieldMeaningExpected valueWhere it comes from
EKKO-BSARTDocument typeNBSent by the test
EKKO-LIFNRSupplierSupplier in the data setSent by the test
EKKO-BUKRSCompany code2000Sent by the test
EKKO-ZTERMPayment termsThe supplier's payment termsTaken by SAP from the supplier master
EKPO-MATNRMaterialMaterial in the data setSent by the test
EKPO-MENGEQuantityQuantity in the data setSent by the test
EKPO-WERKSPlant2010Sent 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.

⚠
Check a field the test did not send. Fields you send back to yourself prove little. A value SAP had to work out, such as payment terms from the supplier master, is where configuration errors show.
Where teams use it

SAP functional testing for every kind of project work

Customizing

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
SAP transport testing
Reports and enhancements

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
SAP report testing
ECC to S/4HANA

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 S/4HANA testing

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 toolHow a test runsGood fit for
Manual scripts in a spreadsheetA tester follows written steps in the SAP transaction and records the result by handFirst tests of a new function, and steps that need a person's judgment
SAP's own toolseCATT records and replays test scripts inside SAP. SAP Cloud ALM provides test management: test cases, test plans and execution trackingTeams that want test planning inside their SAP application lifecycle tools
Screen-level automation toolsThe tool replays the user's steps on the SAP screens and reads values from the screenTests where the screen flow itself is what must be proven
BAPI and table-level toolsThe tool posts through a BAPI or API and reads the SAP tables to compare fields. PostNow.ai SAP Testing works this wayFunctional 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.

Why it matters

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.
PostNow.ai tests each function on its own, with the scenarios that should post and the ones that should fail.

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-AUART is 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.

Frequently asked questions

What is functional testing in SAP?
Functional testing in SAP checks that one business function, such as creating a purchase order, posting an invoice or creating a sales order, does what the functional specification says. The tester enters defined input, runs the function and compares what SAP saved with the expected result. It also checks that SAP rejects input it should reject. PostNow.ai SAP Testing runs this check by posting through a BAPI and reading the tables SAP saved.
Who does functional testing in an SAP project?
The functional consultant who configured or specified the function usually runs the first round, often called functional unit testing. A test lead plans the scope, tracks progress and reports the results. Key users join later, for integration testing and user acceptance testing. In PostNow.ai SAP Testing each of them runs tests with their own SAP login, and the results sit in one test cycle.
What is the difference between functional and technical testing in SAP?
Functional testing checks business behavior: with this input, does SAP post the right document with the right values? Technical testing checks how the system is built and runs: ABAP code, interfaces, authorizations and response times. Functional testing is done by functional consultants and testers, and technical testing by developers and the Basis team. PostNow.ai SAP Testing works on the functional side: it posts the document and compares what SAP saved with the expected values.
What does an SAP functional test case contain?
An SAP functional test case contains an ID and title, the requirement it proves, the preconditions, the test data, the steps, the expected result for each step, the actual result with a pass or fail status, and the evidence. The expected result names the SAP table and field values that prove the function worked. In PostNow.ai SAP Testing the test case becomes a chain of steps, and Create with AI drafts it from a plain description.
Which tools are used for SAP functional testing?
Teams use four kinds of SAP functional testing tools: manual test scripts kept in a spreadsheet, the tools SAP provides such as eCATT and test management in SAP Cloud ALM, screen-level automation tools that replay a transaction, and BAPI and table-level tools such as PostNow.ai SAP Testing that post through a BAPI and read the tables SAP saved.
How does PostNow.ai run a functional test?
In PostNow.ai SAP Testing a functional test is a chain of steps. An action step posts through a BAPI or API, using the same automation the team publishes from Excel. A check step reads the SAP tables and compares fields with the expected values. Each person runs tests with their own SAP login, and every run is stored as a read-only record with a SHA-256 checksum.
A professional working in PostNow.ai on a laptop

Your SAP functions. Proven one by one.

Run your first SAP functional test

Take a posting you already do from Excel, add a table check with the expected values, and run it against your test system.

Request a demo
Book a demo

Bring one SAP process. We show it end to end.

Tell us where to reach you and which process matters. The PostNow.ai team replies by email to arrange the demo.

  1. 01You send the formIt goes straight to the PostNow.ai team.
  2. 02We agree a timeWe reply to your work email to set up the call.
  3. 03You see your own processA process from your own SAP work, shown from start to finish.

Request your demo

Name, work email and company are needed.

Please use your company email address.
What would you like to see?

We use your details only to arrange the demo. See our privacy policy.