cancel
Showing results for 
Search instead for 
Did you mean: 

Email Attachements in XI

Former Member
0 Kudos

Hi,

I need to receive Email with attachements (ZIP Files) with XI. I have to "detach" this files and transfer it to my working folder.

Is this operation with the sender Adapter possible.

Thanks a lot for help.

Mat

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Mat,

>>>>I have to "detach" this files and transfer it to my working folder.

sure this is possible but you'll have to write a little

<a href="http://help.sap.com/saphelp_erp2004/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/content.htm">adapter module</a> to do that with the help of the mail

sender adapter because in standard it's not possible

Regards,

michal

-


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

Former Member
0 Kudos

Thanks Michal,

sorry just one question. Where can I find more informations about Module development? Or do you have a simple example?

Anyway thank's lot for your support

mat

Former Member
0 Kudos

Hi,

<i>Where can I find more informations about Module development? Or do you have a simple example?

</i>

Start with sap service market place--> how to guide,

https://websmp106.sap-ag.de/nw-howtoguides

down load, "How to create modules for the J2EE adapter engine.pdf".

Regards,

Anirban.

MichalKrawczyk
Active Contributor
0 Kudos

hi Mat,

you can also have a look at this one:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6c...

Regards,

michal

-


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

Former Member
0 Kudos

Thank's Michal

I will look at your tips.

By

Mat

MichalKrawczyk
Active Contributor
0 Kudos

no problem:)

Regards,

michal

-


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

Former Member
0 Kudos

Hi Michal,

my requirement have changed. I need to take the Email (ZIP File)Attachements into the message payload and write it to a folder (with file adapter).

It's possible?

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

yes I believe so:)

1. maybe you can even do it without developing your own module adapter:

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

if you cna do it with the above then you can do everything in standard

2. if not you'll just have to write a small module adapter

that will put the zip file in one of the message tags

and then with file adapter you can do the rest without any problems:)

Regards,

michal

-


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

Former Member
0 Kudos

Hi Michal,

the first Step (attachements in payload) work, but now i don't know how can i the content of payload with the receiver adapter (File Adapter) and mapping, into my folder.

Thank yo nyway for your support

Mat

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you just have to configure file adapter to use

content conversion

then you can tell your file adapter

put everything (zip) from xml tag "something"

to file.zip and the content of the tag "something"

which contains your zip file will be transported to the file.zip

Regards,

michal

-


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

Former Member
0 Kudos

Hi,

thank you very much.

What do you mean with Tag "something". In my email message definition I have just the standard structure and the attachements is stored in a another Payload.

Thank's Mat

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you can store the whole ZIP in one tag

and then use it in the file adapter later on

but I guess this is up to you how oyu store it:)

Regards,

michal

Former Member
0 Kudos

Hi,

my problem is how can i access to the payload with attchements data during mapping definition.

Thank's alot for your support

mat

MichalKrawczyk
Active Contributor
0 Kudos

it would be much easier if you could put your zip file

in one of the payload's tag

since you're not doing anything with it

(you just want to put the zip in some other folder right?)

try using the weblog I've shown you to swich the payload

if this won't work try creating a simple adapter module

which will do it for you

Regards,

michal

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mattia,

You can receive attachments in SAP XI, but you also need to detach/unzip, this part i am not sure.But regarding the first part have a look at this approach,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/40728f7b-0401-0010-d9bc-8c7...

By the way you need to unzip the attached files, am i correct on this Mattia?

Regards,

Anirban.