cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle runtime exceptions for sync scenario?

gopalkrishna_baliga
Participant
0 Kudos

Hi Experts,

I have a synchronous scenario.

Request :

webservice -


> sends input data -


> PI -


> SAP R/3 --BAPI

Response:

webservice -<--- PI <


sends back any validation error or successfully processed message----- SAP R/3 --BAPI

Here a webservice uses SOAP adapter to send input data to PI. While PI uses ABAP proxy to send data to SAP R/3.

The problem is when the BAPI takes too long to process and resulting in timeout exception in PI. Is there some way we can catch this runtime exception in PI and send it to webservice as response?

Please help!

Thanks & Regards,

Gopal

Accepted Solutions (0)

Answers (4)

Answers (4)

udo_martens
Active Contributor
0 Kudos

Hi Gopal,

as mentioned by otheres: the main issue is here to detect the reason for performance lack...

>Is there some way we can catch this runtime exception in PI and send it to webservice as response?

You can invoke a Business Process and open a sync / asyn Bridge. In the process call the FM synchronous and define an exception branch which you access in case of system failure. In the exception branch execute a transformation step to fill the response container with a corresponding error message.

Regards,

Udo

Former Member
0 Kudos

HI,

Please look at the below one of the best how to guide for Sync time out issues:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059d583-a551-2c10-e095-eb5d95e03...

Divyesh Vasani

Former Member
0 Kudos

You can extend TimeOut Period for HTTP call (Goto SMICM->Services->Http), or you can traslate this scenario in a asyncronous scenario.

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Gopal,

Better to investigate why it is taking long time to give response, you have to check proxy program and function module,if you have used any wait time in FM ,please avoid that.

Take help from ABAP team they will analyze the code.

and if you want to increase time out value then go to RZ 10 then you have to edit the value .

Regards,

Raj