Skip to Content

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

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. )

Thanks

Meenakshi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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?

    Add comment
    10|10000 characters needed characters exceeded