Deriving Values Out of Conditions using the Derivation Function

Objective

After completing this lesson, you will be able to apply the if-then" statement using the Derivation function.

Derivation

In this lesson, we continue with enrichment functionalities of the Universal Model. The next topic is Derivation – a function which helps us to derive certain values based on specified conditions.

Screenshot of SAP Fiori App - Manage Derivations.

What Is Derivation?

Derivation is a data enrichment function used to augment existing data in a dataset by calculating new attributes based on predefined rules or dynamic rules applied at runtime. This process ensures that your data is more comprehensive and valuable for analysis.

Key Functionalities of Derivation

  • Rules-Based Enhancement: Enhance your data using both static and dynamic rules.
  • CASE WHEN Principle: Derivation rules follow the CASE WHEN principle, allowing for flexible and conditional data transformation.
  • Condition and Assignment: Each rule comprises two elements: Condition and Assignment.
  • Condition: Works as the CASE part of the rule where selections are defined.
  • Assignment: Specifies the resulting value or attribute to be assigned when the condition is met.

Configuration of a Derivation

The image appears to be a user interface for a documents derivation system. It shows various fields, conditions, assignments, and rules that govern the derivation process. The text in the image provides explanations and descriptions of the different components of the system.

  1. You will need to set up your Key Figure, Association and Characteristic Fields.
  2. Create a model entity that will serve as an Input.
  3. In Manage Functions, Click on "Create" to Create Derivation Function. Select the environment you were creating the function in and put in "Derivation" Type.
  4. Fill in "Function" and "Description". Then Click on "Create".
  5. Go to "Manage Functions" and select the link of the newly created Function. Click on "Edit".
  6. Fill the "Sender Input". On the "Rules", select "Create".
  7. Fill in Rule, Description and then add the Selection and in "Assignment" put in the field and to configure the formula.
  8. Click on "Apply" then "Save".
  9. Go to the Manage Environment and Activate the environment. Then go to Manage Functions and select the Calculation function then Select "Run".

The image appears to be a user interface for a documents derivation system. It displays input data, including company names, years, and financial information like capital gain, tax-free income, dividend, and other income. The Results of Derivation section shows the derived values based on the input data, along with the allocation to the target company.