Using Rule Type Derivation Rule for Setting up Characteristics for Margin Analysis

Objective

After completing this lesson, you will be able to understanding the Rule Type Derivation Rule

Using Rule Type Derivation Rule for Setting up Characteristics for Margin Analysis

Henry wants to get deeper in the Derivation concept and therefore now focuses on the Rule Type Derivation Rule.

In the following the set-up of the second rule in the derivation rule sequence is described.

With the Product_Line filled according to the first derivation rule, we now have to explain according to which logic the characteristic value of the Price_Category in the profitability segment has to be filled by the system.

The figure above focuses on the Derivation Rule in the Set of Derivation Rules

First, the characteristic Price_Category has to be set up using the app Custom Fields. The following figure describes the settings.

The figure above shows the Master data settings in the Custom Fields app for the Price_Category

Then, the C_JournalEntryItemBrowser CDS view has to be searched for. The Odata service and Odata entry have to be activated and finally the Price_Category has to be activated. Price_Category is now available in table ACDOCA and ACDOCP.

The figure above shows the activities necessary to make Price_Category a field in the Universal Journal table

The next step is to transfer the Price_Category into the operating concern.

The figure above explains the Transferring of the Price_Category into the Operating Concern

Re-opening the app Custom Fields, search and activate the relevant reporting CDS views for margin analysis.

The figure above shows the activation of the relevant reporting CDS views

Save and activate the Price_Category dimension again.

Then set up the Derivation Rule. In our scenario, we define Product_Line as the source field and Price_Category as the target field.

The figure above shows the set up of the source and target field of the Derivation Rule

In the next step we maintain the rule values table as described in the following figure.

The figure above shows the Maintained Rule Values for Price_Category

So, if in a posting Product_Line has the characteristic value BASIC, the Price_Category characteristic value ENTRY_LEVEL is automatically found by the system and written into the data set.

When the maintained rule values are saved you can test your derivation.

The figure above shows the testing the two first derivation rules

Finally, you can check if both derived characteristics can be used in the app Market Segments — Actual.

The figure above shows how to check if Product_Line and Price_Category are available in the app Market Segments – Actual

Summary

  • Set up the characteristic Price_Category using the Custom Fields app with appropriate master data settings.
  • Search for the C_JournalEntryItemBrowser CDS view, activate the Odata service and Odata entry, and activate Price_Category to make it available in tables ACDOCA and ACDOCP.
  • Transfer the Price_Category into the operating concern to enable its use in margin analysis.
  • Re-open the Custom Fields app to search and activate the relevant reporting CDS views for margin analysis, then save and activate the Price_Category dimension.
  • Set up the Derivation Rule by defining Product_Line as the source field and Price_Category as the target field.
  • Maintain the rule values table so that when Product_Line has a specific characteristic value, the corresponding Price_Category characteristic value is automatically determined and written into the data set.
  • Test the derivation to ensure the rule works correctly, then verify that both derived characteristics are available in the Market Segments – Actual app.