Skip to Content

unzip files from .7z and .Gz ZIP file types in ABAP

Nov 07, 2017 at 04:26 AM


avatar image

Hi All,

I am working in DMS module.

I have a requirement to extract files from a ZIP folder. I have used CL_ABAP_ZIP class for the same. It was working fine. But now I have to add two new ZIP extensions - .7Z and .GZ. These extensions are mainly used in Unix systems.

CL_ABAP_ZIP does not support these file extensions. Is there a way to extract files from these ZIP extensions ?

( As per my requirement, if a user attaches a ZIP file to a document while creation, the files should be automatically unzipped, extracted and attached to the document. )



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Nov 07, 2017 at 05:56 AM

Generally speaking, only frequent business file formats may be handled within an ABAP system. For other formats, use external Tools: install them on your application server, register them in transaction SM49, and call them via SXPG_* function modules.

For GZ, I never tried, but does CL_ABAP_GZIP work?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks. I have convinced the user with the same solution. I will be only unzipping the .ZIP extension now.