10-17-2007 1:11 PM
Hi,
We are Upgrading Ecc4.7 to Ecc6.
We found that TABLE_COMPRESS and
SAPWL_STATREC_READ_FILE are Obsolete.
Please suggest the Replacement for these Function Modules
10-17-2007 1:13 PM
have a look at class
CL_ABAP_GZIP
*********************************
what you could do is using call transformation transform your itab to XML form and then use CL_ABAP_GZIP to zip it.
to read it back, unzip using CL_ABAP_GZIP and then again use call transformation and XSLT program to convert it to your itab format.
10-17-2007 1:13 PM
have a look at class
CL_ABAP_GZIP
*********************************
what you could do is using call transformation transform your itab to XML form and then use CL_ABAP_GZIP to zip it.
to read it back, unzip using CL_ABAP_GZIP and then again use call transformation and XSLT program to convert it to your itab format.
10-17-2007 1:15 PM
Sandhya,
As Vasu suggested you can use class <b>cl_abap_gzip</b>
try.
call method cl_abap_gzip=>compress_text
exporting
text_in = xsccpvapitem
importing
gzip_out = it_attach2
gzip_out_len = 255.
.
endtry.
Regards
Aneesh.
10-17-2007 2:12 PM
Hi Sandhya,
don't care too much for obsolete: SAP uses tons of obsolete functions in so many standard applications.
Regards,
Clemens
10-18-2007 12:04 PM
10-22-2007 8:18 PM
There are several functions to read statistics records:
SAPWL_STATREC_DIRECT_READ is close to what you're currently using.
SAPWL_STATREC_READ_REMOTE is similar but remote-enabled.
Or you can use one of the newer NetWeaver functions.
Use SE37 and look for SAPWL_* or SWNC_*.
--
Tim