Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

zip uploaded documents

Former Member
0 Likes
713

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
669

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

3 REPLIES 3
Read only

Former Member
0 Likes
670

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

Read only

0 Likes
669

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.

Read only

0 Likes
669

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