cancel
Showing results for 
Search instead for 
Did you mean: 

Zip Files

RieSe
Contributor
0 Kudos

Hi,

i want to create a collection of files (source is a sap http content server) and bundle them in a zip file. Later on i want to offer the user a link, to get the zip file. Does anyone know about existence and usage of abap classes, which can get a bundle of files and zipping them. There are some classes, but there is no suitable where used list.

Regards, Stefan

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

The IGS also has some capabilities to create ZIP Files. I'm not sure if this is available on 620 or not - but have a look for program GRAPHICS_IGS_ZIPPER_DEMO.

RieSe
Contributor
0 Kudos

I have copied the coding up to 6.20 and it works fine!

Answers (1)

Answers (1)

eddy_declercq
Active Contributor
0 Kudos

Hi,

Did you check the cl_abap_zip?

data: zip type ref to cl_abap_zip, result type xstring.

create object zip.

zip->add( name = some_file content = content ).

result = zip->save( ).

Eddy

RieSe
Contributor
0 Kudos

Hi,

not under 6.20

Regrads, Stefan

eddy_declercq
Active Contributor
0 Kudos

Hi,

The classic alternative is that you create an external command (sm49/sm69) and execute it via SXPG_COMMAND_EXECUTE

Eddy