cancel
Showing results for 
Search instead for 
Did you mean: 

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

suwandi_cahyadi
Contributor

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Harish
Active Contributor

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