cancel
Showing results for 
Search instead for 
Did you mean: 

How to get response from Rest PI receiver adapter

former_member329434
Participant
0 Kudos

Hi Friends,

My scenario is ECC(IDOC)-->PO 7.4--->REST API(WEB-PORTAL).

I have configured above scenario successfully and could call Rest service and post data without any issues. Now, the problem is though I post some wrong data it is showing with status code 200( successful) . It means, it is only checking whether REST URL was successfully reached or not.

manually, when I'm trying to simulate with some test data in the REST API's ... I 'm able to see the response with proper error log.

" product got created successfully", or " some id is not available for this product" .....

Now my concern is...How do I configure to get response from REST API and show it in PI logs.

Please guide from your experiences how to handle this.

Regards,

Suman.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190293
Active Contributor
0 Kudos

Hi Suman!

Take a look at this blog:

https://blogs.sap.com/2015/04/10/pi-rest-adapter-custom-error-handling/

Maybe it might help.

Regards, Evgeniy.

former_member329434
Participant
0 Kudos

Hi,

I hope requirement is genuine and may be most of you had come across such scenarios. Can anyone guide how to accomplish this.

Thanks in Advance.

Suman.