The specified attribute is only used for the functions (nodetype="OT_FUNC") with the specified name (objectname"FCT_..."). (The object name specified with objectname corresponds to the value of the AT_OBJNAME_INTERN function attribute.) Once again, a set of values containing more than one element can result as the specified object can occur several times in the process instance.
Example 1
The values of the AT_AUFNR attribute for all functions in the process instance currently being calculated with the name FCT_CREATE_ORDER are included in the set of values.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE keyindicatorconfig SYSTEM
'KeyindicatorConfiguration.dtd'>
<keyindicatorconfig>
...
<calcattr name="..." type="...">
<calculation>
...
<attribute name="AT_AUFNR" nodetype="OT_FUNC
objectname="FCT_AUFTRAG_ANLEGEN"/>
...
</calculation>
</calcattr>
...
</keyindicatorconfig>
The color of functions or events in the EPC view can be specified using the default AT_BGND_COLOUR attribute. The following calculation rule assigns a red color to all functions with the internal name SAP.WAUS:
<calcattr name="AT_BGND_COLOUR" type="OT_FUNC"
objectname="SAP.WAUS">
<calculation>
<constant>
<dataitem>
<datatype name="TEXT">255,0,0</datatype>
</dataitem>
</constant>
</calculation>
</calcattr>
This calculation rule can be used within a conditional attribute calculation, for example. The relevant color value is specified as an RGB value. Particular objects or object types can also be assigned a color in attribute mapping.
Example 2
The calculation rule totals the cycle time for the function (AT_KI_FDLZ) for functions with the same name (identical value for the AT_OBJNAME_INTERN attribute).
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE keyindicatorconfig SYSTEM
'KeyindicatorConfiguration.dtd'>
<keyindicatorconfig>
...
<calcattr name="AT_KI_FDLZSUM" type="OT_FUNC">
<calculation>
<sum>
<attribute name="AT_KI_FDLZ" nodetype="OT_FUNC"
objectname="like"/>
</sum>
</calculation>
</calcattr>
...
</keyindicatorconfig>
Warning
Specifying an object name or the options this or like in the objectname XML attribute is only permitted for the calculation of function attributes (OT_FUNC).
To use an operator that expects single values as an operand (e.g., <plus>) with an operand that returns sets of values (e.g., <attribute>), you need to use suitable operators to retrieve a single value from a set of values (e.g., <min> or <max>). Alternatively, you can use the <filteredattribute> XML element to retrieve one value from a set of values to be used for the subsequent attribute calculation.