Application Development 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: 

Zip excel attachment

Former Member
0 Kudos

hello everyone,

I am converting an internal table to excel attachment which is to be sent as an email via a background job.

In certain case, the size of the attachment is more than the limit that is permissible on our network.

I think if i could somehow zip the attachment and reduce the file size, my requirement would be fulfilled.

is there any fm or class which can solve my purpose?

Thanx in advance.

Regards,

Xineohpi

2 REPLIES 2

Former Member
0 Kudos

Hi,

If you have a netweaver system, Check the class CL_ABAP_ZIP.

First add the file(s) you want to zip with the ADD method and then receive the zipped archive with the SAVE method into a xstring.

If you have only a 4.7 System, you can copy CL_ABAP_ZIP from a netweaver system into a Z* Package Class.

or check BCS_EXAMPLE*.

Thanks & regards.

0 Kudos

hi

I checked the CL_ABAP_ZIP class. How can i use it to zip the excel sheet which i am creating in my program?

and i have to send this zip file as email attachment.

Regards

Xineohpi