cancel
Showing results for 
Search instead for 
Did you mean: 

Mail- XI - File

Former Member
0 Kudos

HI,

I am working on a mail-Xi-File scenario, wherein I have to pick Subject, From, To, Content from

the mail and transfer the same to a file on reciever side.

1. What should be the sender reciever data structure.

2. Is graphical mapping fine ?

Please tell me how can i do this one.

Thanks...

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

1. Sender XI payload with mail package:

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

<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">

<Subject>Subject</Subject>

<From>email_of_sender</From>

<To>email_of_receiver</To>

<Reply_To />

<Content_Type>text/plain</Content_Type>

<Content>

This is the content.

</Content>

</ns:Mail>

2. Graphical mapping is fine

Regarsds,

Prateek

Former Member
0 Kudos

Thanks for the replies...

But i am getting the error :

exception caught during processing mail message

[158]com.sap.aii.af.mp.module.ModuleException:

com.sap.aii.af.ra.ms.api.DeliveryException: Application:

EXCEPTION_DURING_EXECUTE: caused by: com.sap.aii.af.ra.ms.api.

DeliveryException:Application:EXCEPTION EPTION_DURING_EXECUTE:

com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation:

Cannot produce target element /ns0:MT_Mail_to_File_file/Subject.

Former Member
0 Kudos

I have done all the settings as explained in the blog :

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb155...

But still getting this error.

Prateek, wanted to ask if the structure of both sender and reciever would be same. ?

Answers (3)

Answers (3)

Former Member
0 Kudos

Threads indeed helped.

Former Member
0 Kudos

hi,

here is the link how to configure sender mail adapter...

[http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm]

1. In sender adapter under default xi parameters u need to maintain ur name space and ur interface name..

Under mail atributes u must choose mail package ..

2. The structure should be

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

<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">

<Subject>Subject</Subject>

<From>namea</From>

<To>nameb</To>

<Reply_To />

<Content_Type>text/plain</Content_Type>

<Content>

This is the content.

</Content>

</ns:Mail>

3.you can able to use graphical mapping ...

Regards,

Prakasu.

Former Member
0 Kudos

Have done it all...

Prateek...can u help !!

Former Member
0 Kudos

Plz help @@

Former Member
0 Kudos

i am getting the error :

exception caught during processing mail message

158com.sap.aii.af.mp.module.ModuleException:

com.sap.aii.af.ra.ms.api.DeliveryException: Application:

EXCEPTION_DURING_EXECUTE: caused by: com.sap.aii.af.ra.ms.api.

DeliveryException:Application:EXCEPTION EPTION_DURING_EXECUTE:

com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation:

Cannot produce target element /ns0:MT_Mail_to_File_file/Subject.

Please help...

Former Member
0 Kudos

Hi,

I have few question here,

1. Yhe DT of both sender and receiver aregoing 2 b same ?

2 Is it 1:1 mapping is to be done.

Need your help.

Former Member
0 Kudos

hi snehal,

This is a simple scenario.

First we need data type at

Sender end

Receiver end

For Sender end

https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt

Download the ximail30.xsd from the above link (you need market place user)

For receiver end

Construct the data type according to your requirement.

From

To

Subject

from sender end data type to receiver end data type you map the required elements (1:1 graphical mapping)

Thats it at the design end and the configure the adapters at Integration Directory.

You can also refer this blog for some help

/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address

Hope this helps

Regards

Ramesh P

Former Member
0 Kudos