Sie sind auf Seite 1von 22

Demonstration on using SYNC/ASYNC Bridge in BPM

By M.Leela Ratnam, Satyam Computers


We will design and configure a BPM scenario using Asynchronous/Synchronous Bridge, i.e. we will send a
message to XI using a Web service Client and XI will in turn make a synchronous BAPI call to an SAP ERP
system and then route the response to the Web service Client. In our scenario both sender and receiver are
synchronous applications. BPM was required as the response was also being routed to a legacy system. By
this scenario you will know how to use S/A Bridge in BPM and how to execute the scenario using Microsoft
Info Path.
We will use the RFC function module BAPI_MATERIAL_EXISTENCECHECK in this scenario. The request
message would contain the Material name and the response message would return the corresponding
details of the Material like Type, ID, Number, and Message. A file containing request message would be
picked by XI, then the response will be synchronously received from the SAP ERP system and the same will
be routed the target system.

INTEGRATION REPOSITORY:
Import the BAPI_MATERIAL_EXISTENCECHECK from R/3 System
DATA TYPES:
Create Request data type.

Create Response data type.

MESSAGE TYPES:
Create Request Message Type.

Create Response Message Type.

MESSAGE INTERFACES:
Create outbound synchronous interface.

Create Abstract Synchronous interface.

Create Abstract Asynchronous interface for request.

Create Abstract Asynchronous interface for the response.

Create Abstract BAPI Request interface.

Create Abstract BAPI Response Interface.

Create Abstract Synchronous BAPI Interface.

MESSAGE MAPPINGS:
Create Request Mapping.

Create Response Mapping

Click here to continue...










Demonstration on using SYNC/ASYNC Bridge in BPM
...Previous
INTERFACE MAPPINGS:
Create Request Interface Mapping

Create Response Mapping

INTEGRATION PROCESS:
Graphical flow Diagram:

Container Elements:

Properties:
Receive Step Transformation1 step

Send Synchronous step Transformation2 step

Send (closes bridge)

The Receive step receives the Soap Request, which is synchronous interface. It opens the S/A Bridge.
In the Synchronous send step, BPM sends request to the R3 system and gets response back.
In the last send, the response is sent back to the Web service client. (Closes S/A Bridge.)
INTEGRATION DIRECTORY:
Business Services:
Create the Business Service for Sender.

Create Business service for the BAPI.

Import the Integration process which you have created in the Integration Repository.

Communication Channels:
Create the sender communication channel

Create the BAPI Receiver Communication Channel.

Sender Agreement:
Create the sender agreement.

Click here to continue...





















Demonstration on using SYNC/ASYNC Bridge in BPM
...Previous
Receiver Determination:
Create Receiver determination from the Sender service to the Integration Process.

Create the Receiver Determination from the Integration process to the Receiver Service.

Interface Determinations:
Create the Interface determination from the sender service to the Integration Process.

Create the interface determination from the Integration process to the receiver service.

Receiver Agreement:
Create the Receiver Agreement for the BAPI Receiver.

Activate all the objects.
Generate the wsdl file.
Select Tool---Define Web service

Click on propose URL

Select the Request message Synchronous interface.

Enter the Sender service, interface name and namespace.

Then it will display the overview. Click Finish.
Save the wsdl file.

Click here to continue...




















Demonstration on using SYNC/ASYNC Bridge in BPM
...Previous
Executing wsdl using Microsoft InfoPath.
Click on the design a from template

Select the Web service icon and click ok

Select the radio button receive and submit data and click on next.

Enter the path of the generated wsdl which u have saved and click next.

Select the interface and click next

Click next

Click next

Select the interface and click next.

Double click on parameters.

Double click on the parameter (material). Then click on the query field and click ok.

Click next. And click Finish

Now drag the query fields on the data fields to the left side. And click preview.


OUTPUT


SXMB_MONI

Graphical workflow log.