cancel
Showing results for 
Search instead for 
Did you mean: 

synchronous to Asynchronous Process

Former Member
0 Kudos

We need some desing help. We need a Synchronous(webService) to Asynchronous(Idoc to SAP) process, but not have the Synchronous thread wait for the Asynchronous process to complete. The Synchronous process needs to hand off the message to a Asynchronous process and immediately response back to the Synchronous client. The Synchronous reply is basically an acknowledgment.

Appreciate can anyone have design idea?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Another idea is to use an ABAP proxy at the SAP side instead. Encapsulate all the IDOC processing in a function module. Call this function module in background task mode. This will kick off a separate unit of work for processing the IDOC and will therefore not tie up your session. You will then be able to give an immediate response to XI with any time delay.

Give that a bash and see how you get on.

Cheers

Colin.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Like mentioned use a Synch - Asynch Bridge in your BPM.

http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/content.htm

Regards,

Bhavesh

Former Member
0 Kudos

Hi Ramesh,

maybe the sync-async bridge could be a solution.

There is a sample in your integration repository.

Software component SAP BASIS.

Regards Mario

Former Member
0 Kudos

Thanks for quick responce. As i understand ccbpm(sync-async) bridge gets the response and sending that response back to the synchronous process, but in our case when a webservice is called at XI side, we should just acknowledge them not to wait for the result from SAP(IDoc status). Can we extract the content from the same request and send them like message has been persisted in XI???

Appreciate your help.

Former Member
0 Kudos

Hi,

if you only want to close the sync step from the webservice call there is a simple idea that could help.

When receiving the webservice call add a transformation step in the BPM (in the sync-async bridge BPM as second step). In this step add a mapping from the webservice outbound message to the response. Fill in whatever you need, e.g. constants. If I understand right, you only want to close the sync call.

>With the mapping in the transform step you will fill a container element for the response which you can use in the close s/a bridge step to send the response.

Regards

Dirk