Skip to Content

IDoc - REST scenario. Trigger error if the response is not successful.

Dear Expert,

I have an IDoc to REST (Async to Sync) scenario, I need to trigger an error in case the response from the REST contains any error. So the alert monitoring will trigger an email to the interested party so they could re-send a new IDoc for re-processing.

How to trigger this kind in error? In the message mapping?

Thank you,

Regards.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 22, 2018 at 04:24 AM

    Hi,

    You need to create two interfaces with request-response bean with first interface receiver channel. The response will capture and send back to the email recipient using mail adapter.

    Please refer the below blog for IDOC to SOAP async sync scenario. In your case, you need to use the rest as receiver adapter and in case of the Proxy target for the 2nd interface, use the mail adapter.

    https://blogs.sap.com/2015/04/15/asyncsync-bridge-idoc-async-soap-sync-proxy-async/

    regards,

    Harish

    Add comment
    10|10000 characters needed characters exceeded