Application Development 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: 

Urg. Replacement for the FM's TABLE_COMPRESS & SAPWL_STATREC_READ_FILE

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

Clemenss
Active Contributor
0 Kudos

Hi Sandhya,

don't care too much for obsolete: SAP uses tons of obsolete functions in so many standard applications.

Regards,

Clemens

Former Member
0 Kudos

Hellllllloooo,

Any Updates

0 Kudos

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