cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the success status to error status for sync message

Former Member
0 Kudos

Hi PI Gurus,

We have a secnario, proxy to SOAP (WS) sync interface. Where we are sending some information to a webservice using clinet proxy and we are getting the response back from the webservice.

Now the issue is, if it is not success at webservice then also it is success in PI as we are getting some response and because of this its very hard to track the errors.

Now we are planning to change the status of the message from success to error if it contains some error response.

How can we achive this from PI or using any ABAP code?

Regards,

Krishna Chauhan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I found one solution is to change the status in DB table by writing a ABAP code.

Regards,

Krishna Chauhan

Answers (2)

Answers (2)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>Now we are planning to change the status of the message from success to error if it contains some error response.

this is a very bad idea for a design - really for many reasons - desc below

>>>>if it is not success at webservice then also it is success in PI as we are getting some response and because of this its very hard to track the errors.

come on... if the WS is not successfull then you can see it in the proxy call (no or wrong response)

so you can always call it once more to the response,

further more - in case of sync interfaces you will not be logging it in on the PRD as sync interfaces are not logged on any production server,

so what you should do is:

1) make sure the WS will return a normal error or

2) reprocess the call from proxy in case you get a wrong response

Regards,

Michal Krawczyk

former_member189387
Active Contributor
0 Kudos

Hi ,

Now we are planning to change the status of the message from success to error if it contains some error response.

In your case the external ws returning the response for error with some structure .For PI it is success only .

If you want change/stop at PI level then response wont  be reached to Consumer .

better develop fault Message type and map to Response structure and handle in SAP system .