Skip to Content

How to handle runtime exceptions for sync scenario?

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Apr 15, 2011 at 09:12 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 15, 2011 at 09:18 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 15, 2011 at 09:33 AM

    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-eb5d95e03747?quicklink=index&overridelayout=true

    Divyesh Vasani

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 15, 2011 at 10:19 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.