Show TOC

 Adding Internal Key Figures to a Fact Sheet

Activities

To integrate an internal key figure, you change the annotation file as follows:

  1. In the annotation file, search for the term DataPoint, or add a new DataPoint term as described in the following example.

  2. Copy the complete annotation that contains the DataPoint description.

  3. Change the necessary properties.

  4. Save your changes.

Example

You add a second key figure to your fact sheet. For the latest version of the annotation file, see:

Syntax Syntax

  1. </Annotation>
  2. <Annotation Term="UI.DataPoint" Qualifier="01">
  3.  <Record>
  4.   <PropertyValue Property="Title" String="<%= otr(/SAPSRM/CH_WD_UI_BO/TARGET_VALUE)%>"/>
  5.   <PropertyValue Property="Value" Path="TOTAL_VALUE"/>
  6.   <PropertyValue Property="NumberFormat
  7.      <Record>
  8.        <PropertyValue Property="NumberOfFractionalDigits" Int="1" />
  9.      </Record>
  10.   </PropertyValue>
  11.  </Record>
  12. </Annotation>
End of the code.

The DataPoint term defines a key figure as follows:

  • With a label that is described by an OTR alias (/SAPSRM/CH_WD_UI_BO/TARGET_VALUE) coming from the back-end system.

  • The value of the key figure is derived from the field TOTAL_VALUE of the corresponding OData service.

  • The value is displayed as a number (Number Format), with one digit (NumberOfFractionalDigits" Int="1").

You adapt the annotation file by changing the following properties:

  • Replace the qualifier with <Annotation Term="UI.DataPoint" Qualifier="nnn">, for the second key figure. nnn represents any name.

  • Change the OTR alias to replace the label of the key figure.

  • The value of the key figure can be derived from a different field of the OData service, such as NET_VALUE.

  • Change the number of digits to 2 by NumberOfFractionalDigits" Int="2".