IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > SAP Software > SAP interfaces

The BAPI interfaces

WebSphere Adapter for SAP Software supports outbound processing and inbound processing for simple BAPIs. In outbound processing, the client applications call BAPIs and other RFC-enabled functions on the SAP server. In inbound processing, the SAP server sends an RFC-enabled function (such as a BAPI function) through the adapter to an endpoint.

Suppose you want to build a service that creates a new customer on the SAP server.

You first run the external service wizard to discover the BAPI_CUSTOMER_CREATEFROMDATA function. The wizard then generates the business object definition for BAPI_CUSTOMER_CREATEFROMDATA along with other SCA service artifacts. During BAPI outbound processing, the adapter receives the service request and converts the data into a BAPI invocation.

A simple BAPI performs a single operation, such as retrieving a list of customers. The adapter supports simple BAPI calls by representing each with a single business object schema.

Simple BAPIs can be used for outbound or inbound processing. You can specify synchronous RFC processing or asynchronous transactional RFC (tRFC) processing when you configure a module for a simple BAPI. In addition, for outbound processing, you can specify asynchronous queued RFC (qRFC) processing, in which BAPIs are delivered to a predefined queue on the SAP server.

The adapter supports the following data types in the import, export, and changing parameter list:

  1. Elementary types
  2. Complex data type
    1. Table types
      1. Line types
        1. Structure (example - BAPIRET2)
        2. Table type (example - TRTEXTS)

        3. Data Element (example - TRACKTEXT)
        4. Views (example - T001W_BIW)
      2. Predefined types (example - BIC_ADD_DATA_TT)
    2. Structure

The adapter supports the following data types in the table parameter list -

  1. Tables with flat line structure (example - BAPIRET2)

If you select the Generate business objects in SAP XI standard option in the Specify the Discovery Properties window, the table type element will have a wrapper anonymous complex type, whose name is appended with a suffix “_Item”.

SAP interfaces