02-02-2010 3:42 AM
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?
02-02-2010 3:59 AM
Hi,
probably you are looking for SGLWLPFNRM. You can see all structure related to workload collector in package SAPWL_COLLECTOR.
Cheers
02-02-2010 5:46 AM
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.
02-02-2010 10:31 PM
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