cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Adapter ZIP File Attachment

Former Member
0 Kudos

Hello,

I have created an interface using the mail receiver to mail a file as an attachment to an email address. I have used an ABAP mapping to create the Mail message associating the required content of Mail message. This all works fine and the emails with the required attachments are delivered successfully.

I now need the ability to ZIP the file attachments. I have had a look through some of the forum messages and it looks like I am going to have to create a java module for the receiver mail adapter to ZIP the file.

Has anyone done this before? If so can you give me some pointers. I have developed modules for the file adapter but am not sure how to ZIP.

Alternatively can this be done as part of the ABAP mapping. I have started looking at class CL_ABAP_ZIP. I am now able to compress the content but this does not create a valid archive as the attachment.

Any help would be much appreciated.

Thanks

Gary

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gary

Do email me and i can send you a java code which zips attachments.

cheers

Sameer

PS: You can find my mail id in my Business Card

Former Member
0 Kudos

Thanks for all your help! After looking at the code I think that this should solve the problem. Will let you know how it goes.

Former Member
0 Kudos

Sameer,

Can you please mail the code to KiranReddy1976@gmail.com

Thanks

Kiran

Former Member
0 Kudos

you can post the code as an SDN code sample and get reward points.

Former Member
0 Kudos

Dear Sameer ,

Can you send me the Java Code which zips the folder or files .

My email id is prabhatsap@gmail.com

Regards

Prabhat

Answers (0)