Skip to Content
0

How to get response from Rest PI receiver adapter

Dec 21, 2016 at 08:32 AM

139

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

avatar image
Former Member Dec 22, 2016 at 06:04 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Dec 23, 2016 at 05:56 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded