Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

zip attachement

Former Member
0 Likes
625

Hi Gurus,

I need to compressed/zipped an email attachment. I have found class that can be used for my requirements. Can you help me on how to use this class CL_ABAP_ZIP. Email cant be processed in SOST due to a large email size. Your help is very much appreciated.

Thanks so much in advance.

Hi Gurus,

I need to compressed/zipped an email attachment. I have found class that can be used for my requirements. Can you help me on how to use this class CL_ABAP_ZIP. Email cant be processed in SOST due to a large email size. Your help is very much appreciated.

Thanks so much in advance.

3 REPLIES 3
Read only

Sm1tje
Active Contributor
0 Likes
570

Just a thought:

[CL_ABAP_ZIP|http://www.sdn.sap.com/irj/scn/advancedsearch?query=cl_abap_zip]

Read only

former_member156446
Active Contributor
0 Likes
570

[Send email with multiple zipped attachments |http://wiki.sdn.sap.com/wiki/x/koPvB]

Read only

Former Member
0 Likes
570

Very nice blog on sending email from ABAP --> Emailing in ABAP

http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/789] [original link is broken] [original link is broken] [original link is broken];

I do not think you will be able to send a file with huge size at one shot. You can better split it into pieces and send.

install a 3rd soft zip tool on you application server,ex.7-zip or winrar.

Using 7-zip as demonstration.

Go to use sm69 to setup an external operation system command:"7z a -v5m target.zip file.pdf u201C,

In your program, call function 'SXPG_CALL_SYSTEM' to execute this command and you can get exact size you want.

For compression use cl_abap_gzip :

http://wiki.sdn.sap.com/wiki/display/profile/GZIP];