2010 Feb 04 7:23 AM
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.
2010 Feb 04 7:43 AM
Just a thought:
[CL_ABAP_ZIP|http://www.sdn.sap.com/irj/scn/advancedsearch?query=cl_abap_zip]
2010 Feb 04 7:48 AM
[Send email with multiple zipped attachments |http://wiki.sdn.sap.com/wiki/x/koPvB]
2010 Feb 04 8:55 AM
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 :
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |