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: 

SAPWL_STATREC_READ_FILE

Former Member
0 Kudos

Hello i am working under a upgradation project. Can some one suggest me the replacemnet function module for 'SAPWL_STATREC_READ_FILE'

thanking you,

Srinivas

4 REPLIES 4

Former Member
0 Kudos

hi

good

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.

thanks

mrutyun^

Former Member
0 Kudos

Hey Manjunath,

i do find this solution , but we do have a RPM for the above mentioned fm and that is

SAPWL_STATREC_DIRECT_READ.

Can anyone provide me a solution to map both fm's.

regards,

Srinivas

0 Kudos

Check the link below:

Good idea to use STAD to double check if there are statistic records.

Also, realize that SAPWL_STATREC_DIRECT_READ read statistics records only for the instance it is run on. If the activity was on other instances (application servers) of the system, you won't see the records.

Use SAPWL_READ_STATISTIC_FILES to get records from all instances of an SAP system. Here's the call graph for STAD on 4.7:

STAD R RSSTAT26

FM STUD.SAPWL_READ_STATISTIC_FILES – get workload and application stats from all instances of system

RFM STUD.SAPWL_READ_STAT_A_ASTAT_FILES – get workload and application stats from current instance

FM STUW.SAPWL_STATREC_DIRECT_READ – get workload stats from current instance

FM STUW.SAPWL_ASTAT_DIRECT_READ – get application stats from current instance

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_*.

Reward points if useful.

Edited by: Sravan Prakash.V on Jan 19, 2008 10:08 AM

Former Member
0 Kudos

Hey shravan ,

if possible give me a simple solution. i mean the steps.

this is all more complicated

Edited by: srinivas T on Jan 19, 2008 9:24 AM