Skip to Content
avatar image
Former Member

How to get response from Rest PI receiver adapter

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

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

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 23, 2016 at 05:56 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded