cancel
Showing results for 
Search instead for 
Did you mean: 

Receive mail with PDF attachment into XI and send to ABAP proxy

Former Member
0 Kudos

Hi,

I have a scenario where I need to receive a mail into XI that has a PDF attachment. This attachment needs to be retained as ultimately I need to send the message into CRM via an ABAP proxy and read the attachment and load against a business partner.

However, as I am only on SP13 I do not have the parameters such "Keep Attachments" available to use.

So I have two questions:

1. How do I receive the mail into XI with the PDF attachment ?

2. How do I read the attachment in an ABAP proxy ?

Any guidance in either question would be appreciated.

Cheers

Colin.

Accepted Solutions (0)

Answers (1)

Answers (1)

moorthy
Active Contributor
0 Kudos

Hi,

I think, this can be easily done with Java Proxy, which will read the mail(with the attachments) with Java APIs and send the message into XI and then map with the Target ABAP proxy structure .

<i>2. How do I read the attachment in an ABAP proxy ?</i>

First you need to convert the attachment into Message and then you can proceed with normal way.

And also, you can try with Adapter modules in the Mail Adapter for the same.

This is just my views`

Thanks,

Moorthy

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>2. How do I read the attachment in an ABAP proxy ?

First you need to convert the attachment into Message and then you can proceed with normal way.

no need to do it as XI messages are SOAP messages

(so they allow attachments)

it's better (easier + more standard) to read the attachment in the proxy with method GET_ATTACHMENTS

(IF_WSPROTOCOL_ATTACHMENTS) I believe

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>

Former Member
0 Kudos

Hi,

I would prefer to use the Mail Adapter modules in this instance to read the data into XI as I am not that strong on the Java side of things.

Can you expand a bit on how would achieve this bearing in mind I am only on SP13 ?

Cheers

Colin.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you say that there's no keep attachment

indicator but does the XI store the attachment or not?

maybe it stores all attachmens

(I work with sp16 and I don't remember how it worked with sp13)

but try maybe it accepts attachments by default

then it would be quite easy

if you use then use the attachement in abap proxy

(like I said you won't have to use any java)

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>

Former Member
0 Kudos

I was struggling with the same problem. The answer is described here in SAP Help:

http://help.sap.com/saphelp_nw70/helpdata/en/51/d5cd16235e4643ae8ec92395c4ad97/frameset.htm

Read the part about 'Accessing Protocol Classes for Server Proxies (XI Only)'.