‎2005 Mar 29 5:53 PM
We have some documents that the user occasionally uploads to a quotation in ISA for individual line items. I need to take these documents, zip them to save memory and pass them along to a 3rd party document management system.
Does anyone know if there is any functionality in R/3 (or CRM) to zip files? I've searched SE37 for function modules related to data compression but haven't found anything that looks relevant.
Thanks,
Brent
‎2005 Mar 29 6:38 PM
It looks like there may be a solution in the classes (se84 or se80) ... look at CL_ABAP_GZIP_BINARY_STREAM ... i havnt used it but sounds like what you are looking for.
Roger
‎2005 Mar 29 6:38 PM
It looks like there may be a solution in the classes (se84 or se80) ... look at CL_ABAP_GZIP_BINARY_STREAM ... i havnt used it but sounds like what you are looking for.
Roger
‎2005 Mar 29 7:13 PM
Those classes only apply GZip compression to a data stream; they do not create ZIP Files. The ZIP file specification has much control information to create a directory of the internal contents of the file. You can find the specifications on the internet. I started to create my own classes that would use the SAP CL_ABAP_GZIP* ones but also include ZIP File creation. However I'm afraid I just haven't had time to finish them.
‎2005 Mar 29 9:19 PM
Thanks for the help, I've been looking on the Java side also for functionality and it seems that this issue might be better dealt with via java. There is some functionality to both compress and decompress files. If we can zip the files on the fly before they get to SAP and with out having to deal with standalone applications it should greatly improve the processing time. That way all we'll have to do is pass the zip along to the 3rd party stuff and retrieve the url for the file and store it somewhere on the sales document.
thanks.
Regards,
Brent