cancel
Showing results for 
Search instead for 
Did you mean: 

Access payload and send as mail

Former Member
0 Kudos

Hi,

Is it possible to access payload in the xi pipeline and send as a mail. Actually i am throwing a runtime exception in meaage mapping and that is geting added in sxmb_moni and now i need to send this as an email attachment(the payload from moni). Can MessageTransformBean be useful.

Any ideas, does sp15 provides any advanced functionality for the same.

Anirban.

Accepted Solutions (0)

Answers (2)

Answers (2)

STALANKI
Active Contributor
0 Kudos

it should be just a mapping exception.

Read the artcle by stefan grube on sdn.

Former Member
0 Kudos

Thnaks sravya, But Stefan is an eminent author with many guides and weblogs to his credit.It would be nice if you get me the link please.

Anirban.

STALANKI
Active Contributor
0 Kudos

/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step

might help.

Former Member
0 Kudos

Hi,

I think i was not that clear in framing my question, ok can i access the payload from sxmb_moni?? I had seen that weblog, and it donot access the main payload but attachment. Actually i am using /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping

After that my runtime exception gets added in the payload, but how do i access this and send as an email.

Will module Swapbean etc help??

Anirban.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

are you talking about the payload of the XI SOAP message?

(the place where XI message - xml is being placed)

if so they you can access it without any

modifications - they payload gets send in the mail

it's a standard...

Regards,

michal

Former Member
0 Kudos

Hi Michal,

Great to have you again,

Actually we need the soap message under the SOAP Header --error, can that be accesed directly, i mean here is a sample from moni.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_rb_mm1_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>

<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>During the application mapping com/sap/xi/tf/_rb_mm1_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

This is under the error in soap, can we access it via email adapter or can ALERTS Help.

Michal, looking for your usual expertise

Anirban.

Former Member
0 Kudos

Hi,

anyone for this one?? i need to access the error xml from sxmb_moni.