cancel
Showing results for 
Search instead for 
Did you mean: 

PDF attachment in mail adapter

Former Member
0 Kudos

Hi

I am reading mailbox using mail adapter. But i cannot read the PDF attachment in that mail. I use "PayloadSwapBean" in the module, but it is packing the mailbody to the text file, but they is no sign of PDF attachment. How to read the attachment.

Regards

Andy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anandan,

Please go through my article, it might help you out.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c...

The payloadswapbean as well as the message transform bean have been used here, and it can be used to pick any binary file.(including pdf's)

cheers,

Prashanth

Former Member
0 Kudos

Hi Anandan,

You can use Java/ABAP proxies to do this job for you..

Java Proxy >> will read the mail(with the attachments) with the help of Java APIs and send the message into XI ABAP Proxy >> for this you will have to first convert the attachment into a message and then you can proceed in the regular fashion.

Not all adapters can process attachments, I'm not sure why you are having trouble with using module processor in the mail adapter. Just check if the service pack that you are using supports this feature.

If you are on WAS 6.10 and above you can achieve this and there is an excellent weblog by Thomas Jung on this topic at

/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher