Now accepting guest editorial from SAP, Oracle, Workday and ServiceNow practitioners.Pitch a guide
The Sign-Off Table

Lesson 1 of 5

How SAP systems exchange data

10 min

Listen to this lesson

0:00 / 7:04

No SAP system runs alone. Contoso Motor Co. sends purchase orders to its supplier Lakeside Components, receives orders from Great Lakes Fleet Services, feeds a warehouse system, sends payment files to its bank and publishes data to analytics. Every one of those links is an interface, and interfaces are where many go-live problems hide: the process works perfectly inside SAP and then fails at the boundary.

You do not need to be an integration developer to test interfaces well. You do need to recognize the main technologies, know what "success" looks like for each, and know where to look when it fails.

In ISTQB terms this is system integration testing: testing the interfaces between the system under test and other systems and external services, in an environment as close to production as you can get. Component integration testing, of the interfaces inside one system, usually belongs to the developers. In SAP Activate the work runs through the Realize phase: developers unit-test each interface in CMD, string tests chain the interfaces of one process, and the integration test and then user acceptance testing prove them end to end before the project moves to Deploy.

The main technologies

TechnologyStyleTypical useWhat a tester checks
IDocAsynchronous business documentEDI orders, invoices and shipping notices with partners; distribution of master data between SAP systemsIDoc status, segment content, the application document created or sent
RFC / BAPIRemote function call, synchronous or queuedSAP-to-SAP calls; older integrations calling business APIs (BAPIs)Return messages, created documents, queue and tRFC status
ODataREST over HTTP, JSON or XMLSAP Fiori apps; released APIs for external systemsHTTP status, response body, created or changed data
SOAP web serviceXML messages over HTTPEnterprise services and many partner integrationsResponse or acknowledgment, web service error log
Business eventsPublish and subscribeNotifying other systems that something happened, such as a sales order being createdEvent published, consumer reacted, no duplicates or losses
Interface technologies a tester meets in SAP S/4HANA landscapes.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-209

IDocs (intermediate documents) are SAP's long-standing container for business documents. A purchase order leaves SAP as an outbound IDoc of message type ORDERS; a customer's order can arrive as an inbound ORDERS IDoc and create a sales order. RFC lets one system call a function in another; BAPIs are stable business functions exposed that way. OData services are the REST APIs behind Fiori and most of SAP's released APIs for SAP S/4HANA. SOAP services remain common for enterprise services and B2B. Events let SAP announce a change without knowing who listens.

Middleware in between

Messages rarely go straight from SAP to the partner. Middleware sits between them to translate formats, map values, route and secure the traffic. SAP's strategic platform is SAP Integration Suite, and many existing landscapes still run SAP Process Orchestration. Contoso is one of them: its ECC interfaces (about 60, about 25 of them IDoc-based) run on Process Orchestration 7.5 in XD1/XQ1/XP1 and move to Integration Suite only after hypercare, so the go-live interface tests run through XQ1. For testing, the key point is that a message can succeed in SAP and fail in middleware, or the other way round, so you need to know every hop.

  1. SAP S/4HANA (CMQ)Purchase order 4500002210 saved; its output was processed and created an outbound ORDERS IDoc.
  2. IDoc layerStatus 03 in WE02: the IDoc left SAP. If it hangs, look in SM58.
  3. Middleware (XQ1)Process Orchestration maps the IDoc to an X12 850; its message monitor shows success or error.
  4. PartnerLakeside Components acknowledges receipt with a 997 and confirms the order with an 855.
  5. Return pathThe 855 arrives as an inbound ORDRSP IDoc; status 53 and the PO's confirmation data prove it.
One outbound interface at Contoso, hop by hop, with the place to check at each hop.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-209
The purchase order round trip with Lakeside Components: four asynchronous messages, each of which can fail on its own.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-209

Synchronous versus asynchronous

A synchronous call waits for an answer: an OData request to read a sales order returns the data or an error straight away. An asynchronous message is handed over and processed later: an IDoc is created, queued, sent and posted at the other end in its own time. Asynchronous interfaces need different tests, because success at the sender says nothing about the receiver. You must look at both ends, and you must test what happens when the receiver is not there.

Asynchronous interfaces are also where timing hides. An inbound IDoc may sit in a waiting status until a scheduled job processes it every 15 minutes; an outbound message may be collected and sent in batches. A test that checks the result one minute after sending can fail for no reason, and a test that never checks timing can miss an interface that is too slow for the business. Ask how each interface is scheduled and include it in the expected result, for example "order created within 20 minutes of receipt".

What would you do?

Contoso's tester confirms that saving PO 4500002210 created an outbound IDoc with a success status. Lakeside Components says they never received the order. What should the tester check next?

Key points
  • SAP interfaces use IDocs, RFC/BAPI, OData, SOAP and events; each has its own idea of success.
  • Middleware such as SAP Integration Suite sits between SAP and partners and can fail independently.
  • Asynchronous success at the sender says nothing about the receiver; check every hop.
  • Sketch each interface's hops, technology, direction and monitors before testing.

Check your understanding · not graded

Lesson check

  1. 1. Which technology is SAP's long-standing container for asynchronous business documents such as EDI orders?

  2. 2. What do most of SAP's released APIs for SAP S/4HANA use?

  3. 3. Why does an asynchronous interface need checks at both ends?

  4. 4. What role does middleware such as SAP Integration Suite play?

  5. 5. In ISTQB CTFL v4.0, which test level focuses on the interfaces between the system under test and other systems and external services?