cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SOAP Timeout requirement using SAP PI

Former Member
0 Likes
2,149

Hi,

The *synchronous* scenario is as shown below

SAP CRM - ABAP Proxy -> SAP PI -- webservice-call --> External Partner

The requirement is that, SAP CRM needs to set a time-out in one of the screen incase the synchronous call takes more than 'n' seconds.

1st case: What if the web-service takes 'n' seconds to return a response

Resolution: The external partner has agreed that if the web-service takes 'n' seconds, then they would set a generic status and send a response message back to SAP PI

2nd case: What if the web service URL is not reachable. How do we achieve the time-out requirement at SAP CRM.

In this case, since this is a synchronous scenario, a auto-generated technical error message would be sent back by SAP PI to SAP CRM. Now the question is

- Will SAP CRM be able to read/parse that technical error message in their system (since it is not in the expected response format)?

- Does SAP CRM have the ability to set a time-out parameter at their end itself instead of depending on the web-service response or SAP PI's technical response?

Need you inputs in the 2nd case. And also any suggestion to achieve the requirement is welcome.

Regards,

Prajeet

View Entire Topic
Shabarish_Nair
Active Contributor
0 Likes

Now the question is

> - Will SAP CRM be able to read/parse that technical error message in their system (since it is not in the expected response format)?

the proxy will go into a system fault/application fault.

you will need to handle this and then throw a readable message back to CRM user.

> - Does SAP CRM have the ability to set a time-out parameter at their end itself instead of depending on the web-service response or SAP PI's technical response?

>

> Need you inputs in the 2nd case. And also any suggestion to achieve the requirement is welcome.

>

> Regards,

> Prajeet

you can set a timeout at SOAP adapter. Check the SOAP FAQ OSS note for the parameter. this will again raise an exception in ABAP proxy which you should be able to handle