cancel
Showing results for 
Search instead for 
Did you mean: 

In Synch comm, what happens to response message if sender fails?

Former Member
0 Kudos

Hi All,

I have came up with the following question:

I have a synchronous scenario type: WS -> PI -> Proxy.

Lets say that the external system is able to consume the Web Service, and send the data to PI, and from there to the SAP ERP. SAP ERP starts processing the message (calling function, BAPIs, etc). During that execution the external system for some how cuts its connection (session) to the WS that PI is exposing.

What will happen then?

In SAP ERP I will have some processes that were executed, the response message will be sent back to PI, but not to the legacy system. So the data will not be consistent, as ERP was able to perform its process but the Legacy system will never know that these were done, so I will have an unbalanced scenario.

One of my questions is, will SAP ERP know that the connection between the legacy system and PI was cut, and there for ERP will stop, cancel or not perform its processes?

If the response message was sent back to PI by the ERP, but this message could not reach the legacy system. How can we let know the legacy system that ERP did all of its processes and that it should "update" their data according to the response message sent by ERP?

As we all know, we can not re-process a synchronous message. So, what will be the best way to mantaining the consistency of the DATA between the two systems (ERP - Legacy)?

Thanks and regards,

Felipe

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member200962
Active Contributor
0 Kudos
One of my questions is, will SAP ERP know that the connection between the legacy system and
 PI was cut, and there for ERP will stop, cancel or not perform its processes?

There is a possibility of triggering an alert when your Target system is down (i suppose this is what you mean when you say connection is cut)....the udf can be implemented in a mapping.....just check the blog:

/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function

from the blog:

We can use this code in the Exception Handler block of the try u2013 catch block of the code to 
publish the JMS message, and, whenever the JMS service was down, the Exception handler block is 
called and the Alert is triggered to the Operations Support team.

check if this suits your requirement

Regards,

Abhishek.

prateek
Active Contributor
0 Kudos

One of my questions is, will SAP ERP know that the connection between the legacy system and PI was cut, and there for ERP will stop, cancel or not perform its processes?

In a usual sync communication, ERP system won't be knowing if the Legacy system is down. Its PI that could havethis information.

How can we let know the legacy system that ERP did all of its processes and that it should "update" their data according to the response message sent by ERP?

One way is to send an alert to the respective administrators to resend the message from the source. Other would be to perform exception handling in BPM.

Regards,

Prateek

Former Member
0 Kudos

Hi all,

I must add that this is a simple Sync scenario. No BPM involved.

Felipe

prateek
Active Contributor
0 Kudos

I understand you want it simple

I suggested the only possible ways.

Regards,

Prateek