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: 

what's new version for sapwlpfnrm structure

Former Member
0 Kudos

sapwlpfnrm(SAP Workoad: Stat.record: Main statistic record) is old version of SAP Workload Collector. Do any one know the new version of this structure which can replace of sapwlpfnrm?

3 REPLIES 3

mvoros
Active Contributor
0 Kudos

Hi,

probably you are looking for SGLWLPFNRM. You can see all structure related to workload collector in package SAPWL_COLLECTOR.

Cheers

Former Member
0 Kudos

I do really appreciate your help. Actually, the problem I met was we were using function module 'SWNC_GET_STATRECS_FRAME' to get workload statistics and save the data into 'SWNCGLMAINREC' structure, and then use move -corresponding instruction to copy data from 'SWNCGLMAINREC' structure to 'sapwlpfnrm' structure. But the components type between the two structure is a little different , for example, 'QUEUETI' in 'SWNCGLMAINREC' is defined with 'DEC 12' but in 'sapwlpfnrm' is 'DEC 10'. As the result, it may cause potential overflow ABAP dump if the value of 'QUEUETI' in 'SWNCGLMAINRE' is exceed the maximum of 'DEC 10' but not reach 'DEC 12'.

When I check the new version of 'sapwlpfnrm' you mentioned, the 'QUEUETI' is still with 'DEC 10', that's to say, the problem i met is still exist with the new version.

So what I really want is to avoid potential overflow ABAP dumps if a structure could replace 'sapwlpfnrm' structure and can copy data from 'SWNCGLMAINREC' to it.

mvoros
Active Contributor
0 Kudos

Hi,

I don't know why those fields have different data type but probably it's somehow converted value (maybe ms to s). But you can try to catch an exception to avoid program dump.

Cheers