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

need help on function module PF_READ_STAT_REC

Former Member
0 Likes
1,191

HI experts,

i am working on statistics file and found PF_READ_STAT_REC functino module is reading statistics file

in sap release 701 there is a dump

___________________________________________________________________________

TSV_TNEW_OCCURS_NO_ROLL_MEMORY

Termination occurred in the ABAP program "SAPLPFFB" - in "PF_READ_STAT_REC".

The main program was "SAPMSSY1 ".

In the source code you have the termination point in line 94

of the (Include) program "LPFFBU05".

______________________________________________________________________________

as it is sap standard program i am not able to know how to solve this.

is it because stat file is too large and PF_READ_STAT_REC function module is not able to read whole file?

if i restrict the file size of stat file will it solve issue.

or is there any other function module for SAP Release 701 for statistics.

kindly advice.

1 ACCEPTED SOLUTION
Read only

yuri_ziryukin
Product and Topic Expert
Product and Topic Expert
0 Likes
939

Hello,

in 7.01 please use the function module SWNC_STAD_READ_STATRECS.

If the function for reading statistical records dumps with no memory dump, it means that you are trying to read too many statistical records. Reduce the reading interval (start date/time, read time parameters). In large systems even 1 hour interval may contain up to millions of statistical records.

Regards,

Yuri

3 REPLIES 3
Read only

yuri_ziryukin
Product and Topic Expert
Product and Topic Expert
0 Likes
940

Hello,

in 7.01 please use the function module SWNC_STAD_READ_STATRECS.

If the function for reading statistical records dumps with no memory dump, it means that you are trying to read too many statistical records. Reduce the reading interval (start date/time, read time parameters). In large systems even 1 hour interval may contain up to millions of statistical records.

Regards,

Yuri

Read only

0 Likes
939

Hi Yuri,

thank you for the quick reply.

I was using SWNC_GET_STATRECS_FRAME function module and as you mentioned SWNC_STAD_READ_STATRECS

both are using same internal function module PF_READ_STAT_REC

calling kernel

  • read the statrec with the kernel C-call

CALL 'PfCall' ID 'OPCODE' FIELD PF_OPCODE_READ_REC

Is there any particular change in SAP Release 701 <SAP kernel....... 701 > because this shortdump is happening only in this version.

Thankyou once again.

Read only

yuri_ziryukin
Product and Topic Expert
Product and Topic Expert
0 Likes
939

> Is there any particular change in SAP Release 701 <SAP kernel....... 701 > because this shortdump is happening only in this version.

Not that I am aware of. The dump is not because of the kernel version, but because you read too much data!

Please restrict your selection.