08-31-2005 10:59 AM
Hi,
I need unzip files stored in .zip folder using ABAP. Could you please tell me of a utility/Funtion Module or any other method which exists for the same?
Thanks a lot
Shujath
09-02-2005 5:10 AM
Hi,
I've tried using CL_GUI_FRONTEND_SERVICES=>EXECUTE but I do not know what to pass in the 'PARAMETER' argument.
Should it be some command to unzip? Please advise.
Thanks
Shujath
08-31-2005 11:01 AM
Hi Mohammed,
you just have to execute an external program from your ABAP.
For example, if the ZIP file is in the client computer you have to use the WS_EXECUTE.
Have fun
Frédéric
08-31-2005 11:17 AM
WS_EXECUTE is obsolete and should be avoided. Try CL_GUI_FRONTEND_SERVICES=>EXECUTE instead.
If you are a very recent support package level you might have the class CL_ABAP_ZIP. (I'm not sure what SP this is, it might not even be delivered yet). You can read the file to ABAP as a binary stream and then unzip it with this class. This class is different than CL_ABAP_GZIP in that it understands the ZIP file format and the CRC check. CL_ABAP_GZIP can only compress and decompress data streams.
08-31-2005 1:04 PM
Hi Thomas,
your CL_GUI_F... is from the release 4.6 or 4.7 ?
Regards
Frédéric
08-31-2005 1:51 PM
09-02-2005 5:10 AM
Hi,
I've tried using CL_GUI_FRONTEND_SERVICES=>EXECUTE but I do not know what to pass in the 'PARAMETER' argument.
Should it be some command to unzip? Please advise.
Thanks
Shujath
09-23-2005 6:12 PM
Hi,
When calling the "Execute" method, give "Winzip32.exe" in the "APPLICATION" exporting parameter and in the exporting parameter "PARAMETER" give the value "-E <zipfile - with full path> <Folder to be extracted>"
hope this helps....
Thanks & Regards,
Renjith