cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC -> XI -> HTTP/MAIL (How to get the http response and send an email?)

Former Member
0 Kudos

Hello experts,

Our scenario is IDOC->XI->(HTTP and EMAIL), because we want to do a HTTP post and send a confirmation email. This can be implemented using message split ([with|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2748] [original link is broken] [original link is broken] [original link is broken]; or [without|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3115] [original link is broken] [original link is broken] [original link is broken]; BPM).

What we would like to know is, if it is possible to get the http response in this scenario and send it via email. At the moment, we don't get the response at all, because IDoc scenarios are asynchronous.... but this way, we don't know, if the http server could process the message correctly.

So we need a scenario like:

IDOC -> XI -> HTTP -> HTTPresponse -> XI -> MAIL

How can this be done?

Best regards,

David

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

You need BPM for this scenario.

Model a receive step, a synchronous send step and a final async send step.

Do mapping from Idoc to http request and mapping from Http response to mail.

Hope that helps

Stefan

Former Member
0 Kudos

Thank you for your answers,

I made a mistake in my first post: IDOC-XI-HTTP and message split ALWAYS requires BPM, because message split without BPM only works for adapters which are part of the Adapter Engine! Am I right?

hemant_chahal
Contributor
0 Kudos

Yes you are absolutly right.

with BPM yon can achieve this easily.

Former Member
0 Kudos

What do I have to do, when I want to combine IDoc information and information of the http response into the email?

How do I save the IDoc, so that I can map it a second time, for the confirmation email? Are there any weblogs on such issues?

Best regards,

David

stefan_grube
Active Contributor
0 Kudos

You need a 2:1 mapping. source interfaces are Idoc and Http response, target interface is the mail.

As you can do his only for abstract interfaces, you have to create an abstract message interface based on the IDoc structure.

For the http call you need abstract async message interfaces representing request and response which you can use for the mapping and for the container variables inside the BPM.

Regards

Stefan

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi David!

If you are able to send any Http message in reference to message from XI (eg. with Idoc number or msg-id) there is no problem to process it in your scenario (even if comunication is asynchronous).

Regards,

Radek