Skip to Content
avatar image
Former Member

PDF attachment in mail adapter

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 20, 2006 at 05:08 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 20, 2006 at 05:24 AM

    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-91c6d38c5816

    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

    Add comment
    10|10000 characters needed characters exceeded