cancel
Showing results for 
Search instead for 
Did you mean: 

How to notify business user when third party server is down in synchronous interface

Former Member
0 Kudos

Dear All,

We have developed few synchronous scenarios(mostly ABAP proxy to HTTP_AAE ) running using PI system. these interfaces are with the bank where customer sends the payment request to bank to pay their vendor.

If bank bank server is down in PI I receive the error with HTTP status code 500, either the request will get timed out after the specified timeout timed in the system. However, these message does not come on the actual response structure in PI, so no response message will get updated in ECC tables and business users will not be able to know where is the problem its in PI or bank. Could you please help me to get the Below are the few quires.

  1. Can we do something in PI to notify business user in ECC for these synchronous interfaces if bank server is down
  2. Can we send some failure message to ECC if sync interfaces did not successful in PI

Thanks,

Farhan

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Farhan,

standard would be to setup an alert for the receiver adapter.

In additon you can catch the error and execute the notification from the sender system:


lo_sys_exc type ref to cx_ai_system_fault.

try.

call method...

....

catch cx_ai_system_fault into lo_sys_exc.

/Udo

Former Member
0 Kudos

Dear Udo,

Thanks a lot for helping me. could you please clarify the below points.

  1. For Alert approach, can we send alert based on HTTP status code, I mean let say if third party server is down and receiver adapter in PI received the status code as 500.
  2. For approach two, along with the above sample code, we will have to define fault message mapping in PI as well for inbound interface, right? please correct me if I am wrong.

Regards,

Farhan

udo_martens
Active Contributor
0 Kudos

Hi Farhan,

to 1. No, you would not get informed about the http status code. Just that the adapter could not execute the request.

to 2. No, you don't need that. Only for giving back application faults.

/Udo

Former Member
0 Kudos

Thanks again Udo, I am sorry for being late here. Basically business users are looking for the proper Error message if either bank server or PI server is down by any reason.

If I we will configure alert, and PI is down then it will not work. for creating fault message, but if bank is down do you think we send the proper error message to end user based on the error.


If possible could you please provide me more details on how to achieve by creating fault message.



Regards,

Farhan

Answers (1)

Answers (1)

manigram
Active Participant
0 Kudos

Hi,

based on the http response code we can identify there is a problem in web service. Before posting the data check the http response code if it is 200 it will be successful, than post the data otherwise return some exception message to user.

Regards,

Manigandan 

Former Member
0 Kudos

Hi Manigandan,

Thanks a lot for the prompt response.  Could you please provide me more details on this, few examples, I mean how can we check the status the response message in PI before sending to ECC.

Thanks,

Farhan

Former Member
0 Kudos

Hi Manigandan,


Could you please help me here.


Thanks,

Farhan

Former Member
0 Kudos

Dear Experts,

Any help on the above requirement please.

Thanks,

Farhan

Former Member
0 Kudos

Dear All,

Still I am waiting for your input here. Please help me to fulfill this requirement.

Thanks,

Farhan