cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with sender mail adapter

Former Member
0 Kudos

Hi XI Gurus

We have gone through a lot of blogs and searched a lot on the XI forum on how to configure the sender mail adapter with attachments but we still can't get it working at our site. Here are the issues -

1. When we define our data type in the IR as let's say out_email_dt with namespace "http://www.xyz.com" the mapping fails. In the monitor(SXMB_MONI) the message from the sender mail adapter comes in like this -

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

- <!-- Request Message Mapping

-->

<xim:Mail xmlns:xim="http://sap.com/xi/XI/Mail/30" encoding="quoted-printable">

<Subject>test 10</Subject>

<From>"Test User" <test.user@xyz.COM></From>

<To>"XI Test Account" <xitest@xyz.COM></To>

<Content_Type>text/plain;charset="us-ascii"</Content_Type>

<Date>2007-05-08T05:34:38Z</Date>

<Message_ID><FAD571F47AE5404C8E6D407435DEC0FD016B8272@office.xyz.com></Message_ID>

<Content>This is the voice of the Mysterons=0A</Content>

</xim:Mail>

Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".

Question 2 - If you look at the content of the <From>,<To>,<Message_ID> tags you will see that there is content with <> tags which is causing the message mapping to fail. Is there a way of telling XI that they are not xml tags but part of some other tags?

2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.

3. Can we use masks in the PayloadSwapBean for attachment names like "." as we don't know what the file name is going to be as we have multiple partners who will be sending emails to the same address and with different file formats.

Thanks in advance.

Salil

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hey Michal

Thanks for the reply. Could you elaborate on tthe first part please -

"if you have the attachment in payload you can it without any mapping

(this will it will unchanged) to a file adapter"

Thanks

Salil

Former Member
0 Kudos

Thanks a lot for that Michal.

It worked like a charm after following your blog to a "T". I am still faced with a problem though. The email attachment is a .csv file and the requirement is to either send the attachment unchanged to a file system through the file adapter ot convert it into IDOC.

What would be required for that?

Regards

Salil

MichalKrawczyk
Active Contributor
0 Kudos

hi,

if you have the attachment in payload you can it without any mapping

(this will it will unchanged) to a file adapter

of you can map it (java mapping, abap mapping)

and map it to IDOC - you can also use content conversion module

do map csv to xml format

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>Question 1 - do we have to define our data type as "Mail" under the namespace "http://sap.com/xi/XI/Mail/30".

do exactly as shown in my blog:

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

>>>>2. Also the PayloadSwapBean doesn't seem to swap the payload to be the attachment.

do similarly as shown in my blog:

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

the everything will work

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>