SAP ABAP Data Element AVER_FORM (Definition routine for statistical key figures)
Hierarchy
SAP_FIN (Software Component) SAP_FIN
   FI-SL-IS (Application Component) Information System
     GRWT (Package) Report Painter / Report Writer
Basic Data
Data Element AVER_FORM
Short Description Definition routine for statistical key figures  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type FORMNAME    
Data Type CHAR   Character String 
Length 30    
Decimal Places 0    
Output Length 30    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Def. rout. 
Medium 15 Def. routine 
Long 20 Definition routine 
Heading 20 Definition routine 
Documentation

Definition

If it is to be dynamically decided with characteristic values, whether statistical key figure values are to be averaged over periods, you must enter a definition routine here. This routine has the following transfer parameters:

--> TAB    Report table

--> FIELD_MIN    Smallest value of defining field

--> FIELD_MAX    Greatest value of defining field

--> FIELD_TYPE    Type of defining field

--> FIELD_INDEX    Set index of defining field

--> PARMn_MIN    Smallest value of n. definition parameter

--> PARMn_MAX    Greatest value of n. definition parameter

--> PARMn_TYPE    Type of n. definition parameter

--> PARMn_INDEX    Set index of n. definition parameter

...

<-- SUBRC    Return code

'-->' stands for an entry parameter which is filled when the Report Writer is called up and '<--' is an output parameter which must be filled by the definition routine.

The field type can take on the following values:
'V' - Single value
'S' - Totals (set node)

By reading the field set index, you learn which sets belong to the field. You can define all of the field values belonging to the set using the field set index.

You can enter up to three definition routines. The corresponding transfer parameters are only required for already available definition routines.

The definition routine must define a return code for which the following values are determined:
0 - Averaging over periods required
4 - Averaging not required
8 - Invalid value: various types of statistical key figures will be totaled. That means, the defining fields do not explicitly define the return code 0 or 4 for the defining fields.

Use definition routine 'E13_CHECK_STAGR' in program SAPFK21R as an examples. This routine is part of statistical key figure 'SSME' (statistical quantity) in table CCSS.

History
Last changed by/on SAP  20010607 
SAP Release Created in